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,1406 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "AppleScript",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"applescript",
|
|
5
|
+
"scpt",
|
|
6
|
+
"script editor"
|
|
7
|
+
],
|
|
8
|
+
"firstLineMatch": "^#!.*(osascript)",
|
|
9
|
+
"name": "applescript",
|
|
10
|
+
"patterns": [
|
|
11
|
+
{
|
|
12
|
+
"include": "#blocks"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"include": "#inline"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"attributes.considering-ignoring": {
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"match": ",",
|
|
23
|
+
"name": "punctuation.separator.array.attributes.applescript"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"match": "\\b(and)\\b",
|
|
27
|
+
"name": "keyword.control.attributes.and.applescript"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"match": "\\b(?i:case|diacriticals|hyphens|numeric\\s+strings|punctuation|white\\s+space)\\b",
|
|
31
|
+
"name": "constant.other.attributes.text.applescript"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"match": "\\b(?i:application\\s+responses)\\b",
|
|
35
|
+
"name": "constant.other.attributes.application.applescript"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"blocks": {
|
|
40
|
+
"patterns": [
|
|
41
|
+
{
|
|
42
|
+
"begin": "^\\s*(script)\\s+(\\w+)",
|
|
43
|
+
"beginCaptures": {
|
|
44
|
+
"1": {
|
|
45
|
+
"name": "keyword.control.script.applescript"
|
|
46
|
+
},
|
|
47
|
+
"2": {
|
|
48
|
+
"name": "entity.name.type.script-object.applescript"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"end": "^\\s*(end(?:\\s+script)?)(?=\\s*(--.*?)?$)",
|
|
52
|
+
"endCaptures": {
|
|
53
|
+
"1": {
|
|
54
|
+
"name": "keyword.control.script.applescript"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"name": "meta.block.script.applescript",
|
|
58
|
+
"patterns": [
|
|
59
|
+
{
|
|
60
|
+
"include": "$self"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"begin": "^(?x)\n\t\t\t\t\t\t\\s*(to|on)\\s+ \t\t\t\t\t# \"on\" or \"to\"\n\t\t\t\t\t\t(\\w+)\t\t\t\t\t\t\t# function name\n\t\t\t\t\t\t(\\()\t\t\t\t\t\t\t# opening paren\n\t\t\t\t\t\t\t((?:[\\s,:\\{\\}]*(?:\\w+)?)*)\t# parameters\n\t\t\t\t\t\t(\\))\t\t\t\t\t\t\t# closing paren\n\t\t\t\t\t",
|
|
66
|
+
"beginCaptures": {
|
|
67
|
+
"1": {
|
|
68
|
+
"name": "keyword.control.function.applescript"
|
|
69
|
+
},
|
|
70
|
+
"2": {
|
|
71
|
+
"name": "entity.name.function.handler.applescript"
|
|
72
|
+
},
|
|
73
|
+
"3": {
|
|
74
|
+
"name": "punctuation.definition.parameters.begin.applescript"
|
|
75
|
+
},
|
|
76
|
+
"4": {
|
|
77
|
+
"name": "variable.parameter.handler.applescript"
|
|
78
|
+
},
|
|
79
|
+
"5": {
|
|
80
|
+
"name": "punctuation.definition.parameters.end.applescript"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"comment": "\n\t\t\t\t\t\tThis is not a very well-designed rule. For now,\n\t\t\t\t\t\twe can leave it like this though, as it sorta works.\n\t\t\t\t\t",
|
|
84
|
+
"end": "^\\s*(end)(?:\\s+(\\2))?(?=\\s*(--.*?)?$)",
|
|
85
|
+
"endCaptures": {
|
|
86
|
+
"1": {
|
|
87
|
+
"name": "keyword.control.function.applescript"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"name": "meta.function.positional.applescript",
|
|
91
|
+
"patterns": [
|
|
92
|
+
{
|
|
93
|
+
"include": "$self"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"begin": "^(?x)\n\t\t\t\t\t\t\\s*(to|on)\\s+ \t\t\t\t\t# \"on\" or \"to\"\n\t\t\t\t\t\t(\\w+)\t\t\t\t\t\t\t# function name\n\t\t\t\t\t\t(?:\\s+\n\t\t\t\t\t\t\t(of|in)\\s+\t\t\t\t\t# \"of\" or \"in\"\n\t\t\t\t\t\t\t(\\w+)\t\t\t\t\t\t# direct parameter\n\t\t\t\t\t\t)?\n\t\t\t\t\t\t(?=\\s+(above|against|apart\\s+from|around|aside\\s+from|at|below|beneath|beside|between|by|for|from|instead\\s+of|into|on|onto|out\\s+of|over|thru|under)\\b)\n\t\t\t\t\t",
|
|
99
|
+
"beginCaptures": {
|
|
100
|
+
"1": {
|
|
101
|
+
"name": "keyword.control.function.applescript"
|
|
102
|
+
},
|
|
103
|
+
"2": {
|
|
104
|
+
"name": "entity.name.function.handler.applescript"
|
|
105
|
+
},
|
|
106
|
+
"3": {
|
|
107
|
+
"name": "keyword.control.function.applescript"
|
|
108
|
+
},
|
|
109
|
+
"4": {
|
|
110
|
+
"name": "variable.parameter.handler.direct.applescript"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"comment": "TODO: match `given` parameters",
|
|
114
|
+
"end": "^\\s*(end)(?:\\s+(\\2))?(?=\\s*(--.*?)?$)",
|
|
115
|
+
"endCaptures": {
|
|
116
|
+
"1": {
|
|
117
|
+
"name": "keyword.control.function.applescript"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"name": "meta.function.prepositional.applescript",
|
|
121
|
+
"patterns": [
|
|
122
|
+
{
|
|
123
|
+
"captures": {
|
|
124
|
+
"1": {
|
|
125
|
+
"name": "keyword.control.preposition.applescript"
|
|
126
|
+
},
|
|
127
|
+
"2": {
|
|
128
|
+
"name": "variable.parameter.handler.applescript"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"match": "\\b(?i:above|against|apart\\s+from|around|aside\\s+from|at|below|beneath|beside|between|by|for|from|instead\\s+of|into|on|onto|out\\s+of|over|thru|under)\\s+(\\w+)\\b"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"include": "$self"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"begin": "^(?x)\n\t\t\t\t\t\t\\s*(to|on)\\s+ \t\t\t\t\t# \"on\" or \"to\"\n\t\t\t\t\t\t(\\w+)\t\t\t\t\t\t\t# function name\n\t\t\t\t\t\t(?=\\s*(--.*?)?$)\t\t\t\t# nothing else\n\t\t\t\t\t",
|
|
140
|
+
"beginCaptures": {
|
|
141
|
+
"1": {
|
|
142
|
+
"name": "keyword.control.function.applescript"
|
|
143
|
+
},
|
|
144
|
+
"2": {
|
|
145
|
+
"name": "entity.name.function.handler.applescript"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"end": "^\\s*(end)(?:\\s+(\\2))?(?=\\s*(--.*?)?$)",
|
|
149
|
+
"endCaptures": {
|
|
150
|
+
"1": {
|
|
151
|
+
"name": "keyword.control.function.applescript"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"name": "meta.function.parameterless.applescript",
|
|
155
|
+
"patterns": [
|
|
156
|
+
{
|
|
157
|
+
"include": "$self"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"include": "#blocks.tell"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"include": "#blocks.repeat"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"include": "#blocks.statement"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"include": "#blocks.other"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"blocks.other": {
|
|
176
|
+
"patterns": [
|
|
177
|
+
{
|
|
178
|
+
"begin": "^\\s*(considering)\\b",
|
|
179
|
+
"end": "^\\s*(end(?:\\s+considering)?)(?=\\s*(--.*?)?$)",
|
|
180
|
+
"name": "meta.block.considering.applescript",
|
|
181
|
+
"patterns": [
|
|
182
|
+
{
|
|
183
|
+
"begin": "(?<=considering)",
|
|
184
|
+
"end": "(?<!¬)$",
|
|
185
|
+
"name": "meta.array.attributes.considering.applescript",
|
|
186
|
+
"patterns": [
|
|
187
|
+
{
|
|
188
|
+
"include": "#attributes.considering-ignoring"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"begin": "(?<=ignoring)",
|
|
194
|
+
"end": "(?<!¬)$",
|
|
195
|
+
"name": "meta.array.attributes.ignoring.applescript",
|
|
196
|
+
"patterns": [
|
|
197
|
+
{
|
|
198
|
+
"include": "#attributes.considering-ignoring"
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"match": "\\b(but)\\b",
|
|
204
|
+
"name": "keyword.control.but.applescript"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"include": "$self"
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"begin": "^\\s*(ignoring)\\b",
|
|
213
|
+
"end": "^\\s*(end(?:\\s+ignoring)?)(?=\\s*(--.*?)?$)",
|
|
214
|
+
"name": "meta.block.ignoring.applescript",
|
|
215
|
+
"patterns": [
|
|
216
|
+
{
|
|
217
|
+
"begin": "(?<=considering)",
|
|
218
|
+
"end": "(?<!¬)$",
|
|
219
|
+
"name": "meta.array.attributes.considering.applescript",
|
|
220
|
+
"patterns": [
|
|
221
|
+
{
|
|
222
|
+
"include": "#attributes.considering-ignoring"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"begin": "(?<=ignoring)",
|
|
228
|
+
"end": "(?<!¬)$",
|
|
229
|
+
"name": "meta.array.attributes.ignoring.applescript",
|
|
230
|
+
"patterns": [
|
|
231
|
+
{
|
|
232
|
+
"include": "#attributes.considering-ignoring"
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"match": "\\b(but)\\b",
|
|
238
|
+
"name": "keyword.control.but.applescript"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"include": "$self"
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"begin": "^\\s*(if)\\b",
|
|
247
|
+
"beginCaptures": {
|
|
248
|
+
"1": {
|
|
249
|
+
"name": "keyword.control.if.applescript"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"end": "^\\s*(end(?:\\s+if)?)(?=\\s*(--.*?)?$)",
|
|
253
|
+
"endCaptures": {
|
|
254
|
+
"1": {
|
|
255
|
+
"name": "keyword.control.end.applescript"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"name": "meta.block.if.applescript",
|
|
259
|
+
"patterns": [
|
|
260
|
+
{
|
|
261
|
+
"match": "\\b(then)\\b",
|
|
262
|
+
"name": "keyword.control.then.applescript"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"match": "\\b(else\\s+if)\\b",
|
|
266
|
+
"name": "keyword.control.else-if.applescript"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"match": "\\b(else)\\b",
|
|
270
|
+
"name": "keyword.control.else.applescript"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"include": "$self"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"begin": "^\\s*(try)\\b",
|
|
279
|
+
"beginCaptures": {
|
|
280
|
+
"1": {
|
|
281
|
+
"name": "keyword.control.try.applescript"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"end": "^\\s*(end(?:\\s+(try|error))?)(?=\\s*(--.*?)?$)",
|
|
285
|
+
"endCaptures": {
|
|
286
|
+
"1": {
|
|
287
|
+
"name": "keyword.control.end.applescript"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"name": "meta.block.try.applescript",
|
|
291
|
+
"patterns": [
|
|
292
|
+
{
|
|
293
|
+
"begin": "^\\s*(on\\s+error)\\b",
|
|
294
|
+
"beginCaptures": {
|
|
295
|
+
"1": {
|
|
296
|
+
"name": "keyword.control.exception.on-error.applescript"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"end": "(?<!¬)$",
|
|
300
|
+
"name": "meta.property.error.applescript",
|
|
301
|
+
"patterns": [
|
|
302
|
+
{
|
|
303
|
+
"match": "\\b(?i:number|partial|from|to)\\b",
|
|
304
|
+
"name": "keyword.control.exception.modifier.applescript"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"include": "#inline"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"include": "$self"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"begin": "^\\s*(using\\s+terms\\s+from)\\b",
|
|
318
|
+
"beginCaptures": {
|
|
319
|
+
"1": {
|
|
320
|
+
"name": "keyword.control.terms.applescript"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"end": "^\\s*(end(?:\\s+using\\s+terms\\s+from)?)(?=\\s*(--.*?)?$)",
|
|
324
|
+
"endCaptures": {
|
|
325
|
+
"1": {
|
|
326
|
+
"name": "keyword.control.end.applescript"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"name": "meta.block.terms.applescript",
|
|
330
|
+
"patterns": [
|
|
331
|
+
{
|
|
332
|
+
"include": "$self"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"begin": "^\\s*(with\\s+timeout(\\s+of)?)\\b",
|
|
338
|
+
"beginCaptures": {
|
|
339
|
+
"1": {
|
|
340
|
+
"name": "keyword.control.timeout.applescript"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"end": "^\\s*(end(?:\\s+timeout)?)(?=\\s*(--.*?)?$)",
|
|
344
|
+
"endCaptures": {
|
|
345
|
+
"1": {
|
|
346
|
+
"name": "keyword.control.end.applescript"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"name": "meta.block.timeout.applescript",
|
|
350
|
+
"patterns": [
|
|
351
|
+
{
|
|
352
|
+
"include": "$self"
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"begin": "^\\s*(with\\s+transaction(\\s+of)?)\\b",
|
|
358
|
+
"beginCaptures": {
|
|
359
|
+
"1": {
|
|
360
|
+
"name": "keyword.control.transaction.applescript"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"end": "^\\s*(end(?:\\s+transaction)?)(?=\\s*(--.*?)?$)",
|
|
364
|
+
"endCaptures": {
|
|
365
|
+
"1": {
|
|
366
|
+
"name": "keyword.control.end.applescript"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"name": "meta.block.transaction.applescript",
|
|
370
|
+
"patterns": [
|
|
371
|
+
{
|
|
372
|
+
"include": "$self"
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
"blocks.repeat": {
|
|
379
|
+
"patterns": [
|
|
380
|
+
{
|
|
381
|
+
"begin": "^\\s*(repeat)\\s+(until)\\b",
|
|
382
|
+
"beginCaptures": {
|
|
383
|
+
"1": {
|
|
384
|
+
"name": "keyword.control.repeat.applescript"
|
|
385
|
+
},
|
|
386
|
+
"2": {
|
|
387
|
+
"name": "keyword.control.until.applescript"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"end": "^\\s*(end(?:\\s+repeat)?)(?=\\s*(--.*?)?$)",
|
|
391
|
+
"endCaptures": {
|
|
392
|
+
"1": {
|
|
393
|
+
"name": "keyword.control.end.applescript"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"name": "meta.block.repeat.until.applescript",
|
|
397
|
+
"patterns": [
|
|
398
|
+
{
|
|
399
|
+
"include": "$self"
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"begin": "^\\s*(repeat)\\s+(while)\\b",
|
|
405
|
+
"beginCaptures": {
|
|
406
|
+
"1": {
|
|
407
|
+
"name": "keyword.control.repeat.applescript"
|
|
408
|
+
},
|
|
409
|
+
"2": {
|
|
410
|
+
"name": "keyword.control.while.applescript"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"end": "^\\s*(end(?:\\s+repeat)?)(?=\\s*(--.*?)?$)",
|
|
414
|
+
"endCaptures": {
|
|
415
|
+
"1": {
|
|
416
|
+
"name": "keyword.control.end.applescript"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"name": "meta.block.repeat.while.applescript",
|
|
420
|
+
"patterns": [
|
|
421
|
+
{
|
|
422
|
+
"include": "$self"
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"begin": "^\\s*(repeat)\\s+(with)\\s+(\\w+)\\b",
|
|
428
|
+
"beginCaptures": {
|
|
429
|
+
"1": {
|
|
430
|
+
"name": "keyword.control.repeat.applescript"
|
|
431
|
+
},
|
|
432
|
+
"2": {
|
|
433
|
+
"name": "keyword.control.until.applescript"
|
|
434
|
+
},
|
|
435
|
+
"3": {
|
|
436
|
+
"name": "variable.parameter.loop.applescript"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"end": "^\\s*(end(?:\\s+repeat)?)(?=\\s*(--.*?)?$)",
|
|
440
|
+
"endCaptures": {
|
|
441
|
+
"1": {
|
|
442
|
+
"name": "keyword.control.end.applescript"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"name": "meta.block.repeat.with.applescript",
|
|
446
|
+
"patterns": [
|
|
447
|
+
{
|
|
448
|
+
"match": "\\b(from|to|by)\\b",
|
|
449
|
+
"name": "keyword.control.modifier.range.applescript"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"match": "\\b(in)\\b",
|
|
453
|
+
"name": "keyword.control.modifier.list.applescript"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"include": "$self"
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"begin": "^\\s*(repeat)\\b(?=\\s*(--.*?)?$)",
|
|
462
|
+
"beginCaptures": {
|
|
463
|
+
"1": {
|
|
464
|
+
"name": "keyword.control.repeat.applescript"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"end": "^\\s*(end(?:\\s+repeat)?)(?=\\s*(--.*?)?$)",
|
|
468
|
+
"endCaptures": {
|
|
469
|
+
"1": {
|
|
470
|
+
"name": "keyword.control.end.applescript"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"name": "meta.block.repeat.forever.applescript",
|
|
474
|
+
"patterns": [
|
|
475
|
+
{
|
|
476
|
+
"include": "$self"
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"begin": "^\\s*(repeat)\\b",
|
|
482
|
+
"beginCaptures": {
|
|
483
|
+
"1": {
|
|
484
|
+
"name": "keyword.control.repeat.applescript"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"end": "^\\s*(end(?:\\s+repeat)?)(?=\\s*(--.*?)?$)",
|
|
488
|
+
"endCaptures": {
|
|
489
|
+
"1": {
|
|
490
|
+
"name": "keyword.control.end.applescript"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"name": "meta.block.repeat.times.applescript",
|
|
494
|
+
"patterns": [
|
|
495
|
+
{
|
|
496
|
+
"match": "\\b(times)\\b",
|
|
497
|
+
"name": "keyword.control.times.applescript"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"include": "$self"
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
"blocks.statement": {
|
|
507
|
+
"patterns": [
|
|
508
|
+
{
|
|
509
|
+
"begin": "\\b(prop(?:erty)?)\\s+(\\w+)\\b",
|
|
510
|
+
"beginCaptures": {
|
|
511
|
+
"1": {
|
|
512
|
+
"name": "keyword.control.def.property.applescript"
|
|
513
|
+
},
|
|
514
|
+
"2": {
|
|
515
|
+
"name": "variable.other.property.applescript"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"end": "(?<!¬)$",
|
|
519
|
+
"name": "meta.statement.property.applescript",
|
|
520
|
+
"patterns": [
|
|
521
|
+
{
|
|
522
|
+
"match": ":",
|
|
523
|
+
"name": "punctuation.separator.key-value.property.applescript"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"include": "#inline"
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"begin": "\\b(set)\\s+(\\w+)\\s+(to)\\b",
|
|
532
|
+
"beginCaptures": {
|
|
533
|
+
"1": {
|
|
534
|
+
"name": "keyword.control.def.set.applescript"
|
|
535
|
+
},
|
|
536
|
+
"2": {
|
|
537
|
+
"name": "variable.other.readwrite.set.applescript"
|
|
538
|
+
},
|
|
539
|
+
"3": {
|
|
540
|
+
"name": "keyword.control.def.set.applescript"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"end": "(?<!¬)$",
|
|
544
|
+
"name": "meta.statement.set.applescript",
|
|
545
|
+
"patterns": [
|
|
546
|
+
{
|
|
547
|
+
"include": "#inline"
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"begin": "\\b(local)\\b",
|
|
553
|
+
"beginCaptures": {
|
|
554
|
+
"1": {
|
|
555
|
+
"name": "keyword.control.def.local.applescript"
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"end": "(?<!¬)$",
|
|
559
|
+
"name": "meta.statement.local.applescript",
|
|
560
|
+
"patterns": [
|
|
561
|
+
{
|
|
562
|
+
"match": ",",
|
|
563
|
+
"name": "punctuation.separator.variables.local.applescript"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"match": "\\b\\w+",
|
|
567
|
+
"name": "variable.other.readwrite.local.applescript"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"include": "#inline"
|
|
571
|
+
}
|
|
572
|
+
]
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"begin": "\\b(global)\\b",
|
|
576
|
+
"beginCaptures": {
|
|
577
|
+
"1": {
|
|
578
|
+
"name": "keyword.control.def.global.applescript"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"end": "(?<!¬)$",
|
|
582
|
+
"name": "meta.statement.global.applescript",
|
|
583
|
+
"patterns": [
|
|
584
|
+
{
|
|
585
|
+
"match": ",",
|
|
586
|
+
"name": "punctuation.separator.variables.global.applescript"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"match": "\\b\\w+",
|
|
590
|
+
"name": "variable.other.readwrite.global.applescript"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"include": "#inline"
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"begin": "\\b(error)\\b",
|
|
599
|
+
"beginCaptures": {
|
|
600
|
+
"1": {
|
|
601
|
+
"name": "keyword.control.exception.error.applescript"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"end": "(?<!¬)$",
|
|
605
|
+
"name": "meta.statement.error.applescript",
|
|
606
|
+
"patterns": [
|
|
607
|
+
{
|
|
608
|
+
"match": "\\b(number|partial|from|to)\\b",
|
|
609
|
+
"name": "keyword.control.exception.modifier.applescript"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"include": "#inline"
|
|
613
|
+
}
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"begin": "\\b(if)\\b(?=.*\\bthen\\b(?!\\s*(--.*?)?$))",
|
|
618
|
+
"beginCaptures": {
|
|
619
|
+
"1": {
|
|
620
|
+
"name": "keyword.control.if.applescript"
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
"end": "(?<!¬)$",
|
|
624
|
+
"name": "meta.statement.if-then.applescript",
|
|
625
|
+
"patterns": [
|
|
626
|
+
{
|
|
627
|
+
"include": "#inline"
|
|
628
|
+
}
|
|
629
|
+
]
|
|
630
|
+
}
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
"blocks.tell": {
|
|
634
|
+
"patterns": [
|
|
635
|
+
{
|
|
636
|
+
"begin": "^\\s*(tell)\\s+(?=app(lication)?\\s+\"(?i:textmate)\")(?!.*\\bto(?!\\s+tell)\\b)",
|
|
637
|
+
"captures": {
|
|
638
|
+
"1": {
|
|
639
|
+
"name": "keyword.control.tell.applescript"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"comment": "tell Textmate",
|
|
643
|
+
"end": "^\\s*(end(?:\\s+tell)?)(?=\\s*(--.*?)?$)",
|
|
644
|
+
"name": "meta.block.tell.application.textmate.applescript",
|
|
645
|
+
"patterns": [
|
|
646
|
+
{
|
|
647
|
+
"include": "#textmate"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"include": "#standard-suite"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"include": "$self"
|
|
654
|
+
}
|
|
655
|
+
]
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"begin": "^\\s*(tell)\\s+(?=app(lication)?\\s+\"(?i:finder)\")(?!.*\\bto(?!\\s+tell)\\b)",
|
|
659
|
+
"captures": {
|
|
660
|
+
"1": {
|
|
661
|
+
"name": "keyword.control.tell.applescript"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
"comment": "tell Finder",
|
|
665
|
+
"end": "^\\s*(end(?:\\s+tell)?)(?=\\s*(--.*?)?$)",
|
|
666
|
+
"name": "meta.block.tell.application.finder.applescript",
|
|
667
|
+
"patterns": [
|
|
668
|
+
{
|
|
669
|
+
"include": "#finder"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"include": "#standard-suite"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"include": "$self"
|
|
676
|
+
}
|
|
677
|
+
]
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"begin": "^\\s*(tell)\\s+(?=app(lication)?\\s+\"(?i:system events)\")(?!.*\\bto(?!\\s+tell)\\b)",
|
|
681
|
+
"captures": {
|
|
682
|
+
"1": {
|
|
683
|
+
"name": "keyword.control.tell.applescript"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"comment": "tell System Events",
|
|
687
|
+
"end": "^\\s*(end(?:\\s+tell)?)(?=\\s*(--.*?)?$)",
|
|
688
|
+
"name": "meta.block.tell.application.system-events.applescript",
|
|
689
|
+
"patterns": [
|
|
690
|
+
{
|
|
691
|
+
"include": "#system-events"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"include": "#standard-suite"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"include": "$self"
|
|
698
|
+
}
|
|
699
|
+
]
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"begin": "^\\s*(tell)\\s+(?=app(lication)?\\s+\"(?i:itunes)\")(?!.*\\bto(?!\\s+tell)\\b)",
|
|
703
|
+
"captures": {
|
|
704
|
+
"1": {
|
|
705
|
+
"name": "keyword.control.tell.applescript"
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"comment": "tell iTunes",
|
|
709
|
+
"end": "^\\s*(end(?:\\s+tell)?)(?=\\s*(--.*?)?$)",
|
|
710
|
+
"name": "meta.block.tell.application.itunes.applescript",
|
|
711
|
+
"patterns": [
|
|
712
|
+
{
|
|
713
|
+
"include": "#itunes"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"include": "#standard-suite"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"include": "$self"
|
|
720
|
+
}
|
|
721
|
+
]
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"begin": "^\\s*(tell)\\s+(?=app(lication)?\\s+process\\b)(?!.*\\bto(?!\\s+tell)\\b)",
|
|
725
|
+
"captures": {
|
|
726
|
+
"1": {
|
|
727
|
+
"name": "keyword.control.tell.applescript"
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"comment": "tell generic application process",
|
|
731
|
+
"end": "^\\s*(end(?:\\s+tell)?)(?=\\s*(--.*?)?$)",
|
|
732
|
+
"name": "meta.block.tell.application-process.generic.applescript",
|
|
733
|
+
"patterns": [
|
|
734
|
+
{
|
|
735
|
+
"include": "#standard-suite"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"include": "$self"
|
|
739
|
+
}
|
|
740
|
+
]
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"begin": "^\\s*(tell)\\s+(?=app(lication)?\\b)(?!.*\\bto(?!\\s+tell)\\b)",
|
|
744
|
+
"captures": {
|
|
745
|
+
"1": {
|
|
746
|
+
"name": "keyword.control.tell.applescript"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"comment": "tell generic application",
|
|
750
|
+
"end": "^\\s*(end(?:\\s+tell)?)(?=\\s*(--.*?)?$)",
|
|
751
|
+
"name": "meta.block.tell.application.generic.applescript",
|
|
752
|
+
"patterns": [
|
|
753
|
+
{
|
|
754
|
+
"include": "#standard-suite"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"include": "$self"
|
|
758
|
+
}
|
|
759
|
+
]
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"begin": "^\\s*(tell)\\s+(?!.*\\bto(?!\\s+tell)\\b)",
|
|
763
|
+
"captures": {
|
|
764
|
+
"1": {
|
|
765
|
+
"name": "keyword.control.tell.applescript"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"comment": "generic tell block",
|
|
769
|
+
"end": "^\\s*(end(?:\\s+tell)?)(?=\\s*(--.*?)?$)",
|
|
770
|
+
"name": "meta.block.tell.generic.applescript",
|
|
771
|
+
"patterns": [
|
|
772
|
+
{
|
|
773
|
+
"include": "$self"
|
|
774
|
+
}
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"begin": "^\\s*(tell)\\s+(?=.*\\bto\\b)",
|
|
779
|
+
"captures": {
|
|
780
|
+
"1": {
|
|
781
|
+
"name": "keyword.control.tell.applescript"
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
"comment": "tell … to statement",
|
|
785
|
+
"end": "(?<!¬)$",
|
|
786
|
+
"name": "meta.block.tell.generic.applescript",
|
|
787
|
+
"patterns": [
|
|
788
|
+
{
|
|
789
|
+
"include": "$self"
|
|
790
|
+
}
|
|
791
|
+
]
|
|
792
|
+
}
|
|
793
|
+
]
|
|
794
|
+
},
|
|
795
|
+
"built-in": {
|
|
796
|
+
"patterns": [
|
|
797
|
+
{
|
|
798
|
+
"include": "#built-in.constant"
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"include": "#built-in.keyword"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"include": "#built-in.support"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"include": "#built-in.punctuation"
|
|
808
|
+
}
|
|
809
|
+
]
|
|
810
|
+
},
|
|
811
|
+
"built-in.constant": {
|
|
812
|
+
"patterns": [
|
|
813
|
+
{
|
|
814
|
+
"comment": "yes/no can’t always be used as booleans, e.g. in an if() expression. But they work e.g. for boolean arguments.",
|
|
815
|
+
"match": "\\b(?i:true|false|yes|no)\\b",
|
|
816
|
+
"name": "constant.language.boolean.applescript"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"match": "\\b(?i:null|missing\\s+value)\\b",
|
|
820
|
+
"name": "constant.language.null.applescript"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"match": "-?\\b\\d+((\\.(\\d+\\b)?)?(?i:e\\+?\\d*\\b)?|\\b)",
|
|
824
|
+
"name": "constant.numeric.applescript"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"match": "\\b(?i:space|tab|return|linefeed|quote)\\b",
|
|
828
|
+
"name": "constant.other.text.applescript"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"match": "\\b(?i:all\\s+(caps|lowercase)|bold|condensed|expanded|hidden|italic|outline|plain|shadow|small\\s+caps|strikethrough|(sub|super)script|underline)\\b",
|
|
832
|
+
"name": "constant.other.styles.applescript"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"match": "\\b(?i:Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sep(tember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?)\\b",
|
|
836
|
+
"name": "constant.other.time.month.applescript"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"match": "\\b(?i:Mon(day)?|Tue(sday)?|Wed(nesday)?|Thu(rsday)?|Fri(day)?|Sat(urday)?|Sun(day)?)\\b",
|
|
840
|
+
"name": "constant.other.time.weekday.applescript"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"match": "\\b(?i:AppleScript|pi|result|version|current\\s+application|its?|m[ey])\\b",
|
|
844
|
+
"name": "constant.other.miscellaneous.applescript"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"match": "\\b(?i:text\\s+item\\s+delimiters|print\\s+(length|depth))\\b",
|
|
848
|
+
"name": "variable.language.applescript"
|
|
849
|
+
}
|
|
850
|
+
]
|
|
851
|
+
},
|
|
852
|
+
"built-in.keyword": {
|
|
853
|
+
"patterns": [
|
|
854
|
+
{
|
|
855
|
+
"match": "(&|\\*|\\+|-|/|÷|\\^)",
|
|
856
|
+
"name": "keyword.operator.arithmetic.applescript"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"match": "(=|≠|>|<|≥|>=|≤|<=)",
|
|
860
|
+
"name": "keyword.operator.comparison.applescript"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"match": "(?ix)\\b\n\t\t\t\t\t\t(and|or|div|mod|as|not\n\t\t\t\t\t\t|(a\\s+)?(ref(\\s+to)?|reference\\s+to)\n\t\t\t\t\t\t|equal(s|\\s+to)|contains?|comes\\s+(after|before)|(start|begin|end)s?\\s+with\n\t\t\t\t\t\t)\n\t\t\t\t\t\\b",
|
|
864
|
+
"name": "keyword.operator.word.applescript"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"comment": "In double quotes so we can use a single quote in the keywords.",
|
|
868
|
+
"match": "(?ix)\\b\n\t\t\t\t\t\t(is(n't|\\s+not)?(\\s+(equal(\\s+to)?|(less|greater)\\s+than(\\s+or\\s+equal(\\s+to)?)?|in|contained\\s+by))?\n\t\t\t\t\t\t|does(n't|\\s+not)\\s+(equal|come\\s+(before|after)|contain)\n\t\t\t\t\t\t)\n\t\t\t\t\t\\b",
|
|
869
|
+
"name": "keyword.operator.word.applescript"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"match": "\\b(?i:some|every|whose|where|that|id|index|\\d+(st|nd|rd|th)|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|last|front|back|middle|named|beginning|end|from|to|thr(u|ough)|before|(front|back|beginning|end)\\s+of|after|behind|in\\s+(front|back|beginning|end)\\s+of)\\b",
|
|
873
|
+
"name": "keyword.operator.reference.applescript"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"match": "\\b(?i:continue|return|exit(\\s+repeat)?)\\b",
|
|
877
|
+
"name": "keyword.control.loop.applescript"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"match": "\\b(?i:about|above|after|against|and|apart\\s+from|around|as|aside\\s+from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|contain|contains|contains|copy|div|does|eighth|else|end|equal|equals|error|every|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead\\s+of|into|is|it|its|last|local|me|middle|mod|my|ninth|not|of|on|onto|or|out\\s+of|over|prop|property|put|ref|reference|repeat|returning|script|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\\b",
|
|
881
|
+
"name": "keyword.other.applescript"
|
|
882
|
+
}
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
"built-in.punctuation": {
|
|
886
|
+
"patterns": [
|
|
887
|
+
{
|
|
888
|
+
"match": "¬",
|
|
889
|
+
"name": "punctuation.separator.continuation.line.applescript"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"comment": "the : in property assignments",
|
|
893
|
+
"match": ":",
|
|
894
|
+
"name": "punctuation.separator.key-value.property.applescript"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"comment": "the parentheses in groups",
|
|
898
|
+
"match": "[()]",
|
|
899
|
+
"name": "punctuation.section.group.applescript"
|
|
900
|
+
}
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
"built-in.support": {
|
|
904
|
+
"patterns": [
|
|
905
|
+
{
|
|
906
|
+
"match": "\\b(?i:POSIX\\s+path|frontmost|id|name|running|version|days?|weekdays?|months?|years?|time|date\\s+string|time\\s+string|length|rest|reverse|items?|contents|quoted\\s+form|characters?|paragraphs?|words?)\\b",
|
|
907
|
+
"name": "support.function.built-in.property.applescript"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"match": "\\b(?i:activate|log|clipboard\\s+info|set\\s+the\\s+clipboard\\s+to|the\\s+clipboard|info\\s+for|list\\s+(disks|folder)|mount\\s+volume|path\\s+to(\\s+resource)?|close\\s+access|get\\s+eof|open\\s+for\\s+access|read|set\\s+eof|write|open\\s+location|current\\s+date|do\\s+shell\\s+script|get\\s+volume\\s+settings|random\\s+number|round|set\\s+volume|system\\s+(attribute|info)|time\\s+to\\s+GMT|load\\s+script|run\\s+script|scripting\\s+components|store\\s+script|copy|count|get|launch|run|set|ASCII\\s+(character|number)|localized\\s+string|offset|summarize|beep|choose\\s+(application|color|file(\\s+name)?|folder|from\\s+list|remote\\s+application|URL)|delay|display\\s+(alert|dialog)|say)\\b",
|
|
911
|
+
"name": "support.function.built-in.command.applescript"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"match": "\\b(?i:get|run)\\b",
|
|
915
|
+
"name": "support.function.built-in.applescript"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"match": "\\b(?i:anything|data|text|upper\\s+case|propert(y|ies))\\b",
|
|
919
|
+
"name": "support.class.built-in.applescript"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"match": "\\b(?i:alias|class)(es)?\\b",
|
|
923
|
+
"name": "support.class.built-in.applescript"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"match": "\\b(?i:app(lication)?|boolean|character|constant|date|event|file(\\s+specification)?|handler|integer|item|keystroke|linked\\s+list|list|machine|number|picture|preposition|POSIX\\s+file|real|record|reference(\\s+form)?|RGB\\s+color|script|sound|text\\s+item|type\\s+class|vector|writing\\s+code(\\s+info)?|zone|((international|styled(\\s+(Clipboard|Unicode))?|Unicode)\\s+)?text|((C|encoded|Pascal)\\s+)?string)s?\\b",
|
|
927
|
+
"name": "support.class.built-in.applescript"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"match": "(?ix)\\b\n\t\t\t\t\t\t(\t(cubic\\s+(centi)?|square\\s+(kilo)?|centi|kilo)met(er|re)s\n\t\t\t\t\t\t|\tsquare\\s+(yards|feet|miles)|cubic\\s+(yards|feet|inches)|miles|inches\n\t\t\t\t\t\t|\tlit(re|er)s|gallons|quarts\n\t\t\t\t\t\t|\t(kilo)?grams|ounces|pounds\n\t\t\t\t\t\t|\tdegrees\\s+(Celsius|Fahrenheit|Kelvin)\n\t\t\t\t\t\t)\n\t\t\t\t\t\\b",
|
|
931
|
+
"name": "support.class.built-in.unit.applescript"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"match": "\\b(?i:seconds|minutes|hours|days)\\b",
|
|
935
|
+
"name": "support.class.built-in.time.applescript"
|
|
936
|
+
}
|
|
937
|
+
]
|
|
938
|
+
},
|
|
939
|
+
"comments": {
|
|
940
|
+
"patterns": [
|
|
941
|
+
{
|
|
942
|
+
"begin": "^\\s*(#!)",
|
|
943
|
+
"captures": {
|
|
944
|
+
"1": {
|
|
945
|
+
"name": "punctuation.definition.comment.applescript"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"end": "\\n",
|
|
949
|
+
"name": "comment.line.number-sign.applescript"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"begin": "(^[ \\t]+)?(?=#)",
|
|
953
|
+
"beginCaptures": {
|
|
954
|
+
"1": {
|
|
955
|
+
"name": "punctuation.whitespace.comment.leading.applescript"
|
|
956
|
+
}
|
|
957
|
+
},
|
|
958
|
+
"end": "(?!\\G)",
|
|
959
|
+
"patterns": [
|
|
960
|
+
{
|
|
961
|
+
"begin": "#",
|
|
962
|
+
"beginCaptures": {
|
|
963
|
+
"0": {
|
|
964
|
+
"name": "punctuation.definition.comment.applescript"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"end": "\\n",
|
|
968
|
+
"name": "comment.line.number-sign.applescript"
|
|
969
|
+
}
|
|
970
|
+
]
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"begin": "(^[ \\t]+)?(?=--)",
|
|
974
|
+
"beginCaptures": {
|
|
975
|
+
"1": {
|
|
976
|
+
"name": "punctuation.whitespace.comment.leading.applescript"
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
"end": "(?!\\G)",
|
|
980
|
+
"patterns": [
|
|
981
|
+
{
|
|
982
|
+
"begin": "--",
|
|
983
|
+
"beginCaptures": {
|
|
984
|
+
"0": {
|
|
985
|
+
"name": "punctuation.definition.comment.applescript"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"end": "\\n",
|
|
989
|
+
"name": "comment.line.double-dash.applescript"
|
|
990
|
+
}
|
|
991
|
+
]
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"begin": "\\(\\*",
|
|
995
|
+
"captures": {
|
|
996
|
+
"0": {
|
|
997
|
+
"name": "punctuation.definition.comment.applescript"
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
"end": "\\*\\)",
|
|
1001
|
+
"name": "comment.block.applescript",
|
|
1002
|
+
"patterns": [
|
|
1003
|
+
{
|
|
1004
|
+
"include": "#comments.nested"
|
|
1005
|
+
}
|
|
1006
|
+
]
|
|
1007
|
+
}
|
|
1008
|
+
]
|
|
1009
|
+
},
|
|
1010
|
+
"comments.nested": {
|
|
1011
|
+
"patterns": [
|
|
1012
|
+
{
|
|
1013
|
+
"begin": "\\(\\*",
|
|
1014
|
+
"beginCaptures": {
|
|
1015
|
+
"0": {
|
|
1016
|
+
"name": "punctuation.definition.comment.begin.applescript"
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
"end": "\\*\\)",
|
|
1020
|
+
"endCaptures": {
|
|
1021
|
+
"0": {
|
|
1022
|
+
"name": "punctuation.definition.comment.end.applescript"
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
"name": "comment.block.applescript",
|
|
1026
|
+
"patterns": [
|
|
1027
|
+
{
|
|
1028
|
+
"include": "#comments.nested"
|
|
1029
|
+
}
|
|
1030
|
+
]
|
|
1031
|
+
}
|
|
1032
|
+
]
|
|
1033
|
+
},
|
|
1034
|
+
"data-structures": {
|
|
1035
|
+
"patterns": [
|
|
1036
|
+
{
|
|
1037
|
+
"begin": "\\{",
|
|
1038
|
+
"beginCaptures": {
|
|
1039
|
+
"0": {
|
|
1040
|
+
"name": "punctuation.definition.array.begin.applescript"
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
"comment": "We cannot necessarily distinguish \"records\" from \"arrays\", and so this could be either.",
|
|
1044
|
+
"end": "\\}",
|
|
1045
|
+
"endCaptures": {
|
|
1046
|
+
"0": {
|
|
1047
|
+
"name": "punctuation.definition.array.end.applescript"
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"name": "meta.array.applescript",
|
|
1051
|
+
"patterns": [
|
|
1052
|
+
{
|
|
1053
|
+
"captures": {
|
|
1054
|
+
"1": {
|
|
1055
|
+
"name": "constant.other.key.applescript"
|
|
1056
|
+
},
|
|
1057
|
+
"2": {
|
|
1058
|
+
"name": "meta.identifier.applescript"
|
|
1059
|
+
},
|
|
1060
|
+
"3": {
|
|
1061
|
+
"name": "punctuation.definition.identifier.applescript"
|
|
1062
|
+
},
|
|
1063
|
+
"4": {
|
|
1064
|
+
"name": "punctuation.definition.identifier.applescript"
|
|
1065
|
+
},
|
|
1066
|
+
"5": {
|
|
1067
|
+
"name": "punctuation.separator.key-value.applescript"
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
"match": "(\\w+|((\\|)[^|\\n]*(\\|)))\\s*(:)"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"match": ":",
|
|
1074
|
+
"name": "punctuation.separator.key-value.applescript"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"match": ",",
|
|
1078
|
+
"name": "punctuation.separator.array.applescript"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"include": "#inline"
|
|
1082
|
+
}
|
|
1083
|
+
]
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"begin": "(?:(?<=application )|(?<=app ))(\")",
|
|
1087
|
+
"captures": {
|
|
1088
|
+
"1": {
|
|
1089
|
+
"name": "punctuation.definition.string.applescript"
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"end": "(\")",
|
|
1093
|
+
"name": "string.quoted.double.application-name.applescript",
|
|
1094
|
+
"patterns": [
|
|
1095
|
+
{
|
|
1096
|
+
"match": "\\\\.",
|
|
1097
|
+
"name": "constant.character.escape.applescript"
|
|
1098
|
+
}
|
|
1099
|
+
]
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"begin": "(\")",
|
|
1103
|
+
"captures": {
|
|
1104
|
+
"1": {
|
|
1105
|
+
"name": "punctuation.definition.string.applescript"
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"end": "(\")",
|
|
1109
|
+
"name": "string.quoted.double.applescript",
|
|
1110
|
+
"patterns": [
|
|
1111
|
+
{
|
|
1112
|
+
"match": "\\\\.",
|
|
1113
|
+
"name": "constant.character.escape.applescript"
|
|
1114
|
+
}
|
|
1115
|
+
]
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"captures": {
|
|
1119
|
+
"1": {
|
|
1120
|
+
"name": "punctuation.definition.identifier.applescript"
|
|
1121
|
+
},
|
|
1122
|
+
"2": {
|
|
1123
|
+
"name": "punctuation.definition.identifier.applescript"
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
"match": "(\\|)[^|\\n]*(\\|)",
|
|
1127
|
+
"name": "meta.identifier.applescript"
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
"captures": {
|
|
1131
|
+
"1": {
|
|
1132
|
+
"name": "punctuation.definition.data.applescript"
|
|
1133
|
+
},
|
|
1134
|
+
"2": {
|
|
1135
|
+
"name": "support.class.built-in.applescript"
|
|
1136
|
+
},
|
|
1137
|
+
"3": {
|
|
1138
|
+
"name": "storage.type.utxt.applescript"
|
|
1139
|
+
},
|
|
1140
|
+
"4": {
|
|
1141
|
+
"name": "string.unquoted.data.applescript"
|
|
1142
|
+
},
|
|
1143
|
+
"5": {
|
|
1144
|
+
"name": "punctuation.definition.data.applescript"
|
|
1145
|
+
},
|
|
1146
|
+
"6": {
|
|
1147
|
+
"name": "keyword.operator.applescript"
|
|
1148
|
+
},
|
|
1149
|
+
"7": {
|
|
1150
|
+
"name": "support.class.built-in.applescript"
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
"match": "(«)(data) (utxt|utf8)([[:xdigit:]]*)(»)(?:\\s+(as)\\s+(?i:Unicode\\s+text))?",
|
|
1154
|
+
"name": "constant.other.data.utxt.applescript"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"begin": "(«)(\\w+)\\b(?=\\s)",
|
|
1158
|
+
"beginCaptures": {
|
|
1159
|
+
"1": {
|
|
1160
|
+
"name": "punctuation.definition.data.applescript"
|
|
1161
|
+
},
|
|
1162
|
+
"2": {
|
|
1163
|
+
"name": "support.class.built-in.applescript"
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
"end": "(»)",
|
|
1167
|
+
"endCaptures": {
|
|
1168
|
+
"1": {
|
|
1169
|
+
"name": "punctuation.definition.data.applescript"
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
"name": "constant.other.data.raw.applescript"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"captures": {
|
|
1176
|
+
"1": {
|
|
1177
|
+
"name": "punctuation.definition.data.applescript"
|
|
1178
|
+
},
|
|
1179
|
+
"2": {
|
|
1180
|
+
"name": "punctuation.definition.data.applescript"
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
"match": "(«)[^»]*(»)",
|
|
1184
|
+
"name": "invalid.illegal.data.applescript"
|
|
1185
|
+
}
|
|
1186
|
+
]
|
|
1187
|
+
},
|
|
1188
|
+
"finder": {
|
|
1189
|
+
"patterns": [
|
|
1190
|
+
{
|
|
1191
|
+
"match": "\\b(item|container|(computer|disk|trash)-object|disk|folder|((alias|application|document|internet location) )?file|clipping|package)s?\\b",
|
|
1192
|
+
"name": "support.class.finder.items.applescript"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"match": "\\b((Finder|desktop|information|preferences|clipping) )windows?\\b",
|
|
1196
|
+
"name": "support.class.finder.window-classes.applescript"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"match": "\\b(preferences|(icon|column|list) view options|(label|column|alias list)s?)\\b",
|
|
1200
|
+
"name": "support.class.finder.type-definitions.applescript"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"match": "\\b(copy|find|sort|clean up|eject|empty( trash)|erase|reveal|update)\\b",
|
|
1204
|
+
"name": "support.function.finder.items.applescript"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"match": "\\b(insertion location|product version|startup disk|desktop|trash|home|computer container|finder preferences)\\b",
|
|
1208
|
+
"name": "support.constant.finder.applescript"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"match": "\\b(visible)\\b",
|
|
1212
|
+
"name": "support.variable.finder.applescript"
|
|
1213
|
+
}
|
|
1214
|
+
]
|
|
1215
|
+
},
|
|
1216
|
+
"inline": {
|
|
1217
|
+
"patterns": [
|
|
1218
|
+
{
|
|
1219
|
+
"include": "#comments"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"include": "#data-structures"
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"include": "#built-in"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"include": "#standardadditions"
|
|
1229
|
+
}
|
|
1230
|
+
]
|
|
1231
|
+
},
|
|
1232
|
+
"itunes": {
|
|
1233
|
+
"patterns": [
|
|
1234
|
+
{
|
|
1235
|
+
"match": "\\b(artwork|application|encoder|EQ preset|item|source|visual|(EQ |browser )?window|((audio CD|device|shared|URL|file) )?track|playlist window|((audio CD|device|radio tuner|library|folder|user) )?playlist)s?\\b",
|
|
1236
|
+
"name": "support.class.itunes.applescript"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"match": "\\b(add|back track|convert|fast forward|(next|previous) track|pause|play(pause)?|refresh|resume|rewind|search|stop|update|eject|subscribe|update(Podcast|AllPodcasts)|download)\\b",
|
|
1240
|
+
"name": "support.function.itunes.applescript"
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"match": "\\b(current (playlist|stream (title|URL)|track)|player state)\\b",
|
|
1244
|
+
"name": "support.constant.itunes.applescript"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"match": "\\b(current (encoder|EQ preset|visual)|EQ enabled|fixed indexing|full screen|mute|player position|sound volume|visuals enabled|visual size)\\b",
|
|
1248
|
+
"name": "support.variable.itunes.applescript"
|
|
1249
|
+
}
|
|
1250
|
+
]
|
|
1251
|
+
},
|
|
1252
|
+
"standard-suite": {
|
|
1253
|
+
"patterns": [
|
|
1254
|
+
{
|
|
1255
|
+
"match": "\\b(colors?|documents?|items?|windows?)\\b",
|
|
1256
|
+
"name": "support.class.standard-suite.applescript"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"match": "\\b(close|count|delete|duplicate|exists|make|move|open|print|quit|save|activate|select|data size)\\b",
|
|
1260
|
+
"name": "support.function.standard-suite.applescript"
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"match": "\\b(name|frontmost|version)\\b",
|
|
1264
|
+
"name": "support.constant.standard-suite.applescript"
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"match": "\\b(selection)\\b",
|
|
1268
|
+
"name": "support.variable.standard-suite.applescript"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"match": "\\b(attachments?|attribute runs?|characters?|paragraphs?|texts?|words?)\\b",
|
|
1272
|
+
"name": "support.class.text-suite.applescript"
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
"standardadditions": {
|
|
1277
|
+
"patterns": [
|
|
1278
|
+
{
|
|
1279
|
+
"match": "\\b((alert|dialog) reply)\\b",
|
|
1280
|
+
"name": "support.class.standardadditions.user-interaction.applescript"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"match": "\\b(file information)\\b",
|
|
1284
|
+
"name": "support.class.standardadditions.file.applescript"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"match": "\\b(POSIX files?|system information|volume settings)\\b",
|
|
1288
|
+
"name": "support.class.standardadditions.miscellaneous.applescript"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"match": "\\b(URLs?|internet address(es)?|web pages?|FTP items?)\\b",
|
|
1292
|
+
"name": "support.class.standardadditions.internet.applescript"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"match": "\\b(info for|list (disks|folder)|mount volume|path to( resource)?)\\b",
|
|
1296
|
+
"name": "support.function.standardadditions.file.applescript"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"match": "\\b(beep|choose (application|color|file( name)?|folder|from list|remote application|URL)|delay|display (alert|dialog)|say)\\b",
|
|
1300
|
+
"name": "support.function.standardadditions.user-interaction.applescript"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"match": "\\b(ASCII (character|number)|localized string|offset|summarize)\\b",
|
|
1304
|
+
"name": "support.function.standardadditions.string.applescript"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"match": "\\b(set the clipboard to|the clipboard|clipboard info)\\b",
|
|
1308
|
+
"name": "support.function.standardadditions.clipboard.applescript"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"match": "\\b(open for access|close access|read|write|get eof|set eof)\\b",
|
|
1312
|
+
"name": "support.function.standardadditions.file-i-o.applescript"
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"match": "\\b((load|store|run) script|scripting components)\\b",
|
|
1316
|
+
"name": "support.function.standardadditions.scripting.applescript"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"match": "\\b(current date|do shell script|get volume settings|random number|round|set volume|system attribute|system info|time to GMT)\\b",
|
|
1320
|
+
"name": "support.function.standardadditions.miscellaneous.applescript"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"match": "\\b(opening folder|(closing|moving) folder window for|adding folder items to|removing folder items from)\\b",
|
|
1324
|
+
"name": "support.function.standardadditions.folder-actions.applescript"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"match": "\\b(open location|handle CGI request)\\b",
|
|
1328
|
+
"name": "support.function.standardadditions.internet.applescript"
|
|
1329
|
+
}
|
|
1330
|
+
]
|
|
1331
|
+
},
|
|
1332
|
+
"system-events": {
|
|
1333
|
+
"patterns": [
|
|
1334
|
+
{
|
|
1335
|
+
"match": "\\b(audio (data|file))\\b",
|
|
1336
|
+
"name": "support.class.system-events.audio-file.applescript"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"match": "\\b(alias(es)?|(Classic|local|network|system|user) domain objects?|disk( item)?s?|domains?|file( package)?s?|folders?|items?)\\b",
|
|
1340
|
+
"name": "support.class.system-events.disk-folder-file.applescript"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"match": "\\b(delete|open|move)\\b",
|
|
1344
|
+
"name": "support.function.system-events.disk-folder-file.applescript"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"match": "\\b(folder actions?|scripts?)\\b",
|
|
1348
|
+
"name": "support.class.system-events.folder-actions.applescript"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"match": "\\b(attach action to|attached scripts|edit action of|remove action from)\\b",
|
|
1352
|
+
"name": "support.function.system-events.folder-actions.applescript"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"match": "\\b(movie data|movie file)\\b",
|
|
1356
|
+
"name": "support.class.system-events.movie-file.applescript"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"match": "\\b(log out|restart|shut down|sleep)\\b",
|
|
1360
|
+
"name": "support.function.system-events.power.applescript"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"match": "\\b(((application |desk accessory )?process|(check|combo )?box)(es)?|(action|attribute|browser|(busy|progress|relevance) indicator|color well|column|drawer|group|grow area|image|incrementor|list|menu( bar)?( item)?|(menu |pop up |radio )?button|outline|(radio|tab|splitter) group|row|scroll (area|bar)|sheet|slider|splitter|static text|table|text (area|field)|tool bar|UI element|window)s?)\\b",
|
|
1364
|
+
"name": "support.class.system-events.processes.applescript"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"match": "\\b(click|key code|keystroke|perform|select)\\b",
|
|
1368
|
+
"name": "support.function.system-events.processes.applescript"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"match": "\\b(property list (file|item))\\b",
|
|
1372
|
+
"name": "support.class.system-events.property-list.applescript"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"match": "\\b(annotation|QuickTime (data|file)|track)s?\\b",
|
|
1376
|
+
"name": "support.class.system-events.quicktime-file.applescript"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"match": "\\b((abort|begin|end) transaction)\\b",
|
|
1380
|
+
"name": "support.function.system-events.system-events.applescript"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"match": "\\b(XML (attribute|data|element|file)s?)\\b",
|
|
1384
|
+
"name": "support.class.system-events.xml.applescript"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"match": "\\b(print settings|users?|login items?)\\b",
|
|
1388
|
+
"name": "support.class.sytem-events.other.applescript"
|
|
1389
|
+
}
|
|
1390
|
+
]
|
|
1391
|
+
},
|
|
1392
|
+
"textmate": {
|
|
1393
|
+
"patterns": [
|
|
1394
|
+
{
|
|
1395
|
+
"match": "\\b(print settings)\\b",
|
|
1396
|
+
"name": "support.class.textmate.applescript"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"match": "\\b(get url|insert|reload bundles)\\b",
|
|
1400
|
+
"name": "support.function.textmate.applescript"
|
|
1401
|
+
}
|
|
1402
|
+
]
|
|
1403
|
+
}
|
|
1404
|
+
},
|
|
1405
|
+
"scopeName": "source.applescript"
|
|
1406
|
+
}
|