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

Tokenize formal function parameters in tree-sitter grammar #297

Merged
merged 1 commit into from
Apr 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions grammars/tree-sitter-python.cson
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down