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

Commit

Permalink
Merge pull request #298 from caleb531/tree-sitter-subclass-names
Browse files Browse the repository at this point in the history
Tokenize subclass list names in tree-sitter grammar
  • Loading branch information
Nathan Sobo authored Apr 10, 2019
2 parents 283fba7 + c8283a9 commit d901fb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions grammars/tree-sitter-python.cson
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ scopes:

'type > identifier': 'support.storage.type'

'class_definition > argument_list > attribute': 'entity.other.inherited-class'
'class_definition > argument_list > identifier': 'entity.other.inherited-class'
'class_definition > argument_list > keyword_argument > attribute': 'entity.other.inherited-class'
'class_definition > argument_list > keyword_argument > identifier:nth-child(2)': 'entity.other.inherited-class'

'"class"': 'storage.type.class'
'"def"': 'storage.type.function'
'"lambda"': 'storage.type.function'
Expand Down

0 comments on commit d901fb9

Please sign in to comment.