File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments