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
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Narrat Language",
|
|
3
|
+
"name": "narrat",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#comments"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"include": "#expression"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"commands": {
|
|
14
|
+
"patterns": [
|
|
15
|
+
{
|
|
16
|
+
"match": "\\b(set|var)\\b",
|
|
17
|
+
"name": "keyword.commands.variables.narrat"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"match": "\\b(talk|think)\\b",
|
|
21
|
+
"name": "keyword.commands.text.narrat"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"match": "\\b(jump|run|wait|return|save|save_prompt)",
|
|
25
|
+
"name": "keyword.commands.flow.narrat"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"match": "\\b(log|clear_dialog)\\b",
|
|
29
|
+
"name": "keyword.commands.helpers.narrat"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"match": "\\b(set_screen|empty_layer|set_button)",
|
|
33
|
+
"name": "keyword.commands.screens.narrat"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"match": "\\b(play|pause|stop)\\b",
|
|
37
|
+
"name": "keyword.commands.audio.narrat"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"match": "\\b(notify|enable_notifications|disable_notifications)\\b",
|
|
41
|
+
"name": "keyword.commands.notifications.narrat"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"match": "\\b(set_stat|get_stat_value|add_stat)",
|
|
45
|
+
"name": "keyword.commands.stats.narrat"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"match": "\\b(neg|abs|random|random_float|random_from_args|min|max|clamp|floor|round|ceil|sqrt|^)\\b",
|
|
49
|
+
"name": "keyword.commands.math.narrat"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"match": "\\b(concat|join)\\b",
|
|
53
|
+
"name": "keyword.commands.string.narrat"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"match": "\\b(text_field)\\b",
|
|
57
|
+
"name": "keyword.commands.text_field.narrat"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"match": "\\b(add_level|set_level|add_xp|roll|get_level|get_xp)\\b",
|
|
61
|
+
"name": "keyword.commands.skills.narrat"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"match": "\\b(add_item|remove_item|enable_interaction|disable_interaction|has_item?|item_amount?)",
|
|
65
|
+
"name": "keyword.commands.inventory.narrat"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"match": "\\b(start_quest|start_objective|complete_objective|complete_quest|quest_started?|objective_started?|quest_completed?|objective_completed?)",
|
|
69
|
+
"name": "keyword.commands.quests.narrat"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"comments": {
|
|
74
|
+
"patterns": [
|
|
75
|
+
{
|
|
76
|
+
"match": "\\/\\/.*$",
|
|
77
|
+
"name": "comment.line.narrat"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"expression": {
|
|
82
|
+
"patterns": [
|
|
83
|
+
{
|
|
84
|
+
"include": "#keywords"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"include": "#commands"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"include": "#operators"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"include": "#primitives"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"include": "#strings"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"include": "#paren-expression"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"interpolation": {
|
|
104
|
+
"patterns": [
|
|
105
|
+
{
|
|
106
|
+
"match": "(\\w|\\.)+",
|
|
107
|
+
"name": "variable.interpolation.narrat"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"keywords": {
|
|
112
|
+
"patterns": [
|
|
113
|
+
{
|
|
114
|
+
"match": "\\b(if|else|choice)\\b",
|
|
115
|
+
"name": "keyword.control.narrat"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"match": "\\$[\\w|\\.]+\\b",
|
|
119
|
+
"name": "variable.value.narrat"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"match": "(?x) # Ignore comments\n ^\\w+ # Find label name\n (?=(\\s|\\w)*:) # Positive lookahead for ':'\n",
|
|
123
|
+
"name": "entity.name.function.narrat"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"match": "(?x) # Ignore comments\n ^\\w+ # Find label name\n (?!(\\s|\\w)*:) # Negative lookahead for ':'\n",
|
|
127
|
+
"name": "invalid.label.narrat"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"match": "(?<=\\w)[^^](\\b\\w+\\b)(?=(\\s|\\w)*:)",
|
|
131
|
+
"name": "entity.other.attribute-name"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"operators": {
|
|
136
|
+
"patterns": [
|
|
137
|
+
{
|
|
138
|
+
"match": "(&&|\\|\\||!=|==|>=|<=|<|>|!|\\?)\\s",
|
|
139
|
+
"name": "keyword.operator.logic.narrat"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"match": "(\\+|-|\\*|\\/)\\s",
|
|
143
|
+
"name": "keyword.operator.arithmetic.narrat"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"paren-expression": {
|
|
148
|
+
"begin": "\\(",
|
|
149
|
+
"beginCaptures": {
|
|
150
|
+
"0": {
|
|
151
|
+
"name": "punctuation.paren.open"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"end": "\\)",
|
|
155
|
+
"endCaptures": {
|
|
156
|
+
"0": {
|
|
157
|
+
"name": "punctuation.paren.close"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"name": "expression.group",
|
|
161
|
+
"patterns": [
|
|
162
|
+
{
|
|
163
|
+
"include": "#expression"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"primitives": {
|
|
168
|
+
"patterns": [
|
|
169
|
+
{
|
|
170
|
+
"match": "\\b\\d+\\b",
|
|
171
|
+
"name": "constant.numeric.narrat"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"match": "\\btrue\\b",
|
|
175
|
+
"name": "constant.language.true.narrat"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"match": "\\bfalse\\b",
|
|
179
|
+
"name": "constant.language.false.narrat"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"match": "\\bnull\\b",
|
|
183
|
+
"name": "constant.language.null.narrat"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"match": "\\bundefined\\b",
|
|
187
|
+
"name": "constant.language.undefined.narrat"
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"strings": {
|
|
192
|
+
"begin": "\"",
|
|
193
|
+
"end": "\"",
|
|
194
|
+
"name": "string.quoted.double.narrat",
|
|
195
|
+
"patterns": [
|
|
196
|
+
{
|
|
197
|
+
"match": "\\\\.",
|
|
198
|
+
"name": "constant.character.escape.narrat"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"begin": "%{",
|
|
202
|
+
"beginCaptures": {
|
|
203
|
+
"0": {
|
|
204
|
+
"name": "punctuation.template.open"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"end": "}",
|
|
208
|
+
"endCaptures": {
|
|
209
|
+
"0": {
|
|
210
|
+
"name": "punctuation.template.close.narrat"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"name": "expression.template",
|
|
214
|
+
"patterns": [
|
|
215
|
+
{
|
|
216
|
+
"include": "#expression"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"include": "#interpolation"
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"scopeName": "source.narrat"
|
|
227
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Nextflow",
|
|
3
|
+
"name": "nextflow",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#nfl-rules"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"implicit-variables": {
|
|
11
|
+
"patterns": [
|
|
12
|
+
{
|
|
13
|
+
"match": "(?<=[^\\.\\w]|^)(params|nextflow|workflow|launchDir|moduleDir|projectDir|workDir)\\b",
|
|
14
|
+
"name": "variable.language.nextflow"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"include-statement": {
|
|
19
|
+
"patterns": [
|
|
20
|
+
{
|
|
21
|
+
"match": "^\\b(include)\\b",
|
|
22
|
+
"name": "keyword.nextflow"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"match": "\\b(from)\\b",
|
|
26
|
+
"name": "keyword.nextflow"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"nfl-rules": {
|
|
31
|
+
"patterns": [
|
|
32
|
+
{
|
|
33
|
+
"include": "#process-def"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"include": "#workflow-def"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"include": "#code-block"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"include": "#include-statement"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"include": "#implicit-variables"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"begin": "(\\w*\\()",
|
|
49
|
+
"beginCaptures": {
|
|
50
|
+
"1": {
|
|
51
|
+
"patterns": [
|
|
52
|
+
{
|
|
53
|
+
"include": "source.nextflow-groovy"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"comment": "method call and parens",
|
|
59
|
+
"end": "\\)",
|
|
60
|
+
"patterns": [
|
|
61
|
+
{
|
|
62
|
+
"include": "#nfl-rules"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"begin": "{",
|
|
68
|
+
"comment": "braces",
|
|
69
|
+
"end": "}",
|
|
70
|
+
"patterns": [
|
|
71
|
+
{
|
|
72
|
+
"include": "#nfl-rules"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"include": "source.nextflow-groovy"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"process-body": {
|
|
82
|
+
"patterns": [
|
|
83
|
+
{
|
|
84
|
+
"match": "(?:accelerator|afterScript|beforeScript|cache|cpus|conda|container|containerOptions|clusterOptions|debug|disk|echo|errorStrategy|executor|ext|label|machineType|maxErrors|maxForks|maxRetries|memory|module|penv|pod|publishDir|queue|resourceLabels|scratch|stageInMode|stageOutMode|storeDir|tag|time)\\b",
|
|
85
|
+
"name": "entity.name.function.nextflow"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"match": "(?:input|output|when|script|shell|exec):",
|
|
89
|
+
"name": "constant.block.nextflow"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"match": "\\b(tuple|set|path|file|val|stdout)(\\(|\\s)",
|
|
93
|
+
"name": "entity.name.function.nextflow"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"include": "#implicit-variables"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"begin": "(\\w*\\()",
|
|
100
|
+
"beginCaptures": {
|
|
101
|
+
"1": {
|
|
102
|
+
"patterns": [
|
|
103
|
+
{
|
|
104
|
+
"include": "source.nextflow-groovy"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"comment": "method call and parens",
|
|
110
|
+
"end": "\\)",
|
|
111
|
+
"patterns": [
|
|
112
|
+
{
|
|
113
|
+
"include": "#process-body"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"begin": "{",
|
|
119
|
+
"comment": "braces",
|
|
120
|
+
"end": "}",
|
|
121
|
+
"patterns": [
|
|
122
|
+
{
|
|
123
|
+
"include": "#process-body"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"include": "source.nextflow-groovy#comments"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"include": "source.nextflow-groovy#support-functions"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"include": "source.nextflow-groovy#keyword"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"include": "source.nextflow-groovy#values"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"include": "source.nextflow-groovy#anonymous-classes-and-new"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"include": "source.nextflow-groovy#types"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"include": "source.nextflow-groovy#parens"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"include": "source.nextflow-groovy#closures"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"include": "source.nextflow-groovy#braces"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"process-def": {
|
|
157
|
+
"begin": "^\\s*(process)\\s+(\\w+|\"[^\"]+\"|'[^']+')\\s*{",
|
|
158
|
+
"beginCaptures": {
|
|
159
|
+
"1": {
|
|
160
|
+
"name": "keyword.nextflow"
|
|
161
|
+
},
|
|
162
|
+
"2": {
|
|
163
|
+
"name": "function.nextflow"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"end": "}",
|
|
167
|
+
"name": "process.nextflow",
|
|
168
|
+
"patterns": [
|
|
169
|
+
{
|
|
170
|
+
"include": "#process-body"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"workflow-body": {
|
|
175
|
+
"patterns": [
|
|
176
|
+
{
|
|
177
|
+
"include": "#implicit-variables"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"match": "(?:take|main|emit):",
|
|
181
|
+
"name": "constant.block.nextflow"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"match": "(?<=[\\s\\.])(branch|buffer|close|collate|collect|collectFile|combine|concat|count|countBy|cross|distinct|dump|filter|first|flatMap|flatten|groupTuple|ifEmpty|join|last|map|max|merge|min|mix|multiMap|randomSample|reduce|set|splitCsv|splitFasta|splitFastq|splitText|sum|take|tap|toInteger|toList|toSortedList|transpose|unique|until|view)(?=[{\\(\\s])",
|
|
185
|
+
"name": "entity.name.function.nextflow"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"captures": {
|
|
189
|
+
"1": {
|
|
190
|
+
"name": "keyword.nextflow"
|
|
191
|
+
},
|
|
192
|
+
"2": {
|
|
193
|
+
"name": "entity.name.function.nextflow"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"comment": "Channel factory single line",
|
|
197
|
+
"match": "\\b((?:C|c)hannel\\.)((fromList|fromPath|fromFilePairs|fromSRA|from|of|empty|value|watchPath)\\W)?"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"begin": "\\b((?:C|c)hannel)\\s*$",
|
|
201
|
+
"beginCaptures": {
|
|
202
|
+
"1": {
|
|
203
|
+
"name": "keyword.nextflow"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"comment": "Channel factory multi-line",
|
|
207
|
+
"end": "(^\\s*)(?:(\\.)(fromList|fromPath|fromFilePairs|fromSRA|from|of|empty|value|watchPath)\\W)?",
|
|
208
|
+
"endCaptures": {
|
|
209
|
+
"1": {
|
|
210
|
+
"name": "keyword.nextflow"
|
|
211
|
+
},
|
|
212
|
+
"2": {
|
|
213
|
+
"name": "keyword.nextflow"
|
|
214
|
+
},
|
|
215
|
+
"3": {
|
|
216
|
+
"name": "entity.name.function.nextflow"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"begin": "(\\w*\\()",
|
|
222
|
+
"beginCaptures": {
|
|
223
|
+
"1": {
|
|
224
|
+
"patterns": [
|
|
225
|
+
{
|
|
226
|
+
"include": "source.nextflow-groovy"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"comment": "method call and parens",
|
|
232
|
+
"end": "\\)",
|
|
233
|
+
"patterns": [
|
|
234
|
+
{
|
|
235
|
+
"include": "#workflow-body"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"begin": "{",
|
|
241
|
+
"comment": "braces",
|
|
242
|
+
"end": "}",
|
|
243
|
+
"patterns": [
|
|
244
|
+
{
|
|
245
|
+
"include": "#workflow-body"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"include": "source.nextflow-groovy#comments"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"include": "source.nextflow-groovy#support-functions"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"include": "source.nextflow-groovy#keyword"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"include": "source.nextflow-groovy#values"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"include": "source.nextflow-groovy#anonymous-classes-and-new"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"include": "source.nextflow-groovy#types"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"include": "source.nextflow-groovy#parens"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"include": "source.nextflow-groovy#closures"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"include": "source.nextflow-groovy#braces"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
"workflow-def": {
|
|
279
|
+
"begin": "^\\s*(workflow)(?:\\s+(\\w+|\"[^\"]+\"|'[^']+'))?\\s*{",
|
|
280
|
+
"beginCaptures": {
|
|
281
|
+
"1": {
|
|
282
|
+
"name": "keyword.nextflow"
|
|
283
|
+
},
|
|
284
|
+
"2": {
|
|
285
|
+
"name": "constant.nextflow"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"end": "}",
|
|
289
|
+
"name": "workflow.nextflow",
|
|
290
|
+
"patterns": [
|
|
291
|
+
{
|
|
292
|
+
"include": "#workflow-body"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"scopeName": "source.nextflow"
|
|
298
|
+
}
|