package tm-grammars

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file tm_grammar_reg.ml

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
let lang_id = "reg"
let json = {json|{
  "displayName": "Windows Registry Script",
  "fileTypes": [
    "reg",
    "REG"
  ],
  "name": "reg",
  "patterns": [
    {
      "match": "Windows Registry Editor Version 5\\.00|REGEDIT4",
      "name": "keyword.control.import.reg"
    },
    {
      "captures": {
        "1": {
          "name": "punctuation.definition.comment.reg"
        }
      },
      "match": "(;).*$",
      "name": "comment.line.semicolon.reg"
    },
    {
      "captures": {
        "1": {
          "name": "punctuation.definition.section.reg"
        },
        "2": {
          "name": "entity.section.reg"
        },
        "3": {
          "name": "punctuation.definition.section.reg"
        }
      },
      "match": "^\\s*(\\[(?!-))(.*?)(])",
      "name": "entity.name.function.section.add.reg"
    },
    {
      "captures": {
        "1": {
          "name": "punctuation.definition.section.reg"
        },
        "2": {
          "name": "entity.section.reg"
        },
        "3": {
          "name": "punctuation.definition.section.reg"
        }
      },
      "match": "^\\s*(\\[-)(.*?)(])",
      "name": "entity.name.function.section.delete.reg"
    },
    {
      "captures": {
        "10": {
          "name": "string.name.regdata.reg"
        },
        "11": {
          "name": "punctuation.definition.quote.reg"
        },
        "13": {
          "name": "support.type.dword.reg"
        },
        "14": {
          "name": "keyword.operator.arithmetic.colon.reg"
        },
        "15": {
          "name": "constant.numeric.dword.reg"
        },
        "17": {
          "name": "support.type.dword.reg"
        },
        "18": {
          "name": "keyword.operator.arithmetic.parenthesis.reg"
        },
        "19": {
          "name": "keyword.operator.arithmetic.parenthesis.reg"
        },
        "2": {
          "name": "punctuation.definition.quote.reg"
        },
        "20": {
          "name": "constant.numeric.hex.size.reg"
        },
        "21": {
          "name": "keyword.operator.arithmetic.parenthesis.reg"
        },
        "22": {
          "name": "keyword.operator.arithmetic.colon.reg"
        },
        "23": {
          "name": "constant.numeric.hex.reg"
        },
        "24": {
          "name": "keyword.operator.arithmetic.linecontinuation.reg"
        },
        "25": {
          "name": "comment.declarationline.semicolon.reg"
        },
        "3": {
          "name": "support.function.regname.ini"
        },
        "4": {
          "name": "punctuation.definition.quote.reg"
        },
        "5": {
          "name": "punctuation.definition.equals.reg"
        },
        "7": {
          "name": "keyword.operator.arithmetic.minus.reg"
        },
        "9": {
          "name": "punctuation.definition.quote.reg"
        }
      },
      "match": "^(\\s*([\"']?)(.+?)([\"']?)\\s*(=))?\\s*((-)|(([\"'])(.*?)([\"']))|(((?i:dword))(:)\\s*([A-Fa-f\\d]{1,8}))|(((?i:hex))((\\()(\\d*)(\\)))?(:)(.*?)(\\\\?)))\\s*(;.*)?$",
      "name": "meta.declaration.reg"
    },
    {
      "match": "[0-9]+",
      "name": "constant.numeric.reg"
    },
    {
      "match": "[A-Fa-f]+",
      "name": "constant.numeric.hex.reg"
    },
    {
      "match": ",+",
      "name": "constant.numeric.hex.comma.reg"
    },
    {
      "match": "\\\\",
      "name": "keyword.operator.arithmetic.linecontinuation.reg"
    }
  ],
  "scopeName": "source.reg"
}|json}