@@ -4,7 +4,7 @@ comment: To make PythonImproved your default Python syntax, open a .py file and
44name : PythonImproved
55scopeName : source.python
66fileTypes : [py, py3, rpy, pyw, cpy, SConstruct, Sconstruct, sconstruct, SConscript]
7- uuid : 0F24FCF1-6543-4CC6-8B33-2EAED401FE3A
7+ uuid : 11B0273F-0284-4483-B17B-4B8D0A9294CC
88
99patterns :
1010- name : support.ipython.in.python
@@ -28,7 +28,8 @@ patterns:
2828 captures :
2929 ' 1 ' : {name: punctuation.definition.comment.python}
3030
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+ (.
3233 name : constant.other.allcaps.python
3334 match : \b([A-Z_][A-Z0-9_]*)\b(?![\.\(])
3435
@@ -360,7 +361,12 @@ patterns:
360361
361362- include : ' #dotted_name'
362363
363- - match : \b(\[)(\s*(\]))\b
364+ - begin : (\()
365+ end : (\))
366+ patterns :
367+ - include : $self
368+
369+ - match : (\[)(\s*(\]))\b
364370 captures :
365371 ' 1 ' : {name: punctuation.definition.list.begin.python}
366372 ' 2 ' : {name: meta.empty-list.python}
@@ -485,7 +491,8 @@ repository:
485491 patterns :
486492 - include : ' #keyword_arguments'
487493 - 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"
489496 name : support.function.builtin.python
490497 match : (?<!\.)\b(print|del)\b
491498
@@ -1024,7 +1031,7 @@ repository:
10241031 - include : ' #string_quoted_double'
10251032 - include : ' #string_quoted_single'
10261033author :
Matt Morrison @MattDMo [email protected] 1027- bundleUUID : 11B0273F-0284-4483-B17B-4B8D0A9294CC
1034+ bundleUUID : 0F24FCF1-6543-4CC6-8B33-2EAED401FE3A
10281035firstLineMatch : ^#!/.*\bpython[0-9.-]*\b
10291036foldingStartMarker : ^\s*(def|class)\s+([.a-zA-Z0-9_ <]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")
10301037foldingStopMarker : ^\s*$|^\s*\}|^\s*\]|^\s*\)|^\s*"""\s*$
0 commit comments