PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

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

#
XML | 81 lines | 76 code | 3 blank | 2 comment | 0 complexity | a0d5c51aed90d0ba899ccfd1be3e5b81 MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<!DOCTYPE MODE SYSTEM "xmode.dtd">
 4
 5<MODE>
 6    <PROPS>
 7        <PROPERTY NAME="lineComment" VALUE="#" />
 8        <PROPERTY NAME="wordBreakChars" VALUE="_,+-=&lt;&gt;/?^&amp;*" />
 9
10        <!-- Auto indent -->
11        <PROPERTY NAME="indentOpenBrackets" VALUE="{" />
12        <PROPERTY NAME="indentCloseBrackets" VALUE="}" />
13        <PROPERTY NAME="indentNextLine"
14            VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
15        <!-- set this to 'true' if you want to use GNU coding style -->
16        <PROPERTY NAME="doubleBracketIndent" VALUE="false" />
17    </PROPS>
18    <RULES ESCAPE="\"
19        IGNORE_CASE="FALSE"
20        HIGHLIGHT_DIGITS="TRUE"
21        DIGIT_RE="(0x[\p{XDigit}]+[lL]?|[\p{Digit}]+(e[\p{Digit}]*)?[lLdDfF]?)">
22
23        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
24            <BEGIN>"</BEGIN>
25            <END>"</END>
26        </SPAN>
27        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
28            <BEGIN>'</BEGIN>
29            <END>'</END>
30        </SPAN>
31
32        <EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>
33        <SEQ TYPE="OPERATOR">=</SEQ>
34        <SEQ TYPE="OPERATOR">!</SEQ>
35        <SEQ TYPE="OPERATOR">_</SEQ>
36        <SEQ TYPE="OPERATOR">&gt;=</SEQ>
37        <SEQ TYPE="OPERATOR">&lt;=</SEQ>
38        <SEQ TYPE="OPERATOR">&lt;-</SEQ>
39        <SEQ TYPE="OPERATOR">+</SEQ>
40        <SEQ TYPE="OPERATOR">-</SEQ>
41        <SEQ TYPE="OPERATOR">/</SEQ>
42
43        <SEQ TYPE="OPERATOR">*</SEQ>
44        <SEQ TYPE="OPERATOR">&gt;</SEQ>
45        <SEQ TYPE="OPERATOR">&lt;</SEQ>
46        <SEQ TYPE="OPERATOR">%</SEQ>
47        <SEQ TYPE="OPERATOR">&amp;</SEQ>
48        <SEQ TYPE="OPERATOR">|</SEQ>
49        <SEQ TYPE="OPERATOR">^</SEQ>
50        <SEQ TYPE="OPERATOR">~</SEQ>
51        <SEQ TYPE="OPERATOR">}</SEQ>
52        <SEQ TYPE="OPERATOR">{</SEQ>
53        <MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
54            EXCLUDE_MATCH="TRUE"
55            TYPE="LABEL">:</MARK_PREVIOUS>
56
57        <!-- Function calls -->
58        <MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
59
60        <KEYWORDS>
61            <KEYWORD1>break</KEYWORD1>
62            <KEYWORD1>case</KEYWORD1>
63            <KEYWORD1>continue</KEYWORD1>
64            <KEYWORD1>default</KEYWORD1>
65            <KEYWORD1>do</KEYWORD1>
66            <KEYWORD1>else</KEYWORD1>
67            <KEYWORD1>for</KEYWORD1>
68            <KEYWORD1>goto</KEYWORD1>
69            <KEYWORD1>if</KEYWORD1>
70            <KEYWORD1>return</KEYWORD1>
71            <KEYWORD1>sizeof</KEYWORD1>
72            <KEYWORD1>switch</KEYWORD1>
73            <KEYWORD1>while</KEYWORD1>
74
75            <KEYWORD1>function</KEYWORD1>
76
77            <LITERAL2>T</LITERAL2>
78            <LITERAL2>F</LITERAL2>
79        </KEYWORDS>
80    </RULES>
81</MODE>