From c155f7ccfa444547e6cfc080cb0ab63482ddaaaa Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 19 Oct 2018 10:55:18 -0700 Subject: [PATCH] Tweak rust highlighting * Highlight self as special variable Closes atom/language-rust#3 --- packages/language-rust-bundled/grammars/tree-sitter-rust.cson | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/language-rust-bundled/grammars/tree-sitter-rust.cson b/packages/language-rust-bundled/grammars/tree-sitter-rust.cson index 64dd48587..f9361ddb0 100644 --- a/packages/language-rust-bundled/grammars/tree-sitter-rust.cson +++ b/packages/language-rust-bundled/grammars/tree-sitter-rust.cson @@ -75,6 +75,8 @@ scopes: super ''': 'keyword.control' + 'self': 'variable.self' + ''' use_wildcard > identifier:nth-child(0), scoped_type_identifier > identifier:nth-child(0),