@@ -51,16 +51,20 @@ patterns:
5151- name : constant.numeric.integer.octal.python
5252 match : \b(?i:(0[o]?[0-7]+))
5353
54- - name : constant.numeric.complex.python
54+ - comment : Not quite perfect...
55+ name : constant.numeric.complex.python
5556 match : \b(?i:(((\d+(\.(?=[^\p{Alpha}_])\d*)?|(?<=[^\p{Alnum}_])\.\d+)(e[\-\+]?\d+)?))J)
5657
57- - name : constant.numeric.float.python
58+ - comment : Ummm... why do we have three of these? This is one...
59+ name : constant.numeric.float.python
5860 match : \b(?i:(\d+\.\d*(e[\-\+]?\d+)?))(?=[^\p{Alpha}_])
5961
60- - name : constant.numeric.float.python
62+ - comment : This is two...
63+ name : constant.numeric.float.python
6164 match : (?<=[^\p{Alnum}_])(?i:(\.\d+(e[\-\+]?\d+)?))
6265
63- - name : constant.numeric.float.python
66+ - comment : And this is three...
67+ name : constant.numeric.float.python
6468 match : \b(?i:(\d+e[\-\+]?\d+))
6569
6670- name : constant.numeric.integer.long.decimal.python
@@ -467,7 +471,7 @@ repository:
467471
468472 builtin_exceptions :
469473 name : support.type.exception.python
470- match : \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
474+ match : \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
471475
472476 builtin_functions :
473477 patterns :
0 commit comments