Skip to content

Commit

Permalink
Even better Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniyPeshkov committed May 28, 2019
1 parent fe2c104 commit 399bc4b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Syntax Highlighter Change Log

## **Version 0.2.4**
#### Even better Rust
Thanks to [@Geobert](https://github.com/Geobert) ones again.

## **Version 0.2.3**
#### Much better Rust
Huge thanks to [@Geobert](https://github.com/Geobert) for contribution.
Expand Down
24 changes: 8 additions & 16 deletions grammars/rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

"primitive_type": "type",

// "attribute_item": "variable",
"inner_attribute_item": "variable",
"shorthand_field_identifier": "variable",

Expand All @@ -26,7 +25,6 @@
"trait": "storage_modifier",
"mod": "storage_modifier",
"pub": "storage_modifier",
"crate": "storage_modifier",
"default": "storage_modifier",
"ref": "storage_modifier",
"mutable_specifier": "storage_modifier",
Expand All @@ -53,6 +51,10 @@
"where": "keyword_control",
"macro_rules!": "keyword_control",

"self": "keyword_control",
"super": "keyword_control",
"crate": "keyword_control",

".": "keyword_operator",
"->": "keyword_operator",
"-": "keyword_operator",
Expand Down Expand Up @@ -88,7 +90,8 @@
"^=": "keyword_operator",
"|=": "keyword_operator",
"?": "keyword_operator",
"::": "keyword_operator",
"::": "keyword_operator",
"..": "keyword_operator",
"as": "keyword_operator",

"use": "keyword_directive",
Expand All @@ -103,7 +106,6 @@

"complexTerms": [
"identifier", "field_identifier", "type_identifier",
"self", "super", "crate",
"(", ")", "[", "]", "*"],

"complexScopes": {
Expand All @@ -117,6 +119,8 @@
"use_as_clause > identifier": "type",
"tuple_struct_pattern > identifier": "type",
"enum_variant > identifier": "type",
"unit_type > (": "type",
"unit_type > )": "type",

"scoped_identifier > identifier": "namespace",
"scoped_type_identifier > identifier": "namespace",
Expand All @@ -131,8 +135,6 @@

"identifier": "variable",
"field_identifier": "variable",
"self": "variable",
"super": "variable",

"call_expression > identifier": "function",
"call_expression > field_expression > field_identifier[-1]": "function",
Expand All @@ -149,16 +151,6 @@

"meta_item > identifier": "keyword_directive",

"use_list > self": "keyword_operator",
"scoped_use_list > self": "keyword_operator",
"scoped_identifier > self": "keyword_operator",
"use_list > crate": "keyword_operator",
"scoped_use_list > crate": "keyword_operator",
"scoped_identifier > crate": "keyword_operator",
"use_list > super": "keyword_operator",
"scoped_use_list > super": "keyword_operator",
"scoped_identifier > super": "keyword_operator",

"*": "keyword_operator",
"(": "punctuation",
")": "punctuation",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Syntax Highlighter",
"description": "Syntax highlighting based on Tree-sitter",
"homepage": "https://github.com/EvgeniyPeshkov/syntax-highlighter",
"version": "0.2.3",
"version": "0.2.4",
"publisher": "evgeniypeshkov",
"license": "MIT",
"icon": "images/syntax.png",
Expand Down

0 comments on commit 399bc4b

Please sign in to comment.