Skip to content

Commit a94f9cb

Browse files
author
MattDMo
committed
Fixed line continuation problem in #32
1 parent f10ac72 commit a94f9cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PythonImproved.YAML-tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,9 @@ repository:
659659

660660
entity_name_function:
661661
patterns:
662+
# - include: '#generic_names'
662663
- include: '#builtin_functions_name'
663664
- include: '#magic_function_names'
664-
- include: '#generic_names'
665665
- include: '#illegal_names'
666666

667667
errors_warnings_exceptions:
@@ -757,7 +757,7 @@ repository:
757757
beginCaptures:
758758
'1': {name: variable.parameter.function.keyword.python}
759759
'2': {name: keyword.operator.assignment.python}
760-
end: \s*(?:(,)|(?=$\n?|[\)\:]))
760+
end: \s*(?:(,)|(?=[\)\:]))
761761
endCaptures:
762762
'1': {name: punctuation.separator.parameters.python}
763763
patterns:
@@ -799,7 +799,7 @@ repository:
799799
setstate | sizeof | str | sub | subclasscheck | truediv | trunc |
800800
unicode | xor)
801801
__)
802-
\b\s*(?!(\())
802+
\b\s*(?!(\(.*:\n(\s*\#.*)?$))
803803
captures:
804804
'2': {name: support.function.magic.name.python}
805805

0 commit comments

Comments
 (0)