Skip to content

Commit 933e44e

Browse files
author
Matt Morrison
committed
everything should work now...
1 parent a8abe43 commit 933e44e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

PythonImproved.YAML-tmLanguage

+12-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ comment: To make PythonImproved your default Python syntax, open a .py file and
44
name: PythonImproved
55
scopeName: source.python
66
fileTypes: [py, py3, rpy, pyw, cpy, SConstruct, Sconstruct, sconstruct, SConscript]
7-
uuid: 0F24FCF1-6543-4CC6-8B33-2EAED401FE3A
7+
uuid: 11B0273F-0284-4483-B17B-4B8D0A9294CC
88

99
patterns:
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'
10261033
author: Matt Morrison @MattDMo [email protected]
1027-
bundleUUID: 11B0273F-0284-4483-B17B-4B8D0A9294CC
1034+
bundleUUID: 0F24FCF1-6543-4CC6-8B33-2EAED401FE3A
10281035
firstLineMatch: ^#!/.*\bpython[0-9.-]*\b
10291036
foldingStartMarker: ^\s*(def|class)\s+([.a-zA-Z0-9_ <]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")
10301037
foldingStopMarker: ^\s*$|^\s*\}|^\s*\]|^\s*\)|^\s*"""\s*$

0 commit comments

Comments
 (0)