From 9efa8a073849e039bf37b810896ca6c6e3cc126b Mon Sep 17 00:00:00 2001 From: ThatXliner Date: Wed, 31 Mar 2021 21:00:48 -0700 Subject: [PATCH 1/2] Update tree-sitter-python.cson --- grammars/tree-sitter-python.cson | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 4490d74..5b04cf4 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -184,7 +184,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 +194,4 @@ scopes: '"}"': 'punctuation.section.block.end.bracket.curly' '"("': 'punctuation.section.parens.begin.bracket.round' '")"': 'punctuation.section.parens.end.bracket.round' + From 406d90a557bc9095ed78fbdcd62c8b3908fe8e1c Mon Sep 17 00:00:00 2001 From: ThatXliner Date: Thu, 1 Apr 2021 17:58:47 -0700 Subject: [PATCH 2/2] Added ellipsis support --- grammars/tree-sitter-python.cson | 1 + 1 file changed, 1 insertion(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 5b04cf4..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'