1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 |
|
---|
4 | Syntax highlighting definition for Lua 5.1 and 5.2
|
---|
5 |
|
---|
6 | xslthl - XSLT Syntax Highlighting
|
---|
7 | http://sourceforge.net/projects/xslthl/
|
---|
8 | Copyright (C) 2012 Patrick Rapin
|
---|
9 |
|
---|
10 | This software is provided 'as-is', without any express or implied
|
---|
11 | warranty. In no event will the authors be held liable for any damages
|
---|
12 | arising from the use of this software.
|
---|
13 |
|
---|
14 | Permission is granted to anyone to use this software for any purpose,
|
---|
15 | including commercial applications, and to alter it and redistribute it
|
---|
16 | freely, subject to the following restrictions:
|
---|
17 |
|
---|
18 | 1. The origin of this software must not be misrepresented; you must not
|
---|
19 | claim that you wrote the original software. If you use this software
|
---|
20 | in a product, an acknowledgment in the product documentation would be
|
---|
21 | appreciated but is not required.
|
---|
22 | 2. Altered source versions must be plainly marked as such, and must not be
|
---|
23 | misrepresented as being the original software.
|
---|
24 | 3. This notice may not be removed or altered from any source distribution.
|
---|
25 |
|
---|
26 | If you want to send an e-mail to Patrick Rapin, please execute the
|
---|
27 | following decrypting script in Lua 5.1 or 5.2:
|
---|
28 | print(('oc mia.l@kmgrtci.naparip'):gsub('(..)(..)','%2%1'):reverse())
|
---|
29 | -->
|
---|
30 |
|
---|
31 | <highlighters>
|
---|
32 | <highlighter type="keywords">
|
---|
33 | <keyword>and</keyword>
|
---|
34 | <keyword>break</keyword>
|
---|
35 | <keyword>do</keyword>
|
---|
36 | <keyword>else</keyword>
|
---|
37 | <keyword>elseif</keyword>
|
---|
38 | <keyword>end</keyword>
|
---|
39 | <keyword>false</keyword>
|
---|
40 | <keyword>for</keyword>
|
---|
41 | <keyword>function</keyword>
|
---|
42 | <keyword>goto</keyword>
|
---|
43 | <keyword>if</keyword>
|
---|
44 | <keyword>in</keyword>
|
---|
45 | <keyword>local</keyword>
|
---|
46 | <keyword>nil</keyword>
|
---|
47 | <keyword>not</keyword>
|
---|
48 | <keyword>or</keyword>
|
---|
49 | <keyword>repeat</keyword>
|
---|
50 | <keyword>return</keyword>
|
---|
51 | <keyword>then</keyword>
|
---|
52 | <keyword>true</keyword>
|
---|
53 | <keyword>until</keyword>
|
---|
54 | <keyword>while</keyword>
|
---|
55 | </highlighter>
|
---|
56 |
|
---|
57 | <!-- Multiline comments can have any number of equal signs
|
---|
58 | between brackets. Let's support up to 4 -->
|
---|
59 | <highlighter type="multiline-comment">
|
---|
60 | <start>--[[</start>
|
---|
61 | <end>]]</end>
|
---|
62 | </highlighter>
|
---|
63 | <highlighter type="multiline-comment">
|
---|
64 | <start>--[=[</start>
|
---|
65 | <end>]=]</end>
|
---|
66 | </highlighter>
|
---|
67 | <highlighter type="multiline-comment">
|
---|
68 | <start>--[==[</start>
|
---|
69 | <end>]==]</end>
|
---|
70 | </highlighter>
|
---|
71 | <highlighter type="multiline-comment">
|
---|
72 | <start>--[===[</start>
|
---|
73 | <end>]===]</end>
|
---|
74 | </highlighter>
|
---|
75 | <highlighter type="multiline-comment">
|
---|
76 | <start>--[====[</start>
|
---|
77 | <end>]====]</end>
|
---|
78 | </highlighter>
|
---|
79 |
|
---|
80 | <highlighter type="oneline-comment">
|
---|
81 | --
|
---|
82 | </highlighter>
|
---|
83 |
|
---|
84 | <highlighter type="string">
|
---|
85 | <string>"</string>
|
---|
86 | <endString>"</endString>
|
---|
87 | <escape>\</escape>
|
---|
88 | <spanNewLines/>
|
---|
89 | </highlighter>
|
---|
90 |
|
---|
91 | <highlighter type="string">
|
---|
92 | <string>'</string>
|
---|
93 | <endString>'</endString>
|
---|
94 | <escape>\</escape>
|
---|
95 | <spanNewLines/>
|
---|
96 | </highlighter>
|
---|
97 |
|
---|
98 | <!-- Long strings can also have any number of equal signs. -->
|
---|
99 | <highlighter type="string">
|
---|
100 | <string>[[</string>
|
---|
101 | <endString>]]</endString>
|
---|
102 | <spanNewLines/>
|
---|
103 | </highlighter>
|
---|
104 | <highlighter type="string">
|
---|
105 | <string>[=[</string>
|
---|
106 | <endString>]=]</endString>
|
---|
107 | <spanNewLines/>
|
---|
108 | </highlighter>
|
---|
109 | <highlighter type="string">
|
---|
110 | <string>[==[</string>
|
---|
111 | <endString>]==]</endString>
|
---|
112 | <spanNewLines/>
|
---|
113 | </highlighter>
|
---|
114 | <highlighter type="string">
|
---|
115 | <string>[===[</string>
|
---|
116 | <endString>]===]</endString>
|
---|
117 | <spanNewLines/>
|
---|
118 | </highlighter>
|
---|
119 | <highlighter type="string">
|
---|
120 | <string>[====[</string>
|
---|
121 | <endString>]====]</endString>
|
---|
122 | <spanNewLines/>
|
---|
123 | </highlighter>
|
---|
124 |
|
---|
125 | <highlighter type="number">
|
---|
126 | <point>.</point>
|
---|
127 | <pointStarts />
|
---|
128 | <exponent>e</exponent>
|
---|
129 | <ignoreCase />
|
---|
130 | </highlighter>
|
---|
131 |
|
---|
132 | <highlighter type="hexnumber">
|
---|
133 | <prefix>0x</prefix>
|
---|
134 | <point>.</point>
|
---|
135 | <pointStarts />
|
---|
136 | <exponent>p</exponent>
|
---|
137 | <ignoreCase />
|
---|
138 | </highlighter>
|
---|
139 |
|
---|
140 | </highlighters>
|
---|