xref: /llvm-project/mlir/utils/vscode/cpp-grammar.json (revision 999fb7d0450a804f3eb0d16d2853e8667658f39e)
1{
2  "scopeName": "source.cpp.mlir",
3  "injectionSelector": "L:source.cpp -string.quoted.double.cpp -string.quoted.double.raw",
4  "patterns": [
5    {
6      "include": "#mlir-raw-string"
7    }
8  ],
9  "repository": {
10    "mlir-raw-string": {
11      "begin": "R\"(?i:mlir)(\\()",
12      "beginCaptures": {
13        "0": {
14          "name": "punctuation.definition.string.begin.cpp"
15        },
16        "1": {
17          "name": "mlir.delimeter.raw.string.cpp"
18        }
19      },
20      "end": "\\)(?i:mlir)\"",
21      "endCaptures": {
22        "0": {
23          "name": "punctuation.definition.string.end.cpp"
24        },
25        "1": {
26          "name": "mlir.delimeter.raw.string.cpp"
27        }
28      },
29      "name": "mlir.raw.string.cpp",
30      "patterns": [
31        {
32          "contentName": "source.mlir",
33          "begin": "(?!\\G)",
34          "end": "(?i)(?=\\)mlir\")",
35          "patterns": [
36            {
37              "include": "source.mlir"
38            }
39          ]
40        }
41      ]
42    }
43  }
44}
45