From 0168959a22b96fa9e6424842b679bb82da638031 Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Wed, 31 Oct 2018 08:58:10 +0100 Subject: [PATCH 1/3] Scope primitive_types as support.storage.type --- grammars/tree-sitter-c.cson | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/grammars/tree-sitter-c.cson b/grammars/tree-sitter-c.cson index 7e645a7..116597e 100644 --- a/grammars/tree-sitter-c.cson +++ b/grammars/tree-sitter-c.cson @@ -97,11 +97,11 @@ scopes: 'field_identifier': 'variable.other.member' - 'type_identifier': 'support.support.type' - 'primitive_type': 'support.support.type' - '"unsigned"': 'support.support.type' - '"short"': 'support.support.type' - '"long"': 'support.support.type' + 'type_identifier': 'support.storage.type' + 'primitive_type': 'support.storage.type' + '"unsigned"': 'support.storage.type' + '"short"': 'support.storage.type' + '"long"': 'support.storage.type' 'char_literal': 'string.quoted.single' 'string_literal': 'string.quoted.double' From 756bc5735276d7390cfd21b43ea6c489393e031e Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Wed, 31 Oct 2018 08:58:55 +0100 Subject: [PATCH 2/3] Also scope as support.storage.type for c++ --- grammars/tree-sitter-cpp.cson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammars/tree-sitter-cpp.cson b/grammars/tree-sitter-cpp.cson index ef6bebf..5f2b28a 100644 --- a/grammars/tree-sitter-cpp.cson +++ b/grammars/tree-sitter-cpp.cson @@ -138,8 +138,8 @@ scopes: 'type_identifier': 'support.storage.type' 'primitive_type': 'support.storage.type' '"unsigned"': 'support.storage.type' - '"short"': 'support.support.type' - '"long"': 'support.support.type' + '"short"': 'support.storage.type' + '"long"': 'support.storage.type' 'auto': 'storage.storage.type' 'char_literal': 'string.quoted.single' From cf1eeb6248cdb2d621e951d2a3cf60754983acb1 Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Wed, 31 Oct 2018 13:45:46 +0100 Subject: [PATCH 3/3] Scope auto as support.storage.type --- grammars/tree-sitter-cpp.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars/tree-sitter-cpp.cson b/grammars/tree-sitter-cpp.cson index 5f2b28a..dffafd4 100644 --- a/grammars/tree-sitter-cpp.cson +++ b/grammars/tree-sitter-cpp.cson @@ -140,7 +140,7 @@ scopes: '"unsigned"': 'support.storage.type' '"short"': 'support.storage.type' '"long"': 'support.storage.type' - 'auto': 'storage.storage.type' + 'auto': 'support.storage.type' 'char_literal': 'string.quoted.single' 'string_literal': 'string.quoted.double'