From 7159e8b5b1092d73844bd69ee14434be82629f77 Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sat, 6 Apr 2019 13:39:11 -0700 Subject: [PATCH] Tokenize formal function parameters in 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 ff31929..0560c96 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -99,6 +99,8 @@ scopes: '"global"': 'storage.modifier.global' '"nonlocal"': 'storage.modifier.nonlocal' + 'parameters > identifier': 'variable.parameter.function' + 'default_parameter > identifier:nth-child(0)': 'variable.parameter.function' 'keyword_argument > identifier:nth-child(0)': 'variable.parameter.function' '"if"': 'keyword.control'