mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
32 lines
761 B
JSON
32 lines
761 B
JSON
|
{
|
||
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||
|
|
||
|
"scopeName": "source.ra_syntax_tree",
|
||
|
"patterns": [
|
||
|
{ "include": "#node_type" },
|
||
|
{ "include": "#node_range_index" },
|
||
|
{ "include": "#token_text" }
|
||
|
],
|
||
|
"repository": {
|
||
|
"node_type": {
|
||
|
"match": "^\\s*([A-Z_]+?)@",
|
||
|
"captures": {
|
||
|
"1": {
|
||
|
"name": "entity.name.class"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"node_range_index": {
|
||
|
"match": "\\d+",
|
||
|
"name": "constant.numeric"
|
||
|
},
|
||
|
"token_text": {
|
||
|
"match": "\".+\"",
|
||
|
"name": "string"
|
||
|
}
|
||
|
},
|
||
|
"fileTypes": [
|
||
|
"rast"
|
||
|
]
|
||
|
}
|