PageRenderTime 69ms CodeModel.GetById 63ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/modes/c.xml

#
XML | 120 lines | 115 code | 2 blank | 3 comment | 0 complexity | 849d15b519241ead121fad441358cb9c 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		<!-- the ; hack is there so that stuff like if(bob) fred();
 10		     does not indent the next line -->
 11		<PROPERTY NAME="indentPrevLine" VALUE="\s*(((if|while)\s*\(|else|case|default)[^;]*|for\s*\(.*)" />
 12		<!-- set this to 'true' if you want to use GNU coding style -->
 13		<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
 14		<PROPERTY NAME="commentStart" VALUE="/*" />
 15		<PROPERTY NAME="commentEnd" VALUE="*/" />
 16		<PROPERTY NAME="lineComment" VALUE="//" />
 17		<PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
 18	</PROPS>
 19	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 20		<!-- whitespace: (space and tab) -->
 21		<WHITESPACE> </WHITESPACE>
 22		<WHITESPACE>	</WHITESPACE>
 23
 24		<!-- C style comment -->
 25		<SPAN TYPE="COMMENT1">
 26			<BEGIN>/*</BEGIN>
 27			<END>*/</END>
 28		</SPAN>
 29
 30		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 31			<BEGIN>"</BEGIN>
 32			<END>"</END>
 33		</SPAN>
 34		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 35			<BEGIN>'</BEGIN>
 36			<END>'</END>
 37		</SPAN>
 38
 39		<!-- preprocessor statements -->
 40		<EOL_SPAN TYPE="KEYWORD2">#</EOL_SPAN>
 41
 42		<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
 43		<SEQ TYPE="NULL">)</SEQ>
 44		<SEQ TYPE="OPERATOR">=</SEQ>
 45		<SEQ TYPE="OPERATOR">!</SEQ>
 46		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 47		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 48		<SEQ TYPE="OPERATOR">+</SEQ>
 49		<SEQ TYPE="OPERATOR">-</SEQ>
 50		<SEQ TYPE="OPERATOR">/</SEQ>
 51
 52		<SEQ TYPE="OPERATOR">*</SEQ>
 53		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 54		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 55		<SEQ TYPE="OPERATOR">%</SEQ>
 56		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 57		<SEQ TYPE="OPERATOR">|</SEQ>
 58		<SEQ TYPE="OPERATOR">^</SEQ>
 59		<SEQ TYPE="OPERATOR">~</SEQ>
 60		<SEQ TYPE="OPERATOR">}</SEQ>
 61		<SEQ TYPE="OPERATOR">{</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		<SEQ TYPE="NULL">?</SEQ>
 68		<MARK_PREVIOUS TYPE="LABEL" EXCLUDE_MATCH="TRUE"
 69			AT_LINE_START="TRUE">:</MARK_PREVIOUS>
 70		<SEQ TYPE="NULL">:</SEQ>
 71
 72		<!-- Function calls -->
 73		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 74
 75		<KEYWORDS IGNORE_CASE="FALSE">
 76			<KEYWORD3>char</KEYWORD3>
 77			<KEYWORD3>double</KEYWORD3>
 78			<KEYWORD3>enum</KEYWORD3>
 79			<KEYWORD3>float</KEYWORD3>
 80			<KEYWORD3>int</KEYWORD3>
 81			<KEYWORD3>long</KEYWORD3>
 82			<KEYWORD3>short</KEYWORD3>
 83			<KEYWORD3>signed</KEYWORD3>
 84			<KEYWORD3>struct</KEYWORD3>
 85			<KEYWORD3>typedef</KEYWORD3>
 86			<KEYWORD3>union</KEYWORD3>
 87			<KEYWORD3>unsigned</KEYWORD3>
 88			<KEYWORD3>void</KEYWORD3>
 89			<KEYWORD1>auto</KEYWORD1>
 90			<KEYWORD1>const</KEYWORD1>
 91			<KEYWORD1>extern</KEYWORD1>
 92			<KEYWORD1>register</KEYWORD1>
 93			<KEYWORD1>static</KEYWORD1>
 94			<KEYWORD1>volatile</KEYWORD1>
 95			<KEYWORD1>break</KEYWORD1>
 96			<KEYWORD1>case</KEYWORD1>
 97			<KEYWORD1>continue</KEYWORD1>
 98			<KEYWORD1>default</KEYWORD1>
 99			<KEYWORD1>do</KEYWORD1>
100			<KEYWORD1>else</KEYWORD1>
101			<KEYWORD1>for</KEYWORD1>
102			<KEYWORD1>goto</KEYWORD1>
103			<KEYWORD1>if</KEYWORD1>
104			<KEYWORD1>return</KEYWORD1>
105			<KEYWORD1>sizeof</KEYWORD1>
106			<KEYWORD1>switch</KEYWORD1>
107			<KEYWORD1>while</KEYWORD1>
108			<KEYWORD2>asm</KEYWORD2>
109			<KEYWORD2>asmlinkage</KEYWORD2>
110			<KEYWORD2>far</KEYWORD2>
111			<KEYWORD2>huge</KEYWORD2>
112			<KEYWORD2>inline</KEYWORD2>
113			<KEYWORD2>near</KEYWORD2>
114			<KEYWORD2>pascal</KEYWORD2>
115			<LITERAL2>true</LITERAL2>
116			<LITERAL2>false</LITERAL2>
117			<LITERAL2>NULL</LITERAL2>
118		</KEYWORDS>
119	</RULES>
120</MODE>