PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/swig.xml

#
XML | 35 lines | 30 code | 3 blank | 2 comment | 0 complexity | d68dea6336e8591ee4585cf25617e2e6 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	</PROPS>
20	<RULES ESCAPE="\"
21		IGNORE_CASE="FALSE"
22		HIGHLIGHT_DIGITS="TRUE"
23		DIGIT_RE="(0x[\p{XDigit}]+[lL]?|[\p{Digit}]+(e[\p{Digit}]*)?[lLdDfF]?)">
24
25		<SPAN TYPE="LITERAL3">
26			<BEGIN>%{</BEGIN>
27			<END>%}</END>
28		</SPAN>
29
30		<!-- swig directive -->
31		<MARK_FOLLOWING AT_WORD_START="TRUE" TYPE="KEYWORD4">%</MARK_FOLLOWING>
32
33		<IMPORT DELEGATE="c::MAIN"/>
34    </RULES>
35</MODE>