2006-11-02 00:43:24 -06:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-06-18 00:03:03 -05:00
|
|
|
<!--
|
|
|
|
|
|
|
|
Author: Yevgen Muntyan <muntyan@tamu.edu>
|
|
|
|
Copyright (C) 2006-2007 Yevgen Muntyan <muntyan@tamu.edu>
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the
|
|
|
|
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
-->
|
2006-11-02 00:43:24 -06:00
|
|
|
<language id="gap" _name="GAP" version="2.0" _section="Scientific">
|
|
|
|
<metadata>
|
|
|
|
<property name="mimetypes">text/x-gap</property>
|
2006-11-09 05:03:56 -06:00
|
|
|
<property name="globs">*.g;*.gd;*.gi;*.gap</property>
|
2006-11-02 00:43:24 -06:00
|
|
|
<property name="line-comment-start">#</property>
|
|
|
|
</metadata>
|
|
|
|
|
|
|
|
<styles>
|
|
|
|
<style id="comment" name="Comment" map-to="def:comment"/>
|
|
|
|
<style id="character" name="Character" map-to="def:string"/>
|
|
|
|
<style id="keyword" name="Keyword" map-to="def:keyword"/>
|
|
|
|
<style id="function" name="Function" map-to="def:function"/>
|
|
|
|
<style id="decimal" name="Decimal" map-to="def:decimal"/>
|
|
|
|
</styles>
|
|
|
|
|
|
|
|
<definitions>
|
|
|
|
<context id="character" style-ref="character">
|
2007-05-16 10:45:19 -05:00
|
|
|
<match>\'(\\[trnb\\\'\"]|[^\\])\'</match>
|
2006-11-02 00:43:24 -06:00
|
|
|
</context>
|
|
|
|
<context id="keyword" style-ref="keyword">
|
|
|
|
<keyword>and</keyword>
|
|
|
|
<keyword>break</keyword>
|
|
|
|
<keyword>continue</keyword>
|
|
|
|
<keyword>do</keyword>
|
2007-02-01 08:31:02 -06:00
|
|
|
<keyword>elif</keyword>
|
|
|
|
<keyword>else</keyword>
|
|
|
|
<keyword>end</keyword>
|
|
|
|
<keyword>fail</keyword>
|
|
|
|
<keyword>false</keyword>
|
|
|
|
<keyword>fi</keyword>
|
|
|
|
<keyword>for</keyword>
|
|
|
|
<keyword>function</keyword>
|
|
|
|
<keyword>if</keyword>
|
|
|
|
<keyword>in</keyword>
|
2007-05-27 15:08:41 -05:00
|
|
|
<keyword>infinity</keyword>
|
2007-02-01 08:31:02 -06:00
|
|
|
<keyword>local</keyword>
|
|
|
|
<keyword>not</keyword>
|
2006-11-02 00:43:24 -06:00
|
|
|
<keyword>od</keyword>
|
2007-02-01 08:31:02 -06:00
|
|
|
<keyword>or</keyword>
|
|
|
|
<keyword>rec</keyword>
|
|
|
|
<keyword>repeat</keyword>
|
|
|
|
<keyword>return</keyword>
|
|
|
|
<keyword>then</keyword>
|
|
|
|
<keyword>true</keyword>
|
2006-11-02 00:43:24 -06:00
|
|
|
<keyword>until</keyword>
|
|
|
|
<keyword>while</keyword>
|
|
|
|
</context>
|
|
|
|
<context id="decimal" style-ref="decimal">
|
|
|
|
<match>\b[0-9]+\b</match>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="gap">
|
|
|
|
<include>
|
|
|
|
<context ref="def:shell-like-comment"/>
|
|
|
|
<context ref="def:string"/>
|
|
|
|
<context ref="character"/>
|
|
|
|
<context ref="keyword"/>
|
|
|
|
<context ref="decimal"/>
|
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
</definitions>
|
|
|
|
</language>
|