-
Notifications
You must be signed in to change notification settings - Fork 1
/
Python.xshd
124 lines (102 loc) · 3.03 KB
/
Python.xshd
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
121
122
123
124
<SyntaxDefinition name="Python" extensions=".py">
<Properties>
<Property name="LineComment" value="#"/>
</Properties>
<Digits name="Digits" color="DarkBlue"/>
<RuleSets>
<RuleSet ignorecase="false">
<Delimiters>()[]{}@,:.`=;+-*/% &|^><</Delimiters>
<Span name="DocComment" color="Gray">
<Begin>"""</Begin>
<End>"""</End>
</Span>
<Span name="SingleQuoteDocComment" color="Gray">
<Begin>'''</Begin>
<End>'''</End>
</Span>
<Span name="LineComment" stopateol="true" color="Gray">
<Begin>#</Begin>
</Span>
<Span name="String" stopateol="true" color="Blue" escapecharacter="\">
<Begin>"</Begin>
<End>"</End>
</Span>
<Span name="Char" stopateol="true" color="Blue" escapecharacter="\">
<Begin>'</Begin>
<End>'</End>
</Span>
<MarkPrevious bold="true" color="MidnightBlue">(</MarkPrevious>
<KeyWords name="BuiltInStatements" bold="true" color="MidnightBlue">
<Key word="assert"/>
<Key word="del"/>
<Key word="exec"/>
<Key word="global"/>
<Key word="lambda"/>
<Key word="print"/>
</KeyWords>
<KeyWords name="ClassStatement" color="Blue" bold="true">
<Key word="class"/>
</KeyWords>
<KeyWords name="ExceptionHandlingStatements" bold="true" color="Teal">
<Key word="except"/>
<Key word="finally"/>
<Key word="raise"/>
<Key word="try"/>
</KeyWords>
<KeyWords name="FunctionDefinition" bold="true" color="Blue">
<Key word="def"/>
</KeyWords>
<KeyWords name="Imports" bold="true" color="Green">
<Key word="import"/>
<Key word="from"/>
</KeyWords>
<KeyWords name="IterationStatements" bold="true" color="Blue">
<Key word="for"/>
<Key word="in"/>
<Key word="while"/>
</KeyWords>
<KeyWords name="JumpStatements" color="Navy">
<Key word="break"/>
<Key word="continue"/>
<Key word="yield"/>
<Key word="return"/>
</KeyWords>
<KeyWords name="OperatorStatements" bold="true" color="DarkCyan">
<Key word="and"/>
<Key word="as"/>
<Key word="is"/>
<Key word="not"/>
<Key word="or"/>
</KeyWords>
<KeyWords name="PassStatement" color="Gray">
<Key word="pass"/>
</KeyWords>
<KeyWords name="SelectionStatements" bold="true" color="Blue">
<Key word="elif"/>
<Key word="else"/>
<Key word="if"/>
</KeyWords>
<KeyWords name="WithStatement" color="DarkViolet">
<Key word="with"/>
</KeyWords>
<KeyWords name="IronAPI" color="Green">
<Key word="Request"/>
<Key word="Response"/>
<Key word="IronSession"/>
<Key word="PluginResults"/>
<Key word="PluginResult"/>
<Key word="PluginWorksOn"/>
<Key word="PluginCallingState"/>
<Key word="PluginResultType"/>
<Key word="PluginResultSeverity"/>
<Key word="PluginResultConfidence"/>
<Key word="HTML"/>
<Key word="Tools"/>
<Key word="Scanner"/>
<Key word="AskUser"/>
<Key word="ThreadStore"/>
<Key word="GlobalStore"/>
</KeyWords>
</RuleSet>
</RuleSets>
</SyntaxDefinition>