Skip to content

Commit 2063419

Browse files
author
Matt Morrison
committed
try to fix merge conflicts
1 parent 40ba5c0 commit 2063419

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

PythonImproved.YAML-tmLanguage

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ patterns:
7070

7171
- name: constant.language.python
7272
match: \b(None|True|False|Ellipsis|NotImplemented)\b
73-
73+
7474
- name: storage.modifier.declaration.python
7575
match: \b(global|nonlocal)\b
7676

@@ -360,12 +360,7 @@ patterns:
360360

361361
- include: '#dotted_name'
362362

363-
- begin: (\()
364-
end: (\))
365-
patterns:
366-
- include: $self
367-
368-
- match: (\[)(\s*(\]))\b
363+
- match: \b(\[)(\s*(\]))\b
369364
captures:
370365
'1': {name: punctuation.definition.list.begin.python}
371366
'2': {name: meta.empty-list.python}
@@ -388,12 +383,28 @@ patterns:
388383
- include: $self
389384

390385
- name: meta.structure.tuple.python
391-
match: (\()(\s*(\)))
386+
match: \b(\()(\s*(\)))\b
392387
captures:
393388
'1': {name: punctuation.definition.tuple.begin.python}
394389
'2': {name: meta.empty-tuple.python}
395390
'3': {name: punctuation.definition.tuple.end.python}
396391

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+
397408
- name: meta.structure.dictionary.python
398409
match: (\{)(\s*(\}))
399410
captures:

0 commit comments

Comments
 (0)