From c8283a90ffb4896000df053bd27ef0fee6611a2a Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sat, 6 Apr 2019 14:04:33 -0700 Subject: [PATCH] Tokenize subclass list names in tree-sitter grammar --- grammars/tree-sitter-python.cson | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index ff31929..a99a177 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -92,6 +92,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'