PageRenderTime 97ms CodeModel.GetById 91ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

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