PageRenderTime 61ms CodeModel.GetById 56ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/modes/cplusplus.xml

#
XML | 156 lines | 153 code | 2 blank | 1 comment | 0 complexity | 2bc492e3389dd244c85bf03aa12770c1 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
  8		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
  9		<PROPERTY NAME="indentPrevLine"
 10			VALUE="\s*(((if|while)\s*\(|else\s*(\{|$)|else\s+if\s*\(|case\s+.+:|default:)[^;]*|for\s*\(.*)" />
 11		<!-- set this to 'true' if you want to use GNU coding style -->
 12		<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
 13		<PROPERTY NAME="commentStart" VALUE="/*" />
 14		<PROPERTY NAME="commentEnd" VALUE="*/" />
 15		<PROPERTY NAME="lineComment" VALUE="//" />
 16		<PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
 17	</PROPS>
 18	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 19		<!-- whitespace: (space and tab) -->
 20		<WHITESPACE> </WHITESPACE>
 21		<WHITESPACE>	</WHITESPACE>
 22
 23		<!-- C style comment -->
 24		<SPAN TYPE="COMMENT1">
 25			<BEGIN>/*</BEGIN>
 26			<END>*/</END>
 27		</SPAN>
 28
 29		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 30			<BEGIN>"</BEGIN>
 31			<END>"</END>
 32		</SPAN>
 33		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 34			<BEGIN>'</BEGIN>
 35			<END>'</END>
 36		</SPAN>
 37
 38		<!-- preprocessor statements -->
 39		<EOL_SPAN TYPE="KEYWORD2">#</EOL_SPAN>
 40
 41		<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
 42		<SEQ TYPE="NULL">)</SEQ>
 43		<SEQ TYPE="OPERATOR">=</SEQ>
 44		<SEQ TYPE="OPERATOR">!</SEQ>
 45		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 46		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 47		<SEQ TYPE="OPERATOR">+</SEQ>
 48		<SEQ TYPE="OPERATOR">-</SEQ>
 49		<SEQ TYPE="OPERATOR">/</SEQ>
 50
 51		<SEQ TYPE="OPERATOR">*</SEQ>
 52		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 53		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 54		<SEQ TYPE="OPERATOR">%</SEQ>
 55		<SEQ TYPE="OPERATOR">&amp;</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">{</SEQ>
 61		<SEQ TYPE="NULL">.</SEQ>
 62		<SEQ TYPE="NULL">,</SEQ>
 63		<SEQ TYPE="NULL">;</SEQ>
 64		<SEQ TYPE="NULL">]</SEQ>
 65		<SEQ TYPE="NULL">[</SEQ>
 66		<SEQ TYPE="NULL">?</SEQ>
 67		
 68		<MARK_PREVIOUS TYPE="FUNCTION">::</MARK_PREVIOUS>
 69		
 70		<MARK_PREVIOUS TYPE="LABEL" EXCLUDE_MATCH="TRUE"
 71			AT_LINE_START="TRUE">:</MARK_PREVIOUS>
 72
 73		<SEQ TYPE="NULL">:</SEQ>
 74
 75		<!-- Function calls -->
 76		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 77
 78		<KEYWORDS IGNORE_CASE="FALSE">
 79			<KEYWORD3>and</KEYWORD3>
 80			<KEYWORD3>and_eq</KEYWORD3>
 81			<KEYWORD2>asm</KEYWORD2>
 82			<KEYWORD1>auto</KEYWORD1>
 83			<KEYWORD3>bitand</KEYWORD3>
 84			<KEYWORD3>bitor</KEYWORD3>
 85			<KEYWORD3>bool</KEYWORD3>
 86			<KEYWORD1>break</KEYWORD1>
 87			<KEYWORD1>case</KEYWORD1>
 88			<KEYWORD1>catch</KEYWORD1>
 89			<KEYWORD3>char</KEYWORD3>
 90			<KEYWORD3>class</KEYWORD3>
 91			<KEYWORD3>compl</KEYWORD3>
 92			<KEYWORD1>const</KEYWORD1>
 93			<KEYWORD3>const_cast</KEYWORD3>
 94			<KEYWORD1>continue</KEYWORD1>
 95			<KEYWORD1>default</KEYWORD1>
 96			<KEYWORD1>delete</KEYWORD1>
 97			<KEYWORD1>do</KEYWORD1>
 98			<KEYWORD3>double</KEYWORD3>
 99			<KEYWORD3>dynamic_cast</KEYWORD3>
100			<KEYWORD1>else</KEYWORD1>
101			<KEYWORD3>enum</KEYWORD3>
102			<KEYWORD1>explicit</KEYWORD1>
103			<KEYWORD2>export</KEYWORD2>
104			<KEYWORD2>extern</KEYWORD2>
105			<LITERAL2>false</LITERAL2>
106			<KEYWORD3>float</KEYWORD3>
107			<KEYWORD1>for</KEYWORD1>
108			<KEYWORD1>friend</KEYWORD1>
109			<KEYWORD1>goto</KEYWORD1>
110			<KEYWORD1>if</KEYWORD1>
111			<KEYWORD1>inline</KEYWORD1>
112			<KEYWORD3>int</KEYWORD3>
113			<KEYWORD3>long</KEYWORD3>
114			<KEYWORD3>mutable</KEYWORD3>
115			<KEYWORD2>namespace</KEYWORD2>
116			<KEYWORD1>new</KEYWORD1>
117			<KEYWORD3>not</KEYWORD3>
118			<KEYWORD3>not_eq</KEYWORD3>
119			<KEYWORD3>operator</KEYWORD3>
120			<KEYWORD3>or</KEYWORD3>
121			<KEYWORD3>or_eq</KEYWORD3>
122			<KEYWORD1>private</KEYWORD1>
123			<KEYWORD1>protected</KEYWORD1>
124			<KEYWORD1>public</KEYWORD1>
125			<KEYWORD1>register</KEYWORD1>
126			<KEYWORD3>reinterpret_cast</KEYWORD3>
127			<KEYWORD1>return</KEYWORD1>
128			<KEYWORD3>short</KEYWORD3>
129			<KEYWORD3>signed</KEYWORD3>
130			<KEYWORD1>sizeof</KEYWORD1>
131			<KEYWORD1>static</KEYWORD1>
132			<KEYWORD3>static_cast</KEYWORD3>
133			<KEYWORD3>struct</KEYWORD3>
134			<KEYWORD1>switch</KEYWORD1>
135			<KEYWORD3>template</KEYWORD3>
136			<LITERAL2>this</LITERAL2>
137			<KEYWORD1>throw</KEYWORD1>
138			<LITERAL2>true</LITERAL2>
139			<KEYWORD1>try</KEYWORD1>
140			<KEYWORD3>typedef</KEYWORD3>
141			<KEYWORD3>typeid</KEYWORD3>
142			<KEYWORD3>typename</KEYWORD3>
143			<KEYWORD3>union</KEYWORD3>
144			<KEYWORD3>unsigned</KEYWORD3>
145			<KEYWORD2>using</KEYWORD2>
146			<KEYWORD1>virtual</KEYWORD1>
147			<KEYWORD1>void</KEYWORD1>
148			<KEYWORD1>volatile</KEYWORD1>
149			<KEYWORD3>wchar_t</KEYWORD3>
150			<KEYWORD1>while</KEYWORD1>
151			<KEYWORD3>xor</KEYWORD3>
152			<KEYWORD3>xor_eq</KEYWORD3>
153			<LITERAL2>NULL</LITERAL2>
154		</KEYWORDS>
155	</RULES>
156</MODE>