@@ -4,7 +4,7 @@ comment: To make PythonImproved your default Python syntax, open a .py file and
4
4
name : PythonImproved
5
5
scopeName : source.python
6
6
fileTypes : [py, py3, rpy, pyw, cpy, SConstruct, Sconstruct, sconstruct, SConscript]
7
- uuid : 0F24FCF1-6543-4CC6-8B33-2EAED401FE3A
7
+ uuid : 11B0273F-0284-4483-B17B-4B8D0A9294CC
8
8
9
9
patterns :
10
10
- name : support.ipython.in.python
@@ -28,7 +28,8 @@ patterns:
28
28
captures :
29
29
' 1 ' : {name: punctuation.definition.comment.python}
30
30
31
- - comment : Match identifiers in ALL_CAPS as constants, except when followed by . or (.
31
+ - comment : Match identifiers in ALL_CAPS as constants, except when followed by . or
32
+ (.
32
33
name : constant.other.allcaps.python
33
34
match : \b([A-Z_][A-Z0-9_]*)\b(?![\.\(])
34
35
@@ -360,7 +361,12 @@ patterns:
360
361
361
362
- include : ' #dotted_name'
362
363
363
- - match : \b(\[)(\s*(\]))\b
364
+ - begin : (\()
365
+ end : (\))
366
+ patterns :
367
+ - include : $self
368
+
369
+ - match : (\[)(\s*(\]))\b
364
370
captures :
365
371
' 1 ' : {name: punctuation.definition.list.begin.python}
366
372
' 2 ' : {name: meta.empty-list.python}
@@ -485,7 +491,8 @@ repository:
485
491
patterns :
486
492
- include : ' #keyword_arguments'
487
493
- include : $self
488
- - comment : " These are statements in Py2, but don't really fit into keyword.control.flow with the rest"
494
+ - comment : " These are statements in Py2, but don't really fit into keyword.control.flow\
495
+ \ with the rest"
489
496
name : support.function.builtin.python
490
497
match : (?<!\.)\b(print|del)\b
491
498
@@ -1024,7 +1031,7 @@ repository:
1024
1031
- include : ' #string_quoted_double'
1025
1032
- include : ' #string_quoted_single'
1026
1033
author :
Matt Morrison @MattDMo [email protected]
1027
- bundleUUID : 11B0273F-0284-4483-B17B-4B8D0A9294CC
1034
+ bundleUUID : 0F24FCF1-6543-4CC6-8B33-2EAED401FE3A
1028
1035
firstLineMatch : ^#!/.*\bpython[0-9.-]*\b
1029
1036
foldingStartMarker : ^\s*(def|class)\s+([.a-zA-Z0-9_ <]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")
1030
1037
foldingStopMarker : ^\s*$|^\s*\}|^\s*\]|^\s*\)|^\s*"""\s*$
0 commit comments