@@ -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}
@@ -389,22 +395,6 @@ patterns:
389395 ' 2 ' : {name: meta.empty-tuple.python}
390396 ' 3 ' : {name: punctuation.definition.tuple.end.python}
391397
392- - name : meta.structure.tuple.python
393- begin : \b(\()
394- beginCaptures :
395- ' 1 ' : {name: punctuation.definition.tuple.begin.python}
396- end : (\))\b
397- endCaptures :
398- ' 1 ' : {name: punctuation.definition.tuple.end.python}
399- patterns :
400- - contentName : meta.structure.tuple.item.python
401- begin : (?<=\(|\,)\s*(?![\),])
402- end : \s*(?:(,)|(?=\)))
403- endCaptures :
404- ' 1 ' : {name: punctuation.separator.tuple.python}
405- patterns :
406- - include : $self
407-
408398- name : meta.structure.dictionary.python
409399 match : (\{)(\s*(\}))
410400 captures :
@@ -501,7 +491,8 @@ repository:
501491 patterns :
502492 - include : ' #keyword_arguments'
503493 - include : $self
504- - 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"
505496 name : support.function.builtin.python
506497 match : (?<!\.)\b(print|del)\b
507498
@@ -1040,7 +1031,7 @@ repository:
10401031 - include : ' #string_quoted_double'
10411032 - include : ' #string_quoted_single'
10421033author : Matt Morrison @MattDMo mattdmo@pigimal.com
1043- bundleUUID : 11B0273F-0284-4483-B17B-4B8D0A9294CC
1034+ bundleUUID : 0F24FCF1-6543-4CC6-8B33-2EAED401FE3A
10441035firstLineMatch : ^#!/.*\bpython[0-9.-]*\b
10451036foldingStartMarker : ^\s*(def|class)\s+([.a-zA-Z0-9_ <]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")
10461037foldingStopMarker : ^\s*$|^\s*\}|^\s*\]|^\s*\)|^\s*"""\s*$
0 commit comments