From 878f3509636237fe7bbfe2c5f06b59229e93fa93 Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sun, 12 May 2019 16:09:16 -0700 Subject: [PATCH] Tokenize *args and **kwargs the same as other parameters These changes are specifically for the Python tree-sitter grammar. --- grammars/tree-sitter-python.cson | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index ec0138a..4951b02 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -111,6 +111,8 @@ scopes: '"nonlocal"': 'storage.modifier.nonlocal' 'parameters > identifier': 'variable.parameter.function' + 'parameters > list_splat > identifier': 'variable.parameter.function' + 'parameters > dictionary_splat > identifier': 'variable.parameter.function' 'default_parameter > identifier:nth-child(0)': 'variable.parameter.function' 'keyword_argument > identifier:nth-child(0)': 'variable.parameter.function'