@@ -73,18 +73,21 @@ scopes:
7373 ' interpolation > "}"' : ' punctuation.section.embedded'
7474
7575 ' class_definition > identifier' : ' entity.name.type.class'
76- ' function_definition > identifier' : ' entity.name.function'
76+ ' function_definition > identifier' : ' entity.name.function.definition '
7777 ' call > identifier:nth-child(0)' : [
7878 {match : ' ^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$' ,
79- scopes : ' support.function' },
80- ' entity.name.function'
79+ scopes : ' support.function.call' },
80+ {match : ' ^[A-Z]' , scopes : ' support.type.contructor' }
81+ ' entity.name.function.call'
8182 ]
8283 ' call > attribute > identifier:nth-child(2)' : ' entity.name.function'
8384
84- ' identifier' :
85+ ' identifier' : [
8586 {match :
8687 ' ^(BaseException|Exception|TypeError|StopAsyncIteration|StopIteration|ImportError|ModuleNotFoundError|OSError|ConnectionError|BrokenPipeError|ConnectionAbortedError|ConnectionRefusedError|ConnectionResetError|BlockingIOError|ChildProcessError|FileExistsError|FileNotFoundError|IsADirectoryError|NotADirectoryError|InterruptedError|PermissionError|ProcessLookupError|TimeoutError|EOFError|RuntimeError|RecursionError|NotImplementedError|NameError|UnboundLocalError|AttributeError|SyntaxError|IndentationError|TabError|LookupError|IndexError|KeyError|ValueError|UnicodeError|UnicodeEncodeError|UnicodeDecodeError|UnicodeTranslateError|AssertionError|ArithmeticError|FloatingPointError|OverflowError|ZeroDivisionError|SystemError|ReferenceError|BufferError|MemoryError|Warning|UserWarning|DeprecationWarning|PendingDeprecationWarning|SyntaxWarning|RuntimeWarning|FutureWarning|ImportWarning|UnicodeWarning|BytesWarning|ResourceWarning|GeneratorExit|SystemExit|KeyboardInterrupt)$'
87- scopes : ' support.type.exception' }
88+ scopes : ' support.type.exception' },
89+ {match : ' ^(self)' , scopes : ' entity.name.variable.self' }
90+ ]
8891
8992 ' attribute > identifier:nth-child(2)' : ' variable.other.object.property'
9093
@@ -115,6 +118,10 @@ scopes:
115118 ' parameters > dictionary_splat > identifier' : ' variable.parameter.function'
116119 ' default_parameter > identifier:nth-child(0)' : ' variable.parameter.function'
117120 ' keyword_argument > identifier:nth-child(0)' : ' variable.parameter.function'
121+ ' lambda_parameters > identifier' : ' variable.parameter.function'
122+ ' typed_parameter > identifier' : ' variable.parameter.function'
123+
124+ ' argument_list' : ' meta.method-call.python'
118125
119126 ' "if"' : ' keyword.control'
120127 ' "else"' : ' keyword.control'
@@ -177,3 +184,12 @@ scopes:
177184 ' "or"' : ' keyword.operator.logical.python'
178185 ' "not"' : ' keyword.operator.logical.python'
179186 ' "is"' : ' keyword.operator.logical.python'
187+ ' "->"' : ' keyword.control.return'
188+
189+ ' "["' : ' punctuation.definition.begin.bracket.square'
190+ ' "]"' : ' punctuation.definition.end.bracket.square'
191+ ' ","' : ' punctuation.separator.delimiter'
192+ ' "{"' : ' punctuation.section.block.begin.bracket.curly'
193+ ' "}"' : ' punctuation.section.block.end.bracket.curly'
194+ ' "("' : ' punctuation.section.parens.begin.bracket.round'
195+ ' ")"' : ' punctuation.section.parens.end.bracket.round'
0 commit comments