medit/moo/mooedit/langs/ada.lang

222 lines
7.1 KiB
Plaintext
Raw Normal View History

2006-08-26 04:46:29 -05:00
<?xml version="1.0" encoding="UTF-8"?>
2007-06-18 00:03:03 -05:00
<!--
2011-01-05 22:45:36 -08:00
This file is part of GtkSourceView
2007-06-18 00:03:03 -05:00
Author: Gustavo Giráldez <gustavo.giraldez@gmx.net>
Copyright (C) 2003 Gustavo Giráldez <gustavo.giraldez@gmx.net>
Copyright (C) 2003 Michael Terry <mike@mterry.name>
Copyright (C) 2004 Benoît Dejean <tazforever@dlfp.org>
2011-01-05 22:45:36 -08:00
GtkSourceView is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
2007-06-18 00:03:03 -05:00
License as published by the Free Software Foundation; either
2011-01-05 22:45:36 -08:00
version 2.1 of the License, or (at your option) any later version.
2007-06-18 00:03:03 -05:00
2011-01-05 22:45:36 -08:00
GtkSourceView is distributed in the hope that it will be useful,
2007-06-18 00:03:03 -05:00
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2011-01-05 22:45:36 -08:00
Lesser General Public License for more details.
2007-06-18 00:03:03 -05:00
2011-01-05 22:45:36 -08:00
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2007-06-18 00:03:03 -05:00
-->
<language id="ada" _name="Ada" version="2.0" _section="Sources">
<metadata>
<property name="mimetypes">text/x-ada;text/x-adasrc</property>
<property name="globs">*.adb;*.ads</property>
2007-09-09 14:21:19 -05:00
<property name="line-comment-start">--</property>
</metadata>
2006-08-26 04:46:29 -05:00
<styles>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="string" _name="String" map-to="def:string"/>
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
2007-09-09 14:21:19 -05:00
<style id="decimal" _name="Decimal number" map-to="def:decimal"/>
<style id="boolean" _name="Boolean value" map-to="def:boolean"/>
<style id="storage-class" _name="Storage Class" map-to="def:type"/>
<style id="type" _name="Data Type" map-to="def:type"/>
<style id="preprocessor" _name="Preprocessor" map-to="def:preprocessor"/>
2007-06-29 05:43:00 -05:00
<style id="base-n-number" _name="Arbitrary base number" map-to="def:base-n-integer"/>
<style id="real" _name="Real number" map-to="def:floating-point"/>
2007-09-09 14:21:19 -05:00
<style id="escaped-character" _name="Escaped Character" map-to="def:special-char"/>
</styles>
2006-08-26 04:46:29 -05:00
2007-06-29 05:43:00 -05:00
<default-regex-options case-sensitive="false"/>
<definitions>
2007-09-09 14:21:19 -05:00
2011-01-05 22:45:36 -08:00
<context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
<start>--</start>
2007-09-09 14:21:19 -05:00
<include>
<context ref="def:in-line-comment"/>
</include>
</context>
2007-09-09 14:21:19 -05:00
2011-01-05 22:45:36 -08:00
<context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
2007-06-29 05:43:00 -05:00
<!-- no escapes possible except for "" = literal " -->
<include>
2007-09-09 14:21:19 -05:00
<context id="string-esc" style-ref="escaped-character" extend-parent="true">
2007-06-29 05:43:00 -05:00
<match>""</match>
</context>
</include>
</context>
2007-09-09 14:21:19 -05:00
<context id="character-constant" style-ref="string">
<match>'.'</match>
</context>
2007-09-09 14:21:19 -05:00
<context id="preprocessor-keyword" style-ref="preprocessor">
<keyword>package</keyword>
<keyword>pragma</keyword>
<keyword>use</keyword>
<keyword>with</keyword>
</context>
2007-09-09 14:21:19 -05:00
<context id="function" style-ref="keyword">
<keyword>function</keyword>
<keyword>procedure</keyword>
<keyword>return</keyword>
</context>
2007-09-09 14:21:19 -05:00
<context id="keyword" style-ref="keyword">
<keyword>abort</keyword>
<keyword>abs</keyword>
<keyword>accept</keyword>
<keyword>all</keyword>
<keyword>and</keyword>
<keyword>begin</keyword>
<keyword>body</keyword>
<keyword>case</keyword>
<keyword>declare</keyword>
<keyword>delay</keyword>
<keyword>do</keyword>
<keyword>else</keyword>
<keyword>elsif</keyword>
<keyword>end</keyword>
<keyword>entry</keyword>
<keyword>exception</keyword>
<keyword>exit</keyword>
<keyword>for</keyword>
<keyword>generic</keyword>
<keyword>goto</keyword>
<keyword>if</keyword>
<keyword>in</keyword>
<keyword>is</keyword>
<keyword>loop</keyword>
<keyword>mod</keyword>
<keyword>new</keyword>
<keyword>not</keyword>
<keyword>null</keyword>
<keyword>or</keyword>
<keyword>others</keyword>
<keyword>out</keyword>
<keyword>protected</keyword>
<keyword>raise</keyword>
<keyword>record</keyword>
<keyword>rem</keyword>
<keyword>renames</keyword>
<keyword>requeue</keyword>
<keyword>reverse</keyword>
<keyword>select</keyword>
<keyword>separate</keyword>
<keyword>subtype</keyword>
<keyword>task</keyword>
<keyword>terminate</keyword>
<keyword>then</keyword>
<keyword>type</keyword>
<keyword>until</keyword>
<keyword>when</keyword>
<keyword>while</keyword>
<keyword>xor</keyword>
</context>
2007-09-09 14:21:19 -05:00
<context id="storage-class" style-ref="storage-class">
<keyword>abstract</keyword>
<keyword>access</keyword>
<keyword>aliased</keyword>
<keyword>array</keyword>
<keyword>at</keyword>
<keyword>constant</keyword>
<keyword>delta</keyword>
<keyword>digits</keyword>
<keyword>interface</keyword>
<keyword>limited</keyword>
<keyword>of</keyword>
<keyword>private</keyword>
<keyword>range</keyword>
<keyword>tagged</keyword>
<keyword>synchronized</keyword>
</context>
<context id="type" style-ref="type">
<keyword>boolean</keyword>
<keyword>character</keyword>
<keyword>count</keyword>
<keyword>duration</keyword>
<keyword>float</keyword>
<keyword>integer</keyword>
<keyword>long_float</keyword>
<keyword>long_integer</keyword>
<keyword>priority</keyword>
<keyword>short_float</keyword>
<keyword>short_integer</keyword>
<keyword>string</keyword>
</context>
2007-09-09 14:21:19 -05:00
2007-06-29 05:43:00 -05:00
<define-regex id="hexnum">[0-9a-f][0-9a-f_]*</define-regex>
<define-regex id="exponent">[Ee][+-]?[0-9][0-9_]*</define-regex>
2007-09-09 14:21:19 -05:00
2007-06-29 05:43:00 -05:00
<context id="based-numeral" style-ref="base-n-number">
<match extended="true">
(?&lt;![\w\.])
[0-9][0-9_]*\#\%{hexnum}(\.\%{hexnum})?\#\%{exponent}?
(?![\w\.])
</match>
</context>
2007-09-09 14:21:19 -05:00
2007-06-29 05:43:00 -05:00
<context id="real" style-ref="real">
<match extended="true">
(?&lt;![\w\.])
[0-9][0-9_]*\.[0-9][0-9_]*\%{exponent}?
(?![\w\.])
</match>
</context>
2007-09-09 14:21:19 -05:00
<context id="number" style-ref="decimal">
2007-06-29 05:43:00 -05:00
<match extended="true">
(?&lt;![\w\.])
[0-9][0-9_]*(E[+]?[0-9][0-9_]*)?
(?![\w\.])
</match>
</context>
2007-09-09 14:21:19 -05:00
<context id="boolean" style-ref="boolean">
<keyword>true</keyword>
<keyword>false</keyword>
</context>
2007-09-09 14:21:19 -05:00
2011-01-05 22:45:36 -08:00
<context id="ada" class="no-spell-check">
<include>
<context ref="line-comment"/>
<context ref="string"/>
<context ref="character-constant"/>
<context ref="preprocessor-keyword"/>
<context ref="function"/>
<context ref="keyword"/>
2007-09-09 14:21:19 -05:00
<context ref="storage-class"/>
<context ref="type"/>
2007-06-29 05:43:00 -05:00
<context ref="based-numeral"/>
<context ref="real"/>
<context ref="number"/>
2007-09-09 14:21:19 -05:00
<context ref="boolean"/>
</include>
</context>
2007-09-09 14:21:19 -05:00
</definitions>
2006-08-26 04:46:29 -05:00
</language>