medit/moo/mooedit/langs/java.lang

191 lines
6.6 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) 2006 Jeff Walden <jwalden@mit.edu>
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-19 13:48:10 -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
2007-06-19 13:48:10 -05:00
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="java" _name="Java" version="2.0" _section="Sources">
<metadata>
<property name="mimetypes">text/x-java</property>
<property name="globs">*.java</property>
<property name="line-comment-start">//</property>
2007-05-27 15:08:41 -05:00
<property name="block-comment-start">/*</property>
<property name="block-comment-end">*/</property>
</metadata>
2006-08-26 04:46:29 -05:00
<styles>
2013-12-06 17:03:17 -08:00
<style id="escaped-character" _name="Escaped Character" map-to="def:special-char"/>
<style id="string" _name="String" map-to="def:string"/>
<style id="char" _name="Character" map-to="def:character"/>
<!-- Translators: refered to some specific keywords of the language that
allow to get external functionalities -->
<style id="external" _name="External" map-to="def:preprocessor"/>
<style id="declaration" _name="Declaration" map-to="def:type"/>
<style id="storage-class" _name="Storage Class" map-to="def:type"/>
<style id="scope-declaration" _name="Scope Declaration" map-to="def:type"/>
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
<style id="null-value" _name="Null Value" map-to="def:special-constant"/>
<style id="boolean" _name="Boolean value" map-to="def:boolean"/>
<style id="number" _name="Number" map-to="def:decimal"/>
<style id="reserved" _name="Future Reserved Keywords" map-to="def:reserved"/>
<style id="type" _name="Data Type" map-to="def:type"/>
</styles>
2006-08-26 04:46:29 -05:00
<definitions>
2007-05-27 15:08:41 -05:00
2008-09-09 22:17:24 -05:00
<define-regex id="escaped-character" extended="true">
\\( # leading backslash
[\\\"\'nrbtf] | # escaped character
[0-9]{1,3} | # latin encoded char
u[0-9]{1,4} # unicode char
)
</define-regex>
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>
2008-09-09 22:17:24 -05:00
<include>
<context id="escaped-character" style-ref="escaped-character">
<match>\%{escaped-character}</match>
</context>
</include>
</context>
2007-05-27 15:08:41 -05:00
2008-09-09 22:17:24 -05:00
<context id="char" style-ref="char">
<match>'(\%{escaped-character}|.)'</match>
</context>
2007-05-27 15:08:41 -05:00
2007-09-09 14:21:19 -05:00
<context id="externals" style-ref="external">
<keyword>import</keyword>
<keyword>package</keyword>
</context>
<context id="declarations" style-ref="declaration">
<keyword>class</keyword>
<keyword>enum</keyword>
<keyword>extends</keyword>
<keyword>implements</keyword>
<keyword>instanceof</keyword>
<keyword>interface</keyword>
<keyword>native</keyword>
<keyword>throws</keyword>
</context>
2007-05-27 15:08:41 -05:00
2007-09-09 14:21:19 -05:00
<context id="primitive-types" style-ref="type">
<keyword>boolean</keyword>
<keyword>byte</keyword>
<keyword>char</keyword>
<keyword>double</keyword>
<keyword>float</keyword>
<keyword>int</keyword>
<keyword>long</keyword>
<keyword>short</keyword>
2007-07-04 23:02:37 -05:00
<keyword>void</keyword>
</context>
2007-05-27 15:08:41 -05:00
2007-09-09 14:21:19 -05:00
<context id="storage-class" style-ref="storage-class">
<keyword>abstract</keyword>
<keyword>final</keyword>
<keyword>static</keyword>
<keyword>strictfp</keyword>
<keyword>synchronized</keyword>
<keyword>transient</keyword>
<keyword>volatile</keyword>
</context>
<context id="scope-declarations" style-ref="scope-declaration">
<keyword>private</keyword>
<keyword>protected</keyword>
<keyword>public</keyword>
</context>
<context id="flow" style-ref="keyword">
<keyword>assert</keyword>
<keyword>break</keyword>
<keyword>case</keyword>
<keyword>catch</keyword>
<keyword>continue</keyword>
<keyword>default</keyword>
<keyword>do</keyword>
<keyword>else</keyword>
<keyword>finally</keyword>
<keyword>for</keyword>
<keyword>if</keyword>
<keyword>return</keyword>
<keyword>throw</keyword>
<keyword>switch</keyword>
<keyword>try</keyword>
<keyword>while</keyword>
</context>
2007-05-27 15:08:41 -05:00
2007-07-04 23:02:37 -05:00
<context id="memory" style-ref="keyword">
<keyword>new</keyword>
<keyword>super</keyword>
<keyword>this</keyword>
</context>
2007-05-27 15:08:41 -05:00
2007-06-29 05:43:00 -05:00
<context id="future-reserved-words" style-ref="reserved">
<keyword>const</keyword>
<keyword>goto</keyword>
</context>
2007-05-27 15:08:41 -05:00
2007-07-04 23:02:37 -05:00
<context id="null-value" style-ref="null-value">
<keyword>null</keyword>
</context>
<context id="boolean" style-ref="boolean">
<keyword>false</keyword>
<keyword>true</keyword>
</context>
2007-09-09 14:21:19 -05:00
<context id="numeric" style-ref="number">
<match extended="true">
(\b([0-9]+|0[xX][0-9a-fA-F]+)[Ll]?\b|
\b(([0-9]+[Ee][-]?[0-9]+|
([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFdD]?|
[0-9]+[FfDd]))
</match>
</context>
2007-05-27 15:08:41 -05:00
2011-01-05 22:45:36 -08:00
<context id="java" class="no-spell-check">
<include>
<context ref="string"/>
2008-09-09 22:17:24 -05:00
<context ref="char"/>
2013-12-06 17:03:17 -08:00
<context ref="def:c-like-comment"/>
<context ref="def:c-like-comment-multiline"/>
<context ref="def:c-like-close-comment-outside-comment"/>
2007-09-09 14:21:19 -05:00
<context ref="externals"/>
<context ref="declarations"/>
2007-07-04 23:02:37 -05:00
<context ref="primitive-types"/>
2007-09-09 14:21:19 -05:00
<context ref="storage-class"/>
<context ref="scope-declarations"/>
<context ref="flow"/>
<context ref="memory"/>
<context ref="future-reserved-words"/>
2007-07-04 23:02:37 -05:00
<context ref="null-value"/>
<context ref="boolean"/>
<context ref="numeric"/>
</include>
</context>
2007-05-27 15:08:41 -05:00
</definitions>
2006-08-26 04:46:29 -05:00
</language>