diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 4490d74..4e71f26 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -98,6 +98,7 @@ scopes: 'false': 'constant.language' 'integer': 'constant.numeric' 'float': 'constant.numeric' + '"..."': 'constant.ellipsis.other' 'type > identifier': 'support.storage.type' @@ -184,7 +185,8 @@ scopes: '"or"': 'keyword.operator.logical.python' '"not"': 'keyword.operator.logical.python' '"is"': 'keyword.operator.logical.python' - '"->"': 'keyword.control.return' + '"->"': 'keyword.operator.function-annotation' + '":"': 'punctuation.separator' '"["': 'punctuation.definition.begin.bracket.square' '"]"': 'punctuation.definition.end.bracket.square' @@ -193,3 +195,4 @@ scopes: '"}"': 'punctuation.section.block.end.bracket.curly' '"("': 'punctuation.section.parens.begin.bracket.round' '")"': 'punctuation.section.parens.end.bracket.round' +