PageRenderTime 85ms CodeModel.GetById 79ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/modes/uscript.xml

#
XML | 161 lines | 156 code | 3 blank | 2 comment | 0 complexity | b0e8c46a2bccadeb22e62c00f37cb8e0 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="commentStart" VALUE="/*" />
  8		<PROPERTY NAME="commentEnd" VALUE="*/" />
  9		<PROPERTY NAME="lineComment" VALUE="//" />
 10		<PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
 11
 12		<!-- Auto indent -->
 13		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 14		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 15		<PROPERTY NAME="indentNextLine"
 16			VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
 17		<!-- set this to 'true' if you want to use GNU coding style -->
 18		<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
 19		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
 20	</PROPS>
 21	<RULES ESCAPE="\"
 22		IGNORE_CASE="TRUE"
 23		HIGHLIGHT_DIGITS="TRUE"
 24		DIGIT_RE="(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)">
 25
 26		<!-- Silly comment -->
 27		<SEQ TYPE="COMMENT1">/**/</SEQ>
 28
 29		<!-- Java comment (C style) -->
 30		<SPAN TYPE="COMMENT1">
 31			<BEGIN>/*</BEGIN>
 32			<END>*/</END>
 33		</SPAN>
 34
 35		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 36			<BEGIN>"</BEGIN>
 37			<END>"</END>
 38		</SPAN>
 39		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 40			<BEGIN>'</BEGIN>
 41			<END>'</END>
 42		</SPAN>
 43
 44		<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
 45
 46        <SEQ TYPE="OPERATOR">~</SEQ>
 47        <SEQ TYPE="OPERATOR">!</SEQ>
 48        <SEQ TYPE="OPERATOR">@</SEQ>
 49        <SEQ TYPE="OPERATOR">#</SEQ>
 50        <SEQ TYPE="OPERATOR">$</SEQ>
 51        <SEQ TYPE="OPERATOR">^</SEQ>
 52        <SEQ TYPE="OPERATOR">&amp;</SEQ>
 53        <SEQ TYPE="OPERATOR">*</SEQ>
 54        <SEQ TYPE="OPERATOR">-</SEQ>
 55        <SEQ TYPE="OPERATOR">=</SEQ>
 56        <SEQ TYPE="OPERATOR">+</SEQ>
 57        <SEQ TYPE="OPERATOR">|</SEQ>
 58        <SEQ TYPE="OPERATOR">\\</SEQ>
 59        <SEQ TYPE="OPERATOR">:</SEQ>
 60        <SEQ TYPE="OPERATOR">&lt;</SEQ>
 61        <SEQ TYPE="OPERATOR">&gt;</SEQ>
 62        <SEQ TYPE="OPERATOR">/</SEQ>
 63        <SEQ TYPE="OPERATOR">?</SEQ>
 64        <SEQ TYPE="OPERATOR">`</SEQ>
 65        
 66		<MARK_PREVIOUS TYPE="LABEL" EXCLUDE_MATCH="TRUE"
 67			AT_WHITESPACE_END="TRUE">:</MARK_PREVIOUS>
 68
 69		<!-- Function calls -->
 70		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 71
 72		<KEYWORDS>
 73            <KEYWORD1>abstract</KEYWORD1>
 74            <KEYWORD1>auto</KEYWORD1>
 75            <KEYWORD1>array</KEYWORD1>
 76            <KEYWORD1>case</KEYWORD1>
 77            <KEYWORD1>class</KEYWORD1>
 78            <KEYWORD1>coerce</KEYWORD1>
 79            <KEYWORD1>collapscategories</KEYWORD1>
 80            <KEYWORD1>config</KEYWORD1>
 81            <KEYWORD1>const</KEYWORD1>
 82            <KEYWORD1>default</KEYWORD1>
 83            <KEYWORD1>defaultproperties</KEYWORD1>
 84            <KEYWORD1>deprecated</KEYWORD1>
 85            <KEYWORD1>do</KEYWORD1>
 86            <KEYWORD1>dontcollapsecategories</KEYWORD1>
 87            <KEYWORD1>edfindable</KEYWORD1>
 88            <KEYWORD1>editconst</KEYWORD1>
 89            <KEYWORD1>editinline</KEYWORD1>
 90            <KEYWORD1>editinlinenew</KEYWORD1>
 91            <KEYWORD1>else</KEYWORD1>
 92            <KEYWORD1>enum</KEYWORD1>
 93            <KEYWORD1>event</KEYWORD1>
 94            <KEYWORD1>exec</KEYWORD1>
 95            <KEYWORD1>export</KEYWORD1>
 96            <KEYWORD1>exportstructs</KEYWORD1>
 97            <KEYWORD1>extends</KEYWORD1>
 98            <KEYWORD1>false</KEYWORD1>
 99            <KEYWORD1>final</KEYWORD1>
100            <KEYWORD1>for</KEYWORD1>
101            <KEYWORD1>foreach</KEYWORD1>
102            <KEYWORD1>function</KEYWORD1>
103            <KEYWORD1>globalconfig</KEYWORD1>
104            <KEYWORD1>hidecategories</KEYWORD1>
105            <KEYWORD1>if</KEYWORD1>
106            <KEYWORD1>ignores</KEYWORD1>
107            <KEYWORD1>input</KEYWORD1>
108            <KEYWORD1>iterator</KEYWORD1>
109            <KEYWORD1>latent</KEYWORD1>
110            <KEYWORD1>local</KEYWORD1>
111            <KEYWORD1>localized</KEYWORD1>
112            <KEYWORD1>native</KEYWORD1>
113            <KEYWORD1>nativereplication</KEYWORD1>
114            <KEYWORD1>noexport</KEYWORD1>
115            <KEYWORD1>noteditinlinenew</KEYWORD1>
116			<KEYWORD1>notplaceable</KEYWORD1>
117            <KEYWORD1>operator</KEYWORD1>
118            <KEYWORD1>optional</KEYWORD1>
119            <KEYWORD1>out</KEYWORD1>
120            <KEYWORD1>perobjectconfig</KEYWORD1>
121            <KEYWORD1>placeable</KEYWORD1>
122            <KEYWORD1>postoperator</KEYWORD1>
123            <KEYWORD1>preoperator</KEYWORD1>
124            <KEYWORD1>private</KEYWORD1>
125            <KEYWORD1>protected</KEYWORD1>
126            <KEYWORD1>reliable</KEYWORD1>
127            <KEYWORD1>replication</KEYWORD1>
128            <KEYWORD1>return</KEYWORD1>
129            <KEYWORD1>safereplace</KEYWORD1>
130            <KEYWORD1>showcategories</KEYWORD1>
131            <KEYWORD1>simulated</KEYWORD1>
132            <KEYWORD1>singular</KEYWORD1>
133            <KEYWORD1>state</KEYWORD1>
134            <KEYWORD1>static</KEYWORD1>
135            <KEYWORD1>struct</KEYWORD1>
136            <KEYWORD1>switch</KEYWORD1>
137            <KEYWORD1>transient</KEYWORD1>
138            <KEYWORD1>travel</KEYWORD1>
139            <KEYWORD1>true</KEYWORD1>
140            <KEYWORD1>unreliable</KEYWORD1>
141            <KEYWORD1>until</KEYWORD1>
142            <KEYWORD1>var</KEYWORD1>
143            <KEYWORD1>while</KEYWORD1>
144            <KEYWORD1>within</KEYWORD1>
145            
146            <KEYWORD2>default</KEYWORD2>
147            <KEYWORD2>global</KEYWORD2>
148            <KEYWORD2>none</KEYWORD2>
149            <KEYWORD2>self</KEYWORD2>
150            <KEYWORD2>static</KEYWORD2>
151            <KEYWORD2>super</KEYWORD2>
152            
153            <KEYWORD3>bool</KEYWORD3>
154            <KEYWORD3>byte</KEYWORD3>
155            <KEYWORD3>float</KEYWORD3>
156            <KEYWORD3>int</KEYWORD3>
157            <KEYWORD3>name</KEYWORD3>
158            <KEYWORD3>string</KEYWORD3>
159		</KEYWORDS>
160	</RULES>
161</MODE>