PageRenderTime 67ms CodeModel.GetById 59ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 167 lines | 163 code | 3 blank | 1 comment | 0 complexity | 4c3b25af3f83118b58a173f99adb1d88 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6    <PROPS>
  7        <PROPERTY NAME="commentStart" VALUE="/*" />
  8        <PROPERTY NAME="commentEnd" VALUE="*/" />
  9        <PROPERTY NAME="lineComment" VALUE="//" />
 10        <PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
 11
 12	<!-- Auto indent -->
 13	<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 14	<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 15	<PROPERTY NAME="unalignedOpenBrackets" VALUE="(" />
 16	<PROPERTY NAME="unalignedCloseBrackets" VALUE=")" />
 17	<PROPERTY NAME="indentNextLine"
 18		VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
 19	<PROPERTY NAME="unindentThisLine"
 20		VALUE="^.*(default:\s*|case.*:.*)$" />
 21	<PROPERTY NAME="electricKeys" VALUE=":" />
 22    </PROPS>
 23    <RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 24        <!-- Silly comment -->
 25	<SEQ TYPE="COMMENT1">/**/</SEQ>
 26
 27	<!-- Doxygen comment, Javadoc style -->
 28        <SPAN TYPE="COMMENT3" DELEGATE="doxygen::DOXYGEN">
 29            <BEGIN>/**</BEGIN>
 30            <END>*/</END>
 31        </SPAN>
 32
 33        <!-- Doxygen comment, Qt style -->
 34        <SPAN TYPE="COMMENT3" DELEGATE="doxygen::DOXYGEN">
 35            <BEGIN>/*!</BEGIN>
 36            <END>*/</END>
 37        </SPAN>
 38
 39        <!-- C style comment -->
 40        <SPAN TYPE="COMMENT1">
 41            <BEGIN>/*</BEGIN>
 42            <END>*/</END>
 43        </SPAN>
 44
 45        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 46            <BEGIN>"</BEGIN>
 47            <END>"</END>
 48        </SPAN>
 49        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 50            <BEGIN>'</BEGIN>
 51            <END>'</END>
 52        </SPAN>
 53        <SPAN TYPE="LITERAL3" NO_LINE_BREAK="TRUE">
 54            <BEGIN>@"</BEGIN>
 55            <END>"</END>
 56        </SPAN>
 57
 58        <!-- preprocessor statements -->
 59        <SEQ TYPE="KEYWORD2">##</SEQ>
 60        <EOL_SPAN TYPE="KEYWORD2" DELEGATE="c::CPP">#</EOL_SPAN>
 61        
 62        <EOL_SPAN TYPE="COMMENT2">//</EOL_SPAN>
 63        <SEQ TYPE="OPERATOR">=</SEQ>
 64        <SEQ TYPE="OPERATOR">!</SEQ>
 65        <SEQ TYPE="OPERATOR">&gt;=</SEQ>
 66        <SEQ TYPE="OPERATOR">&lt;=</SEQ>
 67        <SEQ TYPE="OPERATOR">+</SEQ>
 68        <SEQ TYPE="OPERATOR">-</SEQ>
 69        <SEQ TYPE="OPERATOR">/</SEQ>
 70
 71        <SEQ TYPE="OPERATOR">*</SEQ>
 72        <SEQ TYPE="OPERATOR">&gt;</SEQ>
 73        <SEQ TYPE="OPERATOR">&lt;</SEQ>
 74        <SEQ TYPE="OPERATOR">%</SEQ>
 75        <SEQ TYPE="OPERATOR">&amp;</SEQ>
 76        <SEQ TYPE="OPERATOR">|</SEQ>
 77        <SEQ TYPE="OPERATOR">^</SEQ>
 78        <SEQ TYPE="OPERATOR">~</SEQ>
 79        <SEQ TYPE="OPERATOR">}</SEQ>
 80        <SEQ TYPE="OPERATOR">{</SEQ>
 81        <MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
 82            EXCLUDE_MATCH="TRUE"
 83            TYPE="LABEL">:</MARK_PREVIOUS>
 84
 85        <!-- Function calls -->
 86        <MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 87
 88        <KEYWORDS>
 89            <!-- Types (Standard C) -->
 90            <KEYWORD3>char</KEYWORD3>
 91            <KEYWORD3>const</KEYWORD3>
 92            <KEYWORD3>double</KEYWORD3>
 93            <KEYWORD3>enum</KEYWORD3>
 94            <KEYWORD3>float</KEYWORD3>
 95            <KEYWORD3>int</KEYWORD3>
 96            <KEYWORD3>long</KEYWORD3>
 97            <KEYWORD3>short</KEYWORD3>
 98            <KEYWORD3>signed</KEYWORD3>
 99            <KEYWORD3>struct</KEYWORD3>
100            <KEYWORD3>typedef</KEYWORD3>
101            <KEYWORD3>union</KEYWORD3>
102            <KEYWORD3>unsigned</KEYWORD3>
103            <KEYWORD3>void</KEYWORD3>
104            <!-- Types (Objective C) -->
105            <KEYWORD3>id</KEYWORD3>
106            <KEYWORD3>Class</KEYWORD3>
107            <KEYWORD3>SEL</KEYWORD3>
108            <KEYWORD3>IMP</KEYWORD3>
109            <KEYWORD3>BOOL</KEYWORD3>
110            
111            <!-- Keywords (Standard C) -->
112            <KEYWORD1>auto</KEYWORD1>
113            <KEYWORD1>break</KEYWORD1>
114            <KEYWORD1>case</KEYWORD1>
115            <KEYWORD1>continue</KEYWORD1>
116            <KEYWORD1>default</KEYWORD1>
117            <KEYWORD1>do</KEYWORD1>
118            <KEYWORD1>else</KEYWORD1>
119            <KEYWORD1>extern</KEYWORD1>
120            <KEYWORD1>for</KEYWORD1>
121            <KEYWORD1>goto</KEYWORD1>
122            <KEYWORD1>if</KEYWORD1>
123            <KEYWORD1>register</KEYWORD1>
124            <KEYWORD1>return</KEYWORD1>
125            <KEYWORD1>sizeof</KEYWORD1>
126            <KEYWORD1>static</KEYWORD1>
127            <KEYWORD1>switch</KEYWORD1>
128            <KEYWORD1>volatile</KEYWORD1>
129            <KEYWORD1>while</KEYWORD1>
130            <!-- Non-standard -->
131            <KEYWORD1>asm</KEYWORD1>
132            <KEYWORD1>inline</KEYWORD1>
133            <!-- Keywords (Objective C) -->
134            <KEYWORD1>oneway</KEYWORD1>
135            <KEYWORD1>in</KEYWORD1>
136            <KEYWORD1>out</KEYWORD1>
137            <KEYWORD1>inout</KEYWORD1>
138            <KEYWORD1>bycopy</KEYWORD1>
139            <KEYWORD1>byref</KEYWORD1>
140            <KEYWORD1>self</KEYWORD1>
141            <KEYWORD1>super</KEYWORD1>
142            
143            <!-- Preprocessor Directives (Objective C)-->
144            <KEYWORD1>@interface</KEYWORD1>
145            <KEYWORD1>@implementation</KEYWORD1>
146            <KEYWORD1>@protocol</KEYWORD1>
147            <KEYWORD1>@end</KEYWORD1>
148            <KEYWORD1>@private</KEYWORD1>
149            <KEYWORD1>@protected</KEYWORD1>
150            <KEYWORD1>@public</KEYWORD1>
151            <KEYWORD1>@class</KEYWORD1>
152            <KEYWORD1>@selector</KEYWORD1>
153            <KEYWORD1>@endcode</KEYWORD1>
154            <KEYWORD1>@defs</KEYWORD1>
155            
156            <LITERAL2>true</LITERAL2>
157            <LITERAL2>false</LITERAL2>
158            <LITERAL2>TRUE</LITERAL2>
159            <LITERAL2>FALSE</LITERAL2>
160            <LITERAL2>YES</LITERAL2>
161            <LITERAL2>NO</LITERAL2>
162            <LITERAL2>NULL</LITERAL2>
163            <LITERAL2>nil</LITERAL2>
164            <LITERAL2>NIl</LITERAL2>
165        </KEYWORDS>
166    </RULES>
167</MODE>