aboutsummaryrefslogtreecommitdiff
path: root/editors/code/ra_syntax_tree.tmGrammar.json
blob: 431d414f64ef87f1d92d01c9d08af57aaa94cde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
    "$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_][A-Z_0-9]*?)@",
            "captures": {
                "1": {
                    "name": "entity.name.class"
                }
            }
        },
        "node_range_index": {
            "match": "\\d+",
            "name": "constant.numeric"
        },
        "token_text": {
            "match": "\".+\"",
            "name": "string"
        }
    },
    "fileTypes": [
        "rast"
    ]
}