]> git.lizzy.rs Git - rust.git/blob - editors/code/ra_syntax_tree.tmGrammar.json
Auto merge of #13647 - nyz93:fix/tuple-to-named-struct, r=Veykril
[rust.git] / editors / code / ra_syntax_tree.tmGrammar.json
1 {
2     "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3
4     "scopeName": "source.ra_syntax_tree",
5     "patterns": [
6         { "include": "#node_type" },
7         { "include": "#node_range_index" },
8         { "include": "#token_text" }
9     ],
10     "repository": {
11         "node_type": {
12             "match": "^\\s*([A-Z_][A-Z_0-9]*?)@",
13             "captures": {
14                 "1": {
15                     "name": "entity.name.class"
16                 }
17             }
18         },
19         "node_range_index": {
20             "match": "\\d+",
21             "name": "constant.numeric"
22         },
23         "token_text": {
24             "match": "\".+\"",
25             "name": "string"
26         }
27     },
28     "fileTypes": ["rast"]
29 }