|
138 | 138 | <string>constant.numeric.integer.octal.python</string> |
139 | 139 | </dict> |
140 | 140 | <dict> |
| 141 | + <key>comment</key> |
| 142 | + <string>Not quite perfect...</string> |
141 | 143 | <key>match</key> |
142 | 144 | <string>\b(?i:(((\d+(\.(?=[^\p{Alpha}_])\d*)?|(?<=[^\p{Alnum}_])\.\d+)(e[\-\+]?\d+)?))J)</string> |
143 | 145 | <key>name</key> |
144 | 146 | <string>constant.numeric.complex.python</string> |
145 | 147 | </dict> |
146 | 148 | <dict> |
| 149 | + <key>comment</key> |
| 150 | + <string>Ummm... why do we have three of these? This is one...</string> |
147 | 151 | <key>match</key> |
148 | 152 | <string>\b(?i:(\d+\.\d*(e[\-\+]?\d+)?))(?=[^\p{Alpha}_])</string> |
149 | 153 | <key>name</key> |
150 | 154 | <string>constant.numeric.float.python</string> |
151 | 155 | </dict> |
152 | 156 | <dict> |
| 157 | + <key>comment</key> |
| 158 | + <string>This is two...</string> |
153 | 159 | <key>match</key> |
154 | 160 | <string>(?<=[^\p{Alnum}_])(?i:(\.\d+(e[\-\+]?\d+)?))</string> |
155 | 161 | <key>name</key> |
156 | 162 | <string>constant.numeric.float.python</string> |
157 | 163 | </dict> |
158 | 164 | <dict> |
| 165 | + <key>comment</key> |
| 166 | + <string>And this is three...</string> |
159 | 167 | <key>match</key> |
160 | 168 | <string>\b(?i:(\d+e[\-\+]?\d+))</string> |
161 | 169 | <key>name</key> |
|
181 | 189 | </dict> |
182 | 190 | <dict> |
183 | 191 | <key>match</key> |
184 | | - <string>\b(global|nonlocal)\b</string> |
| 192 | + <string>\b(global|nonlocal|async)\b</string> |
185 | 193 | <key>name</key> |
186 | 194 | <string>storage.modifier.declaration.python</string> |
187 | 195 | </dict> |
|
195 | 203 | <key>comment</key> |
196 | 204 | <string>keywords that delimit flow blocks or alter flow from within a block</string> |
197 | 205 | <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> |
199 | 207 | <key>name</key> |
200 | 208 | <string>keyword.control.flow.python</string> |
201 | 209 | </dict> |
|
229 | 237 | </dict> |
230 | 238 | <dict> |
231 | 239 | <key>match</key> |
232 | | - <string>\+\=|-\=|\*\=|/\=|//\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\=</string> |
| 240 | + <string>\+\=|-\=|\*\=|/\=|//\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\=|@\=</string> |
233 | 241 | <key>name</key> |
234 | 242 | <string>keyword.operator.assignment.augmented.python</string> |
235 | 243 | </dict> |
236 | 244 | <dict> |
237 | 245 | <key>match</key> |
238 | | - <string>\+|\-|\*|\*\*|/|//|%|<<|>>|&|\||\^|~</string> |
| 246 | + <string>\+|\-|\*|\*\*|/|//|%|<<|>>|&|\||\^|~|(?!^)@</string> |
239 | 247 | <key>name</key> |
240 | 248 | <string>keyword.operator.arithmetic.python</string> |
241 | 249 | </dict> |
|
1372 | 1380 | <key>builtin_exceptions</key> |
1373 | 1381 | <dict> |
1374 | 1382 | <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> |
1376 | 1384 | <key>name</key> |
1377 | 1385 | <string>support.type.exception.python</string> |
1378 | 1386 | </dict> |
|
1858 | 1866 | <key>illegal_names</key> |
1859 | 1867 | <dict> |
1860 | 1868 | <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> |
1862 | 1870 | <key>name</key> |
1863 | 1871 | <string>invalid.illegal.name.python</string> |
1864 | 1872 | </dict> |
|
0 commit comments