PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

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

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