about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorveetaha <veetaha2@gmail.com>2020-04-22 02:00:58 +0300
committerveetaha <veetaha2@gmail.com>2020-04-22 02:00:58 +0300
commit61a931425d0b16b45e73d6932d4b476cc00c1934 (patch)
treed880dcfa07fbdc478eb0bb98cedecfed2d56fb48 /editors/code
parentec645f2d75d2939a2f64959019dd916750f1ec00 (diff)
downloadrust-61a931425d0b16b45e73d6932d4b476cc00c1934.tar.gz
rust-61a931425d0b16b45e73d6932d4b476cc00c1934.zip
Fix .rast tmGrammar to account for numbers in identifiers
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/ra_syntax_tree.tmGrammar.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/ra_syntax_tree.tmGrammar.json b/editors/code/ra_syntax_tree.tmGrammar.json
index 0d72a3e36d7..431d414f64e 100644
--- a/editors/code/ra_syntax_tree.tmGrammar.json
+++ b/editors/code/ra_syntax_tree.tmGrammar.json
@@ -9,7 +9,7 @@
     ],
     "repository": {
         "node_type": {
-            "match": "^\\s*([A-Z_]+?)@",
+            "match": "^\\s*([A-Z_][A-Z_0-9]*?)@",
             "captures": {
                 "1": {
                     "name": "entity.name.class"