Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 310c4aa

Browse files
authored
Merge pull request #303 from caleb531/tree-sitter-fn-param-fixes
Tokenize *args and **kwargs the same as other parameters (tree-sitter)
2 parents be73472 + 878f350 commit 310c4aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

grammars/tree-sitter-python.cson

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ scopes:
111111
'"nonlocal"': 'storage.modifier.nonlocal'
112112

113113
'parameters > identifier': 'variable.parameter.function'
114+
'parameters > list_splat > identifier': 'variable.parameter.function'
115+
'parameters > dictionary_splat > identifier': 'variable.parameter.function'
114116
'default_parameter > identifier:nth-child(0)': 'variable.parameter.function'
115117
'keyword_argument > identifier:nth-child(0)': 'variable.parameter.function'
116118

0 commit comments

Comments
 (0)