Skip to content

Commit 3a32c73

Browse files
author
Matt Morrison
committed
build
1 parent a5eed1b commit 3a32c73

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

PythonImproved-Unicode.tmLanguage

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,32 @@
138138
<string>constant.numeric.integer.octal.python</string>
139139
</dict>
140140
<dict>
141+
<key>comment</key>
142+
<string>Not quite perfect...</string>
141143
<key>match</key>
142144
<string>\b(?i:(((\d+(\.(?=[^\p{Alpha}_])\d*)?|(?&lt;=[^\p{Alnum}_])\.\d+)(e[\-\+]?\d+)?))J)</string>
143145
<key>name</key>
144146
<string>constant.numeric.complex.python</string>
145147
</dict>
146148
<dict>
149+
<key>comment</key>
150+
<string>Ummm... why do we have three of these? This is one...</string>
147151
<key>match</key>
148152
<string>\b(?i:(\d+\.\d*(e[\-\+]?\d+)?))(?=[^\p{Alpha}_])</string>
149153
<key>name</key>
150154
<string>constant.numeric.float.python</string>
151155
</dict>
152156
<dict>
157+
<key>comment</key>
158+
<string>This is two...</string>
153159
<key>match</key>
154160
<string>(?&lt;=[^\p{Alnum}_])(?i:(\.\d+(e[\-\+]?\d+)?))</string>
155161
<key>name</key>
156162
<string>constant.numeric.float.python</string>
157163
</dict>
158164
<dict>
165+
<key>comment</key>
166+
<string>And this is three...</string>
159167
<key>match</key>
160168
<string>\b(?i:(\d+e[\-\+]?\d+))</string>
161169
<key>name</key>
@@ -181,7 +189,7 @@
181189
</dict>
182190
<dict>
183191
<key>match</key>
184-
<string>\b(global|nonlocal)\b</string>
192+
<string>\b(global|nonlocal|async)\b</string>
185193
<key>name</key>
186194
<string>storage.modifier.declaration.python</string>
187195
</dict>
@@ -195,7 +203,7 @@
195203
<key>comment</key>
196204
<string>keywords that delimit flow blocks or alter flow from within a block</string>
197205
<key>match</key>
198-
<string>\b(elif|else|except|finally|for|if|try|while|with|break|continue|pass|raise|return|yield)\b</string>
206+
<string>\b(elif|else|except|finally|for|if|try|while|with|break|continue|pass|raise|return|yield|await)\b</string>
199207
<key>name</key>
200208
<string>keyword.control.flow.python</string>
201209
</dict>
@@ -229,13 +237,13 @@
229237
</dict>
230238
<dict>
231239
<key>match</key>
232-
<string>\+\=|-\=|\*\=|/\=|//\=|%\=|&amp;\=|\|\=|\^\=|&gt;&gt;\=|&lt;&lt;\=|\*\*\=</string>
240+
<string>\+\=|-\=|\*\=|/\=|//\=|%\=|&amp;\=|\|\=|\^\=|&gt;&gt;\=|&lt;&lt;\=|\*\*\=|@\=</string>
233241
<key>name</key>
234242
<string>keyword.operator.assignment.augmented.python</string>
235243
</dict>
236244
<dict>
237245
<key>match</key>
238-
<string>\+|\-|\*|\*\*|/|//|%|&lt;&lt;|&gt;&gt;|&amp;|\||\^|~</string>
246+
<string>\+|\-|\*|\*\*|/|//|%|&lt;&lt;|&gt;&gt;|&amp;|\||\^|~|(?!^)@</string>
239247
<key>name</key>
240248
<string>keyword.operator.arithmetic.python</string>
241249
</dict>
@@ -1372,7 +1380,7 @@
13721380
<key>builtin_exceptions</key>
13731381
<dict>
13741382
<key>match</key>
1375-
<string>\b((Arithmetic|Assertion|Attribute|Buffer|EOF|Environment|FloatingPoint|IO|Import|Indentation|Index|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Standard|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|VMS|Windows|ZeroDivision|([\p{Alnum}_]+))Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes)?Warning|SystemExit|StopIteration|NotImplemented|KeyboardInterrupt|GeneratorExit|([\p{Alnum}_]+)?Exception)\b</string>
1383+
<string>\b((Arithmetic|Assertion|Attribute|Buffer|EOF|Environment|FloatingPoint|IO|Import|Indentation|Index|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Standard|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|VMS|Windows|ZeroDivision|([\p{Alpha}_][\p{Alnum}_]*))?Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes)?Warning|SystemExit|StopIteration|NotImplemented|KeyboardInterrupt|GeneratorExit|([\p{Alpha}_][\p{Alnum}_]*)?Exception)\b</string>
13761384
<key>name</key>
13771385
<string>support.type.exception.python</string>
13781386
</dict>
@@ -1858,7 +1866,7 @@
18581866
<key>illegal_names</key>
18591867
<dict>
18601868
<key>match</key>
1861-
<string>\b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b</string>
1869+
<string>\b(and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b</string>
18621870
<key>name</key>
18631871
<string>invalid.illegal.name.python</string>
18641872
</dict>

0 commit comments

Comments
 (0)