PageRenderTime 21ms CodeModel.GetById 18ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/modes/swig.xml

#
XML | 36 lines | 31 code | 3 blank | 2 comment | 0 complexity | 49ff045ab502250e41adf5469303ec9c 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="indentNextLine"
16			VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
17		<!-- set this to 'true' if you want to use GNU coding style -->
18		<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
19		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
20	</PROPS>
21	<RULES ESCAPE="\"
22		IGNORE_CASE="FALSE"
23		HIGHLIGHT_DIGITS="TRUE"
24		DIGIT_RE="(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)">
25
26		<SPAN TYPE="LITERAL3">
27			<BEGIN>%{</BEGIN>
28			<END>%}</END>
29		</SPAN>
30
31		<!-- swig directive -->
32		<MARK_FOLLOWING AT_WORD_START="TRUE" TYPE="KEYWORD4">%</MARK_FOLLOWING>
33
34		<IMPORT DELEGATE="c::MAIN"/>
35    </RULES>
36</MODE>