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

Commit

Permalink
Merge pull request #297 from caleb531/tree-sitter-function-parameters
Browse files Browse the repository at this point in the history
Tokenize formal function parameters in tree-sitter grammar
  • Loading branch information
Nathan Sobo authored Apr 10, 2019
2 parents 591fc79 + 7159e8b commit 283fba7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grammars/tree-sitter-python.cson
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,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

0 comments on commit 283fba7

Please sign in to comment.