tm-grammars 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/NOTICE +6565 -0
- package/README.md +211 -0
- package/grammars/abap.json +380 -0
- package/grammars/actionscript-3.json +951 -0
- package/grammars/ada.json +3874 -0
- package/grammars/apache.json +562 -0
- package/grammars/apex.json +3203 -0
- package/grammars/apl.json +1479 -0
- package/grammars/applescript.json +1406 -0
- package/grammars/ara.json +428 -0
- package/grammars/asm.json +1741 -0
- package/grammars/astro.json +776 -0
- package/grammars/awk.json +388 -0
- package/grammars/ballerina.json +3768 -0
- package/grammars/bat.json +783 -0
- package/grammars/beancount.json +831 -0
- package/grammars/berry.json +172 -0
- package/grammars/bibtex.json +315 -0
- package/grammars/bicep.json +239 -0
- package/grammars/blade.json +3870 -0
- package/grammars/c.json +3552 -0
- package/grammars/cadence.json +738 -0
- package/grammars/clarity.json +877 -0
- package/grammars/clojure.json +426 -0
- package/grammars/cmake.json +143 -0
- package/grammars/cobol.json +1124 -0
- package/grammars/codeql.json +1540 -0
- package/grammars/coffee.json +1311 -0
- package/grammars/cpp-macro.json +9498 -0
- package/grammars/cpp.json +16635 -0
- package/grammars/crystal.json +1866 -0
- package/grammars/csharp.json +5722 -0
- package/grammars/css.json +1860 -0
- package/grammars/csv.json +46 -0
- package/grammars/cue.json +1128 -0
- package/grammars/cypher.json +353 -0
- package/grammars/d.json +3185 -0
- package/grammars/dart.json +522 -0
- package/grammars/dax.json +185 -0
- package/grammars/diff.json +155 -0
- package/grammars/docker.json +97 -0
- package/grammars/dream-maker.json +640 -0
- package/grammars/elixir.json +1014 -0
- package/grammars/elm.json +751 -0
- package/grammars/erb.json +156 -0
- package/grammars/erlang.json +1757 -0
- package/grammars/fish.json +189 -0
- package/grammars/fsharp.json +1831 -0
- package/grammars/gdresource.json +290 -0
- package/grammars/gdscript.json +969 -0
- package/grammars/gdshader.json +405 -0
- package/grammars/gherkin.json +133 -0
- package/grammars/git-commit.json +85 -0
- package/grammars/git-rebase.json +56 -0
- package/grammars/glimmer-js.json +98 -0
- package/grammars/glimmer-ts.json +98 -0
- package/grammars/glsl.json +57 -0
- package/grammars/gnuplot.json +892 -0
- package/grammars/go.json +1012 -0
- package/grammars/graphql.json +1295 -0
- package/grammars/groovy.json +1378 -0
- package/grammars/hack.json +2650 -0
- package/grammars/haml.json +598 -0
- package/grammars/handlebars.json +848 -0
- package/grammars/haskell.json +2431 -0
- package/grammars/hcl.json +787 -0
- package/grammars/hjson.json +821 -0
- package/grammars/hlsl.json +212 -0
- package/grammars/html.json +93 -0
- package/grammars/imba.json +2696 -0
- package/grammars/ini.json +108 -0
- package/grammars/java.json +1885 -0
- package/grammars/javascript.json +5984 -0
- package/grammars/jinja-html.json +16 -0
- package/grammars/jinja.json +345 -0
- package/grammars/jison.json +715 -0
- package/grammars/jsdoc.json +21 -0
- package/grammars/json.json +208 -0
- package/grammars/json5.json +244 -0
- package/grammars/jsonc.json +208 -0
- package/grammars/jsonl.json +208 -0
- package/grammars/jsonnet.json +211 -0
- package/grammars/jssm.json +159 -0
- package/grammars/jsx.json +5984 -0
- package/grammars/julia.json +1061 -0
- package/grammars/kotlin.json +580 -0
- package/grammars/kusto.json +687 -0
- package/grammars/latex.json +2395 -0
- package/grammars/less.json +5012 -0
- package/grammars/liquid.json +990 -0
- package/grammars/lisp.json +121 -0
- package/grammars/logo.json +55 -0
- package/grammars/lua.json +956 -0
- package/grammars/make.json +629 -0
- package/grammars/markdown.json +3066 -0
- package/grammars/marko.json +1344 -0
- package/grammars/matlab.json +1131 -0
- package/grammars/mdc.json +571 -0
- package/grammars/mdx.json +5629 -0
- package/grammars/mermaid.json +1382 -0
- package/grammars/mojo.json +4153 -0
- package/grammars/narrat.json +227 -0
- package/grammars/nextflow.json +298 -0
- package/grammars/nginx.json +2121 -0
- package/grammars/nim.json +1522 -0
- package/grammars/nix.json +1200 -0
- package/grammars/nushell.json +1047 -0
- package/grammars/objective-c.json +3750 -0
- package/grammars/objective-cpp.json +7242 -0
- package/grammars/ocaml.json +2967 -0
- package/grammars/pascal.json +154 -0
- package/grammars/perl.json +2971 -0
- package/grammars/php.json +4024 -0
- package/grammars/plsql.json +241 -0
- package/grammars/postcss.json +377 -0
- package/grammars/powerquery.json +349 -0
- package/grammars/powershell.json +1024 -0
- package/grammars/prisma.json +443 -0
- package/grammars/prolog.json +298 -0
- package/grammars/proto.json +507 -0
- package/grammars/pug.json +1033 -0
- package/grammars/puppet.json +777 -0
- package/grammars/purescript.json +871 -0
- package/grammars/python.json +4208 -0
- package/grammars/r.json +637 -0
- package/grammars/raku.json +310 -0
- package/grammars/razor.json +1813 -0
- package/grammars/reg.json +136 -0
- package/grammars/rel.json +200 -0
- package/grammars/riscv.json +298 -0
- package/grammars/rst.json +734 -0
- package/grammars/ruby.json +2769 -0
- package/grammars/rust.json +1171 -0
- package/grammars/sas.json +302 -0
- package/grammars/sass.json +618 -0
- package/grammars/scala.json +1313 -0
- package/grammars/scheme.json +384 -0
- package/grammars/scss.json +1874 -0
- package/grammars/shaderlab.json +199 -0
- package/grammars/shellscript.json +2025 -0
- package/grammars/shellsession.json +33 -0
- package/grammars/smalltalk.json +235 -0
- package/grammars/solidity.json +1210 -0
- package/grammars/sparql.json +45 -0
- package/grammars/splunk.json +91 -0
- package/grammars/sql.json +631 -0
- package/grammars/ssh-config.json +88 -0
- package/grammars/stata.json +3050 -0
- package/grammars/stylus.json +1208 -0
- package/grammars/svelte.json +1171 -0
- package/grammars/swift.json +4203 -0
- package/grammars/system-verilog.json +1063 -0
- package/grammars/tasl.json +292 -0
- package/grammars/tcl.json +291 -0
- package/grammars/tex.json +281 -0
- package/grammars/toml.json +431 -0
- package/grammars/tsx.json +5984 -0
- package/grammars/turtle.json +261 -0
- package/grammars/twig.json +1394 -0
- package/grammars/typescript.json +5735 -0
- package/grammars/v.json +1001 -0
- package/grammars/vb.json +232 -0
- package/grammars/verilog.json +305 -0
- package/grammars/vhdl.json +1484 -0
- package/grammars/viml.json +445 -0
- package/grammars/vue-html.json +559 -0
- package/grammars/vue.json +1237 -0
- package/grammars/vyper.json +5415 -0
- package/grammars/wasm.json +831 -0
- package/grammars/wenyan.json +129 -0
- package/grammars/wgsl.json +391 -0
- package/grammars/wolfram.json +2370 -0
- package/grammars/xml.json +382 -0
- package/grammars/xsl.json +89 -0
- package/grammars/yaml.json +616 -0
- package/grammars/zenscript.json +257 -0
- package/grammars/zig.json +312 -0
- package/index.d.ts +18 -0
- package/index.js +2165 -0
- package/package.json +46 -0
package/grammars/vb.json
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "ASP vb.NET",
|
|
3
|
+
"name": "vb",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"match": "\\n",
|
|
7
|
+
"name": "meta.ending-space"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"include": "#round-brackets"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"begin": "^(?=\\t)",
|
|
14
|
+
"end": "(?=[^\\t])",
|
|
15
|
+
"name": "meta.leading-space",
|
|
16
|
+
"patterns": [
|
|
17
|
+
{
|
|
18
|
+
"captures": {
|
|
19
|
+
"1": {
|
|
20
|
+
"name": "meta.odd-tab.tabs"
|
|
21
|
+
},
|
|
22
|
+
"2": {
|
|
23
|
+
"name": "meta.even-tab.tabs"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"match": "(\\t)(\\t)?"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"begin": "^(?= )",
|
|
32
|
+
"end": "(?=[^ ])",
|
|
33
|
+
"name": "meta.leading-space",
|
|
34
|
+
"patterns": [
|
|
35
|
+
{
|
|
36
|
+
"captures": {
|
|
37
|
+
"1": {
|
|
38
|
+
"name": "meta.odd-tab.spaces"
|
|
39
|
+
},
|
|
40
|
+
"2": {
|
|
41
|
+
"name": "meta.even-tab.spaces"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"match": "( )( )?"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"captures": {
|
|
50
|
+
"1": {
|
|
51
|
+
"name": "storage.type.function.asp"
|
|
52
|
+
},
|
|
53
|
+
"2": {
|
|
54
|
+
"name": "entity.name.function.asp"
|
|
55
|
+
},
|
|
56
|
+
"3": {
|
|
57
|
+
"name": "punctuation.definition.parameters.asp"
|
|
58
|
+
},
|
|
59
|
+
"4": {
|
|
60
|
+
"name": "variable.parameter.function.asp"
|
|
61
|
+
},
|
|
62
|
+
"5": {
|
|
63
|
+
"name": "punctuation.definition.parameters.asp"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"match": "^\\s*((?i:function|sub))\\s*([a-zA-Z_]\\w*)\\s*(\\()([^)]*)(\\)).*\\n?",
|
|
67
|
+
"name": "meta.function.asp"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"begin": "(^[ \\t]+)?(?=')",
|
|
71
|
+
"beginCaptures": {
|
|
72
|
+
"1": {
|
|
73
|
+
"name": "punctuation.whitespace.comment.leading.asp"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"end": "(?!\\G)",
|
|
77
|
+
"patterns": [
|
|
78
|
+
{
|
|
79
|
+
"begin": "'",
|
|
80
|
+
"beginCaptures": {
|
|
81
|
+
"0": {
|
|
82
|
+
"name": "punctuation.definition.comment.asp"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"end": "\\n",
|
|
86
|
+
"name": "comment.line.apostrophe.asp"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"match": "(?i:\\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\\b)",
|
|
92
|
+
"name": "keyword.control.asp"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"match": "(?i:\\b(Mod|And|Not|Or|Xor|as)\\b)",
|
|
96
|
+
"name": "keyword.operator.asp"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"captures": {
|
|
100
|
+
"1": {
|
|
101
|
+
"name": "storage.type.asp"
|
|
102
|
+
},
|
|
103
|
+
"2": {
|
|
104
|
+
"name": "variable.other.bfeac.asp"
|
|
105
|
+
},
|
|
106
|
+
"3": {
|
|
107
|
+
"name": "meta.separator.comma.asp"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"match": "(?i:(dim)\\s*(?:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)\\s*(,?)))",
|
|
111
|
+
"name": "variable.other.dim.asp"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"match": "(?i:\\s*\\b(Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End Sub|End Function|End Class|End Property|Public Property|Private Property|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\\b\\s*)",
|
|
115
|
+
"name": "storage.type.asp"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"match": "(?i:\\b(Private|Public|Default)\\b)",
|
|
119
|
+
"name": "storage.modifier.asp"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"match": "(?i:\\s*\\b(Empty|False|Nothing|Null|True)\\b)",
|
|
123
|
+
"name": "constant.language.asp"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"begin": "\"",
|
|
127
|
+
"beginCaptures": {
|
|
128
|
+
"0": {
|
|
129
|
+
"name": "punctuation.definition.string.begin.asp"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"end": "\"",
|
|
133
|
+
"endCaptures": {
|
|
134
|
+
"0": {
|
|
135
|
+
"name": "punctuation.definition.string.end.asp"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"name": "string.quoted.double.asp",
|
|
139
|
+
"patterns": [
|
|
140
|
+
{
|
|
141
|
+
"match": "\"\"",
|
|
142
|
+
"name": "constant.character.escape.apostrophe.asp"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"captures": {
|
|
148
|
+
"1": {
|
|
149
|
+
"name": "punctuation.definition.variable.asp"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"match": "(\\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b\\s*",
|
|
153
|
+
"name": "variable.other.asp"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"match": "(?i:\\b(Application|ObjectContext|Request|Response|Server|Session)\\b)",
|
|
157
|
+
"name": "support.class.asp"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"match": "(?i:\\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\\b)",
|
|
161
|
+
"name": "support.class.collection.asp"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"match": "(?i:\\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\\b)",
|
|
165
|
+
"name": "support.constant.asp"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"match": "(?i:\\b(Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\\b)",
|
|
169
|
+
"name": "support.function.asp"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"match": "(?i:\\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\\b)",
|
|
173
|
+
"name": "support.function.event.asp"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"match": "(?i:(?<=as )(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b))",
|
|
177
|
+
"name": "support.type.vb.asp"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"match": "(?i:\\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\\b)",
|
|
181
|
+
"name": "support.function.vb.asp"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"match": "-?\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b",
|
|
185
|
+
"name": "constant.numeric.asp"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"match": "(?i:\\b(vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\\b)",
|
|
189
|
+
"name": "support.type.vb.asp"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"captures": {
|
|
193
|
+
"1": {
|
|
194
|
+
"name": "entity.name.function.asp"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"match": "(?i:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)(?=\\(\\)?))",
|
|
198
|
+
"name": "support.function.asp"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"match": "(?i:((?<=(\\+|=|-|\\&|\\\\|/|<|>|\\(|,))\\s*\\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\\b(?!(\\(|\\.))|\\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\\b(?=\\s*(\\+|=|-|\\&|\\\\|/|<|>|\\(|\\)))))",
|
|
202
|
+
"name": "variable.other.asp"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"match": "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^=|\\b(in|instanceof|new|delete|typeof|void)\\b",
|
|
206
|
+
"name": "keyword.operator.js"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"repository": {
|
|
210
|
+
"round-brackets": {
|
|
211
|
+
"begin": "\\(",
|
|
212
|
+
"beginCaptures": {
|
|
213
|
+
"0": {
|
|
214
|
+
"name": "punctuation.section.round-brackets.begin.asp"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"end": "\\)",
|
|
218
|
+
"endCaptures": {
|
|
219
|
+
"0": {
|
|
220
|
+
"name": "punctuation.section.round-brackets.end.asp"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"name": "meta.round-brackets",
|
|
224
|
+
"patterns": [
|
|
225
|
+
{
|
|
226
|
+
"include": "source.asp.vb.net"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"scopeName": "source.asp.vb.net"
|
|
232
|
+
}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Verilog",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"v",
|
|
5
|
+
"vh"
|
|
6
|
+
],
|
|
7
|
+
"name": "verilog",
|
|
8
|
+
"patterns": [
|
|
9
|
+
{
|
|
10
|
+
"include": "#comments"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"include": "#module_pattern"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"include": "#keywords"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"include": "#constants"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"include": "#strings"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"include": "#operators"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"repository": {
|
|
29
|
+
"comments": {
|
|
30
|
+
"patterns": [
|
|
31
|
+
{
|
|
32
|
+
"begin": "(^[ \\t]+)?(?=//)",
|
|
33
|
+
"beginCaptures": {
|
|
34
|
+
"1": {
|
|
35
|
+
"name": "punctuation.whitespace.comment.leading.verilog"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"end": "(?!\\G)",
|
|
39
|
+
"patterns": [
|
|
40
|
+
{
|
|
41
|
+
"begin": "//",
|
|
42
|
+
"beginCaptures": {
|
|
43
|
+
"0": {
|
|
44
|
+
"name": "punctuation.definition.comment.verilog"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"end": "\\n",
|
|
48
|
+
"name": "comment.line.double-slash.verilog"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"begin": "/\\*",
|
|
54
|
+
"end": "\\*/",
|
|
55
|
+
"name": "comment.block.c-style.verilog"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"constants": {
|
|
60
|
+
"patterns": [
|
|
61
|
+
{
|
|
62
|
+
"match": "`(?!(celldefine|endcelldefine|default_nettype|define|undef|ifdef|ifndef|else|endif|include|resetall|timescale|unconnected_drive|nounconnected_drive))[a-z_A-Z][a-zA-Z0-9_$]*",
|
|
63
|
+
"name": "variable.other.constant.verilog"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"match": "[0-9]*'[bBoOdDhH][a-fA-F0-9_xXzZ]+\\b",
|
|
67
|
+
"name": "constant.numeric.sized_integer.verilog"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"captures": {
|
|
71
|
+
"1": {
|
|
72
|
+
"name": "constant.numeric.integer.verilog"
|
|
73
|
+
},
|
|
74
|
+
"2": {
|
|
75
|
+
"name": "punctuation.separator.range.verilog"
|
|
76
|
+
},
|
|
77
|
+
"3": {
|
|
78
|
+
"name": "constant.numeric.integer.verilog"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"match": "\\b(\\d+)(:)(\\d+)\\b",
|
|
82
|
+
"name": "meta.block.numeric.range.verilog"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"match": "\\b\\d[\\d_]*(?i:e\\d+)?\\b",
|
|
86
|
+
"name": "constant.numeric.integer.verilog"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"match": "\\b\\d+\\.\\d+(?i:e\\d+)?\\b",
|
|
90
|
+
"name": "constant.numeric.real.verilog"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"match": "#\\d+",
|
|
94
|
+
"name": "constant.numeric.delay.verilog"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"match": "\\b[01xXzZ]+\\b",
|
|
98
|
+
"name": "constant.numeric.logic.verilog"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"instantiation_patterns": {
|
|
103
|
+
"patterns": [
|
|
104
|
+
{
|
|
105
|
+
"include": "#keywords"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"begin": "^\\s*([a-zA-Z][a-zA-Z0-9_]*)\\s+([a-zA-Z][a-zA-Z0-9_]*)(?<!begin|if)\\s*(?=\\(|$)",
|
|
109
|
+
"beginCaptures": {
|
|
110
|
+
"1": {
|
|
111
|
+
"name": "entity.name.tag.module.reference.verilog"
|
|
112
|
+
},
|
|
113
|
+
"2": {
|
|
114
|
+
"name": "entity.name.tag.module.identifier.verilog"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"end": ";",
|
|
118
|
+
"endCaptures": {
|
|
119
|
+
"0": {
|
|
120
|
+
"name": "punctuation.terminator.expression.verilog"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"name": "meta.block.instantiation.parameterless.verilog",
|
|
124
|
+
"patterns": [
|
|
125
|
+
{
|
|
126
|
+
"include": "#comments"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"include": "#constants"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"include": "#strings"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"begin": "^\\s*([a-zA-Z][a-zA-Z0-9_]*)\\s*(#)(?=\\s*\\()",
|
|
138
|
+
"beginCaptures": {
|
|
139
|
+
"1": {
|
|
140
|
+
"name": "entity.name.tag.module.reference.verilog"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"end": ";",
|
|
144
|
+
"endCaptures": {
|
|
145
|
+
"0": {
|
|
146
|
+
"name": "punctuation.terminator.expression.verilog"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"name": "meta.block.instantiation.with.parameters.verilog",
|
|
150
|
+
"patterns": [
|
|
151
|
+
{
|
|
152
|
+
"include": "#parenthetical_list"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"match": "[a-zA-Z][a-zA-Z0-9_]*",
|
|
156
|
+
"name": "entity.name.tag.module.identifier.verilog"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"keywords": {
|
|
163
|
+
"patterns": [
|
|
164
|
+
{
|
|
165
|
+
"match": "\\b(always|and|assign|attribute|begin|buf|bufif0|bufif1|case[xz]?|cmos|deassign|default|defparam|disable|edge|else|end(attribute|case|function|generate|module|primitive|specify|table|task)?|event|for|force|forever|fork|function|generate|genvar|highz(01)|if(none)?|initial|inout|input|integer|join|localparam|medium|module|large|macromodule|nand|negedge|nmos|nor|not|notif(01)|or|output|parameter|pmos|posedge|primitive|pull0|pull1|pulldown|pullup|rcmos|real|realtime|reg|release|repeat|rnmos|rpmos|rtran|rtranif(01)|scalared|signed|small|specify|specparam|strength|strong0|strong1|supply0|supply1|table|task|time|tran|tranif(01)|tri(01)?|tri(and|or|reg)|unsigned|vectored|wait|wand|weak(01)|while|wire|wor|xnor|xor)\\b",
|
|
166
|
+
"name": "keyword.other.verilog"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"match": "^\\s*`((cell)?define|default_(decay_time|nettype|trireg_strength)|delay_mode_(path|unit|zero)|ifdef|ifndef|include|end(if|celldefine)|else|(no)?unconnected_drive|resetall|timescale|undef)\\b",
|
|
170
|
+
"name": "keyword.other.compiler.directive.verilog"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"match": "\\$(f(open|close)|readmem(b|h)|timeformat|printtimescale|stop|finish|(s|real)?time|realtobits|bitstoreal|rtoi|itor|(f)?(display|write(h|b)))\\b",
|
|
174
|
+
"name": "support.function.system.console.tasks.verilog"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"match": "\\$(random|dist_(chi_square|erlang|exponential|normal|poisson|t|uniform))\\b",
|
|
178
|
+
"name": "support.function.system.random_number.tasks.verilog"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"match": "\\$((a)?sync\\$((n)?and|(n)or)\\$(array|plane))\\b",
|
|
182
|
+
"name": "support.function.system.pld_modeling.tasks.verilog"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"match": "\\$(q_(initialize|add|remove|full|exam))\\b",
|
|
186
|
+
"name": "support.function.system.stochastic.tasks.verilog"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"match": "\\$(hold|nochange|period|recovery|setup(hold)?|skew|width)\\b",
|
|
190
|
+
"name": "support.function.system.timing.tasks.verilog"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"match": "\\$(dump(file|vars|off|on|all|limit|flush))\\b",
|
|
194
|
+
"name": "support.function.system.vcd.tasks.verilog"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"match": "\\$(countdrivers|list|input|scope|showscopes|(no)?(key|log)|reset(_count|_value)?|(inc)?save|restart|showvars|getpattern|sreadmem(b|h)|scale)",
|
|
198
|
+
"name": "support.function.non-standard.tasks.verilog"
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
"module_pattern": {
|
|
203
|
+
"patterns": [
|
|
204
|
+
{
|
|
205
|
+
"begin": "\\b(module)\\s+([a-zA-Z][a-zA-Z0-9_]*)",
|
|
206
|
+
"beginCaptures": {
|
|
207
|
+
"1": {
|
|
208
|
+
"name": "storage.type.module.verilog"
|
|
209
|
+
},
|
|
210
|
+
"2": {
|
|
211
|
+
"name": "entity.name.type.module.verilog"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"end": "\\bendmodule\\b",
|
|
215
|
+
"endCaptures": {
|
|
216
|
+
"0": {
|
|
217
|
+
"name": "storage.type.module.verilog"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"name": "meta.block.module.verilog",
|
|
221
|
+
"patterns": [
|
|
222
|
+
{
|
|
223
|
+
"include": "#comments"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"include": "#keywords"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"include": "#constants"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"include": "#strings"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"include": "#instantiation_patterns"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"include": "#operators"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"operators": {
|
|
245
|
+
"patterns": [
|
|
246
|
+
{
|
|
247
|
+
"match": "\\+|-|\\*|/|%|(<|>)=?|(!|=)?==?|!|&&?|\\|\\|?|\\^?~|~\\^?",
|
|
248
|
+
"name": "keyword.operator.verilog"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
"parenthetical_list": {
|
|
253
|
+
"patterns": [
|
|
254
|
+
{
|
|
255
|
+
"begin": "\\(",
|
|
256
|
+
"beginCaptures": {
|
|
257
|
+
"0": {
|
|
258
|
+
"name": "punctuation.section.list.verilog"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"end": "\\)",
|
|
262
|
+
"endCaptures": {
|
|
263
|
+
"0": {
|
|
264
|
+
"name": "punctuation.section.list.verilog"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"name": "meta.block.parenthetical_list.verilog",
|
|
268
|
+
"patterns": [
|
|
269
|
+
{
|
|
270
|
+
"include": "#parenthetical_list"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"include": "#comments"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"include": "#keywords"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"include": "#constants"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"include": "#strings"
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
"strings": {
|
|
289
|
+
"patterns": [
|
|
290
|
+
{
|
|
291
|
+
"begin": "\"",
|
|
292
|
+
"end": "\"",
|
|
293
|
+
"name": "string.quoted.double.verilog",
|
|
294
|
+
"patterns": [
|
|
295
|
+
{
|
|
296
|
+
"match": "\\\\.",
|
|
297
|
+
"name": "constant.character.escape.verilog"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"scopeName": "source.verilog"
|
|
305
|
+
}
|