PageRenderTime 92ms CodeModel.GetById 88ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/modes/splus.xml

#
XML | 82 lines | 77 code | 3 blank | 2 comment | 0 complexity | 3f0f54bb5d8eb90919a39bcd6613ac43 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        <PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
18    </PROPS>
19    <RULES ESCAPE="\"
20        IGNORE_CASE="FALSE"
21        HIGHLIGHT_DIGITS="TRUE"
22        DIGIT_RE="(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)">
23
24        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
25            <BEGIN>"</BEGIN>
26            <END>"</END>
27        </SPAN>
28        <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
29            <BEGIN>'</BEGIN>
30            <END>'</END>
31        </SPAN>
32
33        <EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>
34        <SEQ TYPE="OPERATOR">=</SEQ>
35        <SEQ TYPE="OPERATOR">!</SEQ>
36        <SEQ TYPE="OPERATOR">_</SEQ>
37        <SEQ TYPE="OPERATOR">&gt;=</SEQ>
38        <SEQ TYPE="OPERATOR">&lt;=</SEQ>
39        <SEQ TYPE="OPERATOR">&lt;-</SEQ>
40        <SEQ TYPE="OPERATOR">+</SEQ>
41        <SEQ TYPE="OPERATOR">-</SEQ>
42        <SEQ TYPE="OPERATOR">/</SEQ>
43
44        <SEQ TYPE="OPERATOR">*</SEQ>
45        <SEQ TYPE="OPERATOR">&gt;</SEQ>
46        <SEQ TYPE="OPERATOR">&lt;</SEQ>
47        <SEQ TYPE="OPERATOR">%</SEQ>
48        <SEQ TYPE="OPERATOR">&amp;</SEQ>
49        <SEQ TYPE="OPERATOR">|</SEQ>
50        <SEQ TYPE="OPERATOR">^</SEQ>
51        <SEQ TYPE="OPERATOR">~</SEQ>
52        <SEQ TYPE="OPERATOR">}</SEQ>
53        <SEQ TYPE="OPERATOR">{</SEQ>
54        <MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
55            EXCLUDE_MATCH="TRUE"
56            TYPE="LABEL">:</MARK_PREVIOUS>
57
58        <!-- Function calls -->
59        <MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
60
61        <KEYWORDS>
62            <KEYWORD1>break</KEYWORD1>
63            <KEYWORD1>case</KEYWORD1>
64            <KEYWORD1>continue</KEYWORD1>
65            <KEYWORD1>default</KEYWORD1>
66            <KEYWORD1>do</KEYWORD1>
67            <KEYWORD1>else</KEYWORD1>
68            <KEYWORD1>for</KEYWORD1>
69            <KEYWORD1>goto</KEYWORD1>
70            <KEYWORD1>if</KEYWORD1>
71            <KEYWORD1>return</KEYWORD1>
72            <KEYWORD1>sizeof</KEYWORD1>
73            <KEYWORD1>switch</KEYWORD1>
74            <KEYWORD1>while</KEYWORD1>
75            
76            <KEYWORD1>function</KEYWORD1>
77
78            <LITERAL2>T</LITERAL2>
79            <LITERAL2>F</LITERAL2>
80        </KEYWORDS>
81    </RULES>
82</MODE>