-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathyacc.xml
120 lines (109 loc) · 3.34 KB
/
yacc.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0"?>
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<MODE>
<PROPS>
<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
<PROPERTY NAME="indentPrevLine"
VALUE="\s*(((if|while)\s*\(|else\s*(\{|$)|else\s+if\s*\(|case\s+.+:|default:)[^;]*|for\s*\(.*)" />
<!-- set this to 'true' if you want to use GNU coding style -->
<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
<PROPERTY NAME="commentStart" VALUE="/*" />
<PROPERTY NAME="commentEnd" VALUE="*/" />
<PROPERTY NAME="lineComment" VALUE="//" />
<PROPERTY NAME="wordBreakChars" VALUE=",+=<>/?^&*" />
</PROPS>
<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE" NO_WORD_SEP="-">
<!-- C style comment -->
<SPAN TYPE="COMMENT1">
<BEGIN>/*</BEGIN>
<END>*/</END>
</SPAN>
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
<BEGIN>"</BEGIN>
<END>"</END>
</SPAN>
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
<BEGIN>'</BEGIN>
<END>'</END>
</SPAN>
<!-- preprocessor statements -->
<EOL_SPAN TYPE="KEYWORD2">#</EOL_SPAN>
<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
<SEQ TYPE="NULL">)</SEQ>
<SEQ TYPE="OPERATOR">=</SEQ>
<SEQ TYPE="OPERATOR">!</SEQ>
<SEQ TYPE="OPERATOR">>=</SEQ>
<SEQ TYPE="OPERATOR"><=</SEQ>
<SEQ TYPE="OPERATOR">+</SEQ>
<SEQ TYPE="OPERATOR">/</SEQ>
<SEQ TYPE="OPERATOR">*</SEQ>
<SEQ TYPE="OPERATOR">></SEQ>
<SEQ TYPE="OPERATOR"><</SEQ>
<SEQ TYPE="OPERATOR">&</SEQ>
<SEQ TYPE="OPERATOR">|</SEQ>
<SEQ TYPE="OPERATOR">^</SEQ>
<SEQ TYPE="OPERATOR">~</SEQ>
<SEQ TYPE="OPERATOR">}</SEQ>
<SEQ TYPE="OPERATOR">{</SEQ>
<SEQ TYPE="NULL">.</SEQ>
<SEQ TYPE="NULL">,</SEQ>
<SEQ TYPE="NULL">;</SEQ>
<SEQ TYPE="NULL">]</SEQ>
<SEQ TYPE="NULL">[</SEQ>
<SEQ TYPE="NULL">?</SEQ>
<MARK_PREVIOUS TYPE="LABEL"
AT_LINE_START="TRUE">:</MARK_PREVIOUS>
<MARK_FOLLOWING TYPE="OPERATOR">%</MARK_FOLLOWING>
<SPAN TYPE="MARKUP">
<BEGIN>$<</BEGIN>
<END>></END>
</SPAN>
<!-- Function calls -->
<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
<KEYWORDS>
<KEYWORD3>char</KEYWORD3>
<KEYWORD3>double</KEYWORD3>
<KEYWORD3>enum</KEYWORD3>
<KEYWORD3>float</KEYWORD3>
<KEYWORD3>int</KEYWORD3>
<KEYWORD3>long</KEYWORD3>
<KEYWORD3>short</KEYWORD3>
<KEYWORD3>signed</KEYWORD3>
<KEYWORD3>struct</KEYWORD3>
<KEYWORD3>typedef</KEYWORD3>
<KEYWORD3>union</KEYWORD3>
<KEYWORD3>unsigned</KEYWORD3>
<KEYWORD3>void</KEYWORD3>
<KEYWORD1>auto</KEYWORD1>
<KEYWORD1>const</KEYWORD1>
<KEYWORD1>extern</KEYWORD1>
<KEYWORD1>register</KEYWORD1>
<KEYWORD1>static</KEYWORD1>
<KEYWORD1>volatile</KEYWORD1>
<KEYWORD1>break</KEYWORD1>
<KEYWORD1>case</KEYWORD1>
<KEYWORD1>continue</KEYWORD1>
<KEYWORD1>default</KEYWORD1>
<KEYWORD1>do</KEYWORD1>
<KEYWORD1>else</KEYWORD1>
<KEYWORD1>for</KEYWORD1>
<KEYWORD1>goto</KEYWORD1>
<KEYWORD1>if</KEYWORD1>
<KEYWORD1>return</KEYWORD1>
<KEYWORD1>sizeof</KEYWORD1>
<KEYWORD1>switch</KEYWORD1>
<KEYWORD1>while</KEYWORD1>
<KEYWORD2>asm</KEYWORD2>
<KEYWORD2>asmlinkage</KEYWORD2>
<KEYWORD2>far</KEYWORD2>
<KEYWORD2>huge</KEYWORD2>
<KEYWORD2>inline</KEYWORD2>
<KEYWORD2>near</KEYWORD2>
<KEYWORD2>pascal</KEYWORD2>
<LITERAL2>true</LITERAL2>
<LITERAL2>false</LITERAL2>
<LITERAL2>NULL</LITERAL2>
</KEYWORDS>
</RULES>
</MODE>