PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 4ms RepoModel.GetById 36ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/modes/objective-c.xml

#
XML | 158 lines | 155 code | 2 blank | 1 comment | 0 complexity | 5e8d6ce93ce98cc5b6cbfd835806067e 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*\(|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		<!-- C style comment -->
 20		<SPAN TYPE="COMMENT1">
 21			<BEGIN>/*</BEGIN>
 22			<END>*/</END>
 23		</SPAN>
 24
 25		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 26			<BEGIN>"</BEGIN>
 27			<END>"</END>
 28		</SPAN>
 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">#define</EOL_SPAN>
 40		<EOL_SPAN TYPE="KEYWORD2">#elif</EOL_SPAN>
 41		<EOL_SPAN TYPE="KEYWORD2">#else</EOL_SPAN>
 42		<EOL_SPAN TYPE="KEYWORD2">#endif</EOL_SPAN>
 43		<EOL_SPAN TYPE="KEYWORD2">#error</EOL_SPAN>
 44		<EOL_SPAN TYPE="KEYWORD2">#if</EOL_SPAN>
 45		<EOL_SPAN TYPE="KEYWORD2">#ifdef</EOL_SPAN>
 46		<EOL_SPAN TYPE="KEYWORD2">#ifndef</EOL_SPAN>
 47		<EOL_SPAN TYPE="KEYWORD2">#import</EOL_SPAN>
 48		<EOL_SPAN TYPE="KEYWORD2">#include</EOL_SPAN>
 49		<EOL_SPAN TYPE="KEYWORD2">#line</EOL_SPAN>
 50		<EOL_SPAN TYPE="KEYWORD2">#pragma</EOL_SPAN>
 51		<EOL_SPAN TYPE="KEYWORD2">#warning</EOL_SPAN>
 52		
 53		<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
 54		<SEQ TYPE="OPERATOR">=</SEQ>
 55		<SEQ TYPE="OPERATOR">!</SEQ>
 56		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 57		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 58		<SEQ TYPE="OPERATOR">+</SEQ>
 59		<SEQ TYPE="OPERATOR">-</SEQ>
 60		<SEQ TYPE="OPERATOR">/</SEQ>
 61
 62		<SEQ TYPE="OPERATOR">*</SEQ>
 63		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 64		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 65		<SEQ TYPE="OPERATOR">%</SEQ>
 66		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 67		<SEQ TYPE="OPERATOR">|</SEQ>
 68		<SEQ TYPE="OPERATOR">^</SEQ>
 69		<SEQ TYPE="OPERATOR">~</SEQ>
 70		<SEQ TYPE="OPERATOR">}</SEQ>
 71		<SEQ TYPE="OPERATOR">{</SEQ>
 72		<MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
 73			EXCLUDE_MATCH="TRUE"
 74			TYPE="LABEL">:</MARK_PREVIOUS>
 75
 76		<!-- Function calls -->
 77		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 78
 79		<KEYWORDS>
 80			<!-- Types (Standard C) -->
 81			<KEYWORD3>char</KEYWORD3>
 82			<KEYWORD3>const</KEYWORD3>
 83			<KEYWORD3>double</KEYWORD3>
 84			<KEYWORD3>enum</KEYWORD3>
 85			<KEYWORD3>float</KEYWORD3>
 86			<KEYWORD3>int</KEYWORD3>
 87			<KEYWORD3>long</KEYWORD3>
 88			<KEYWORD3>short</KEYWORD3>
 89			<KEYWORD3>signed</KEYWORD3>
 90			<KEYWORD3>struct</KEYWORD3>
 91			<KEYWORD3>typedef</KEYWORD3>
 92			<KEYWORD3>union</KEYWORD3>
 93			<KEYWORD3>unsigned</KEYWORD3>
 94			<KEYWORD3>void</KEYWORD3>
 95			<!-- Types (Objective C) -->
 96			<KEYWORD3>id</KEYWORD3>
 97			<KEYWORD3>Class</KEYWORD3>
 98			<KEYWORD3>SEL</KEYWORD3>
 99			<KEYWORD3>IMP</KEYWORD3>
100			<KEYWORD3>BOOL</KEYWORD3>
101			
102			<!-- Keywords (Standard C) -->
103			<KEYWORD1>auto</KEYWORD1>
104			<KEYWORD1>break</KEYWORD1>
105			<KEYWORD1>case</KEYWORD1>
106			<KEYWORD1>continue</KEYWORD1>
107			<KEYWORD1>default</KEYWORD1>
108			<KEYWORD1>do</KEYWORD1>
109			<KEYWORD1>else</KEYWORD1>
110			<KEYWORD1>extern</KEYWORD1>
111			<KEYWORD1>for</KEYWORD1>
112			<KEYWORD1>goto</KEYWORD1>
113			<KEYWORD1>if</KEYWORD1>
114			<KEYWORD1>register</KEYWORD1>
115			<KEYWORD1>return</KEYWORD1>
116			<KEYWORD1>sizeof</KEYWORD1>
117			<KEYWORD1>static</KEYWORD1>
118			<KEYWORD1>switch</KEYWORD1>
119			<KEYWORD1>volatile</KEYWORD1>
120			<KEYWORD1>while</KEYWORD1>
121			<!-- Non-standard -->
122			<KEYWORD1>asm</KEYWORD1>
123			<KEYWORD1>inline</KEYWORD1>
124			<!-- Keywords (Objective C) -->
125			<KEYWORD1>oneway</KEYWORD1>
126			<KEYWORD1>in</KEYWORD1>
127			<KEYWORD1>out</KEYWORD1>
128			<KEYWORD1>inout</KEYWORD1>
129			<KEYWORD1>bycopy</KEYWORD1>
130			<KEYWORD1>byref</KEYWORD1>
131			<KEYWORD1>self</KEYWORD1>
132			<KEYWORD1>super</KEYWORD1>
133			
134			<!-- Preprocessor Directives (Objective C)-->
135			<KEYWORD1>@interface</KEYWORD1>
136			<KEYWORD1>@implementation</KEYWORD1>
137			<KEYWORD1>@protocol</KEYWORD1>
138			<KEYWORD1>@end</KEYWORD1>
139			<KEYWORD1>@private</KEYWORD1>
140			<KEYWORD1>@protected</KEYWORD1>
141			<KEYWORD1>@public</KEYWORD1>
142			<KEYWORD1>@class</KEYWORD1>
143			<KEYWORD1>@selector</KEYWORD1>
144			<KEYWORD1>@endcode</KEYWORD1>
145			<KEYWORD1>@defs</KEYWORD1>
146			
147			<LITERAL2>true</LITERAL2>
148			<LITERAL2>false</LITERAL2>
149			<LITERAL2>TRUE</LITERAL2>
150			<LITERAL2>FALSE</LITERAL2>
151			<LITERAL2>YES</LITERAL2>
152			<LITERAL2>NO</LITERAL2>
153			<LITERAL2>NULL</LITERAL2>
154			<LITERAL2>nil</LITERAL2>
155			<LITERAL2>NIl</LITERAL2>
156		</KEYWORDS>
157	</RULES>
158</MODE>