]> git.stg.codes - stg.git/blob - doc/xslt/highlighting/python-hl.xml
Help updated
[stg.git] / doc / xslt / highlighting / python-hl.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3 \r
4 Syntax highlighting definition for Python\r
5 \r
6 xslthl - XSLT Syntax Highlighting\r
7 http://sourceforge.net/projects/xslthl/\r
8 Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
9 \r
10 This software is provided 'as-is', without any express or implied\r
11 warranty.  In no event will the authors be held liable for any damages\r
12 arising from the use of this software.\r
13 \r
14 Permission is granted to anyone to use this software for any purpose,\r
15 including commercial applications, and to alter it and redistribute it\r
16 freely, subject to the following restrictions:\r
17 \r
18 1. The origin of this software must not be misrepresented; you must not\r
19    claim that you wrote the original software. If you use this software\r
20    in a product, an acknowledgment in the product documentation would be\r
21    appreciated but is not required.\r
22 2. Altered source versions must be plainly marked as such, and must not be\r
23    misrepresented as being the original software.\r
24 3. This notice may not be removed or altered from any source distribution.\r
25 \r
26 Michal Molhanec <mol1111 at users.sourceforge.net>\r
27 Jirka Kosek <kosek at users.sourceforge.net>\r
28 Michiel Hendriks <elmuerte at users.sourceforge.net>\r
29 \r
30 -->\r
31 <highlighters>\r
32         <highlighter type="annotation">\r
33                 <!-- these are actually called decorators -->\r
34                 <start>@</start>\r
35                 <valueStart>(</valueStart>\r
36                 <valueEnd>)</valueEnd>\r
37         </highlighter>\r
38         <highlighter type="oneline-comment">#</highlighter>\r
39         <highlighter type="string">\r
40                 <string>"""</string>\r
41                 <spanNewLines />\r
42         </highlighter>\r
43         <highlighter type="string">\r
44                 <string>'''</string>\r
45                 <spanNewLines />\r
46         </highlighter>\r
47         <highlighter type="string">\r
48                 <string>"</string>\r
49                 <escape>\</escape>\r
50         </highlighter>\r
51         <highlighter type="string">\r
52                 <string>'</string>\r
53                 <escape>\</escape>\r
54         </highlighter>\r
55         <highlighter type="hexnumber">\r
56                 <prefix>0x</prefix>\r
57                 <suffix>l</suffix>\r
58                 <ignoreCase />\r
59         </highlighter>\r
60         <highlighter type="number">\r
61                 <point>.</point>\r
62                 <pointStarts />\r
63                 <exponent>e</exponent>\r
64                 <suffix>l</suffix>\r
65                 <ignoreCase />\r
66         </highlighter>\r
67         <highlighter type="keywords">\r
68                 <keyword>and</keyword>\r
69                 <keyword>del</keyword>\r
70                 <keyword>from</keyword>\r
71                 <keyword>not</keyword>\r
72                 <keyword>while</keyword>\r
73                 <keyword>as</keyword>\r
74                 <keyword>elif</keyword>\r
75                 <keyword>global</keyword>\r
76                 <keyword>or</keyword>\r
77                 <keyword>with</keyword>\r
78                 <keyword>assert</keyword>\r
79                 <keyword>else</keyword>\r
80                 <keyword>if</keyword>\r
81                 <keyword>pass</keyword>\r
82                 <keyword>yield</keyword>\r
83                 <keyword>break</keyword>\r
84                 <keyword>except</keyword>\r
85                 <keyword>import</keyword>\r
86                 <keyword>print</keyword>\r
87                 <keyword>class</keyword>\r
88                 <keyword>exec</keyword>\r
89                 <keyword>in</keyword>\r
90                 <keyword>raise</keyword>\r
91                 <keyword>continue</keyword>\r
92                 <keyword>finally</keyword>\r
93                 <keyword>is</keyword>\r
94                 <keyword>return</keyword>\r
95                 <keyword>def</keyword>\r
96                 <keyword>for</keyword>\r
97                 <keyword>lambda</keyword>\r
98                 <keyword>try</keyword>\r
99         </highlighter>\r
100 </highlighters>