code_rippa 0.0.7 → 1.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.
- checksums.yaml +7 -0
- data/Gemfile.lock +36 -0
- data/LICENSE +2 -2
- data/README.md +18 -1
- data/bin/code_rippa +15 -16
- data/code_rippa.gemspec +12 -10
- data/lib/code_rippa.rb +69 -51
- data/lib/code_rippa/syntax/actionscript.syntax +52 -52
- data/lib/code_rippa/syntax/active4d.syntax +226 -180
- data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
- data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
- data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
- data/lib/code_rippa/syntax/ada.syntax +19 -18
- data/lib/code_rippa/syntax/antlr.syntax +85 -85
- data/lib/code_rippa/syntax/apache.syntax +103 -109
- data/lib/code_rippa/syntax/applescript.syntax +244 -229
- data/lib/code_rippa/syntax/asp.syntax +41 -36
- data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
- data/lib/code_rippa/syntax/bibtex.syntax +88 -90
- data/lib/code_rippa/syntax/blog_html.syntax +17 -29
- data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
- data/lib/code_rippa/syntax/blog_text.syntax +15 -15
- data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
- data/lib/code_rippa/syntax/build.syntax +27 -27
- data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
- data/lib/code_rippa/syntax/c.syntax +31 -34
- data/lib/code_rippa/syntax/cake.syntax +27 -27
- data/lib/code_rippa/syntax/camlp4.syntax +23 -23
- data/lib/code_rippa/syntax/cm.syntax +19 -18
- data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
- data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
- data/lib/code_rippa/syntax/context_free.syntax +106 -106
- data/lib/code_rippa/syntax/cs.syntax +31 -34
- data/lib/code_rippa/syntax/css.syntax +112 -112
- data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
- data/lib/code_rippa/syntax/csv.syntax +40 -44
- data/lib/code_rippa/syntax/d.syntax +80 -84
- data/lib/code_rippa/syntax/diff.syntax +46 -45
- data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
- data/lib/code_rippa/syntax/dot.syntax +26 -26
- data/lib/code_rippa/syntax/doxygen.syntax +26 -26
- data/lib/code_rippa/syntax/dylan.syntax +35 -35
- data/lib/code_rippa/syntax/eiffel.syntax +39 -42
- data/lib/code_rippa/syntax/erlang.syntax +514 -511
- data/lib/code_rippa/syntax/f-script.syntax +44 -44
- data/lib/code_rippa/syntax/fortran.syntax +80 -76
- data/lib/code_rippa/syntax/fxscript.syntax +78 -77
- data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
- data/lib/code_rippa/syntax/gri.syntax +47 -47
- data/lib/code_rippa/syntax/groovy.syntax +105 -114
- data/lib/code_rippa/syntax/gtd.syntax +10 -10
- data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
- data/lib/code_rippa/syntax/haml.syntax +50 -50
- data/lib/code_rippa/syntax/haskell.syntax +47 -47
- data/lib/code_rippa/syntax/html-asp.syntax +15 -15
- data/lib/code_rippa/syntax/html_django.syntax +15 -14
- data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
- data/lib/code_rippa/syntax/html_mason.syntax +75 -74
- data/lib/code_rippa/syntax/html_rails.syntax +17 -27
- data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
- data/lib/code_rippa/syntax/icalendar.syntax +15 -15
- data/lib/code_rippa/syntax/inform.syntax +26 -26
- data/lib/code_rippa/syntax/ini.syntax +30 -30
- data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
- data/lib/code_rippa/syntax/io.syntax +49 -46
- data/lib/code_rippa/syntax/java.syntax +117 -126
- data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
- data/lib/code_rippa/syntax/javascript.syntax +141 -141
- data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
- data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
- data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
- data/lib/code_rippa/syntax/json.syntax +39 -39
- data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
- data/lib/code_rippa/syntax/lexflex.syntax +136 -136
- data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
- data/lib/code_rippa/syntax/lilypond.syntax +246 -337
- data/lib/code_rippa/syntax/lisp.syntax +32 -32
- data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
- data/lib/code_rippa/syntax/logo.syntax +13 -14
- data/lib/code_rippa/syntax/logtalk.syntax +81 -81
- data/lib/code_rippa/syntax/lua.syntax +50 -48
- data/lib/code_rippa/syntax/m.syntax +78 -78
- data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
- data/lib/code_rippa/syntax/makefile.syntax +19 -19
- data/lib/code_rippa/syntax/man.syntax +9 -9
- data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
- data/lib/code_rippa/syntax/mips.syntax +34 -34
- data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
- data/lib/code_rippa/syntax/modula-3.syntax +24 -24
- data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
- data/lib/code_rippa/syntax/mootools.syntax +283 -300
- data/lib/code_rippa/syntax/movable_type.syntax +91 -90
- data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
- data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
- data/lib/code_rippa/syntax/objective-c.syntax +134 -138
- data/lib/code_rippa/syntax/ocaml.syntax +455 -453
- data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
- data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
- data/lib/code_rippa/syntax/opengl.syntax +6 -6
- data/lib/code_rippa/syntax/pascal.syntax +43 -42
- data/lib/code_rippa/syntax/perl.syntax +612 -615
- data/lib/code_rippa/syntax/plain_text.syntax +17 -20
- data/lib/code_rippa/syntax/postscript.syntax +71 -69
- data/lib/code_rippa/syntax/processing.syntax +60 -60
- data/lib/code_rippa/syntax/prolog.syntax +17 -20
- data/lib/code_rippa/syntax/property_list.syntax +338 -359
- data/lib/code_rippa/syntax/python.syntax +487 -509
- data/lib/code_rippa/syntax/python_django.syntax +9 -10
- data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
- data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
- data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
- data/lib/code_rippa/syntax/r.syntax +42 -42
- data/lib/code_rippa/syntax/r_console.syntax +7 -8
- data/lib/code_rippa/syntax/ragel.syntax +109 -115
- data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
- data/lib/code_rippa/syntax/regexp.syntax +26 -26
- data/lib/code_rippa/syntax/release_notes.syntax +46 -26
- data/lib/code_rippa/syntax/remind.syntax +146 -146
- data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
- data/lib/code_rippa/syntax/rez.syntax +46 -45
- data/lib/code_rippa/syntax/ruby.syntax +533 -601
- data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
- data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
- data/lib/code_rippa/syntax/s5.syntax +35 -51
- data/lib/code_rippa/syntax/scheme.syntax +162 -260
- data/lib/code_rippa/syntax/scilab.syntax +18 -18
- data/lib/code_rippa/syntax/setext.syntax +82 -82
- data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
- data/lib/code_rippa/syntax/slate.syntax +91 -91
- data/lib/code_rippa/syntax/sql.syntax +137 -139
- data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
- data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
- data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
- data/lib/code_rippa/syntax/strings_file.syntax +20 -23
- data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
- data/lib/code_rippa/syntax/sweave.syntax +45 -45
- data/lib/code_rippa/syntax/swig.syntax +34 -33
- data/lib/code_rippa/syntax/tcl.syntax +87 -86
- data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
- data/lib/code_rippa/syntax/textile.syntax +111 -145
- data/lib/code_rippa/syntax/tsv.syntax +31 -33
- data/lib/code_rippa/syntax/twiki.syntax +141 -141
- data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
- data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
- data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
- data/lib/code_rippa/syntax/xml.syntax +95 -95
- data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
- data/lib/code_rippa/syntax/xsl.syntax +31 -31
- data/lib/code_rippa/syntax/yaml.syntax +86 -86
- data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
- data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
- data/lib/code_rippa/version.rb +2 -2
- data/test/fixtures/hello.rb +5 -3
- data/test/test_private_methods.rb +40 -40
- data/test/test_public_methods.rb +9 -18
- metadata +61 -63
@@ -1,384 +1,399 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: AppleScript
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- applescript
|
5
5
|
- script editor
|
6
6
|
scopeName: source.applescript
|
7
|
-
repository:
|
8
|
-
textmate:
|
9
|
-
patterns:
|
7
|
+
repository:
|
8
|
+
textmate:
|
9
|
+
patterns:
|
10
10
|
- name: support.class.textmate.applescript
|
11
|
-
match:
|
11
|
+
match: "\\b(print settings)\\b"
|
12
12
|
- name: support.function.textmate.applescript
|
13
|
-
match:
|
14
|
-
standard-suite:
|
15
|
-
patterns:
|
13
|
+
match: "\\b(get url|insert|reload bundles)\\b"
|
14
|
+
standard-suite:
|
15
|
+
patterns:
|
16
16
|
- name: support.class.standard-suite.applescript
|
17
|
-
match:
|
17
|
+
match: "\\b(colors?|documents?|items?|windows?)\\b"
|
18
18
|
- name: support.function.standard-suite.applescript
|
19
|
-
match:
|
19
|
+
match: "\\b(close|count|delete|duplicate|exists|make|move|open|print|quit|save|activate|select|data
|
20
|
+
size)\\b"
|
20
21
|
- name: support.constant.standard-suite.applescript
|
21
|
-
match:
|
22
|
+
match: "\\b(name|frontmost|version)\\b"
|
22
23
|
- name: support.variable.standard-suite.applescript
|
23
|
-
match:
|
24
|
+
match: "\\b(selection)\\b"
|
24
25
|
- name: support.class.text-suite.applescript
|
25
|
-
match:
|
26
|
-
tell-blocks:
|
27
|
-
patterns:
|
26
|
+
match: "\\b(attachments?|attribute runs?|characters?|paragraphs?|texts?|words?)\\b"
|
27
|
+
tell-blocks:
|
28
|
+
patterns:
|
28
29
|
- name: meta.tell-block.application.textmate.applescript
|
29
|
-
captures:
|
30
|
-
|
30
|
+
captures:
|
31
|
+
'1':
|
31
32
|
name: keyword.control.applescript
|
32
|
-
begin:
|
33
|
-
end:
|
34
|
-
patterns:
|
33
|
+
begin: "^\\s*(tell)\\s+(?=app(lication)?\\s+\"(?i:textmate)\")(?!.*\\bto\\b)"
|
34
|
+
end: "^\\s*(end tell)"
|
35
|
+
patterns:
|
35
36
|
- include: "#textmate"
|
36
37
|
- include: "#standard-suite"
|
37
|
-
- include: $self
|
38
|
+
- include: "$self"
|
38
39
|
comment: tell Textmate
|
39
40
|
- name: meta.tell-block.application.finder.applescript
|
40
|
-
captures:
|
41
|
-
|
41
|
+
captures:
|
42
|
+
'1':
|
42
43
|
name: keyword.control.applescript
|
43
|
-
begin:
|
44
|
-
end:
|
45
|
-
patterns:
|
44
|
+
begin: "^\\s*(tell)\\s+(?=app(lication)?\\s+\"(?i:finder)\")(?!.*\\bto\\b)"
|
45
|
+
end: "^\\s*(end tell)"
|
46
|
+
patterns:
|
46
47
|
- include: "#finder"
|
47
48
|
- include: "#standard-suite"
|
48
|
-
- include: $self
|
49
|
+
- include: "$self"
|
49
50
|
comment: tell Finder
|
50
51
|
- name: meta.tell-block.application.system-events.applescript
|
51
|
-
captures:
|
52
|
-
|
52
|
+
captures:
|
53
|
+
'1':
|
53
54
|
name: keyword.control.applescript
|
54
|
-
begin:
|
55
|
-
end:
|
56
|
-
patterns:
|
55
|
+
begin: "^\\s*(tell)\\s+(?=app(lication)?\\s+\"(?i:system events)\")(?!.*\\bto\\b)"
|
56
|
+
end: "^\\s*(end tell)"
|
57
|
+
patterns:
|
57
58
|
- include: "#system-events"
|
58
59
|
- include: "#standard-suite"
|
59
|
-
- include: $self
|
60
|
+
- include: "$self"
|
60
61
|
comment: tell System Events
|
61
62
|
- name: meta.tell-block.application.itunes.applescript
|
62
|
-
captures:
|
63
|
-
|
63
|
+
captures:
|
64
|
+
'1':
|
64
65
|
name: keyword.control.applescript
|
65
|
-
begin:
|
66
|
-
end:
|
67
|
-
patterns:
|
66
|
+
begin: "^\\s*(tell)\\s+(?=app(lication)?\\s+\"(?i:itunes)\")(?!.*\\bto\\b)"
|
67
|
+
end: "^\\s*(end tell)"
|
68
|
+
patterns:
|
68
69
|
- include: "#itunes"
|
69
70
|
- include: "#standard-suite"
|
70
|
-
- include: $self
|
71
|
+
- include: "$self"
|
71
72
|
comment: tell iTunes
|
72
73
|
- name: meta.tell-block.application.generic.applescript
|
73
|
-
captures:
|
74
|
-
|
74
|
+
captures:
|
75
|
+
'1':
|
75
76
|
name: keyword.control.applescript
|
76
|
-
begin:
|
77
|
-
end:
|
78
|
-
patterns:
|
77
|
+
begin: "^\\s*(tell)\\s+(?=app(lication)?\\b)(?!.*\\bto\\b)"
|
78
|
+
end: "^\\s*(end tell)"
|
79
|
+
patterns:
|
79
80
|
- include: "#standard-suite"
|
80
|
-
- include: $self
|
81
|
+
- include: "$self"
|
81
82
|
comment: tell generic application
|
82
83
|
- name: meta.tell-block.generic.applescript
|
83
|
-
captures:
|
84
|
-
|
84
|
+
captures:
|
85
|
+
'1':
|
85
86
|
name: keyword.control.applescript
|
86
|
-
begin:
|
87
|
-
end:
|
88
|
-
patterns:
|
89
|
-
- include: $self
|
87
|
+
begin: "^\\s*(tell)\\s+(?!.*\\bto\\b)"
|
88
|
+
end: "^\\s*(end tell)"
|
89
|
+
patterns:
|
90
|
+
- include: "$self"
|
90
91
|
comment: generic tell block
|
91
|
-
comments:
|
92
|
-
patterns:
|
92
|
+
comments:
|
93
|
+
patterns:
|
93
94
|
- name: comment.line.double-dash.applescript
|
94
|
-
captures:
|
95
|
-
|
95
|
+
captures:
|
96
|
+
'1':
|
96
97
|
name: punctuation.definition.comment.applescript
|
97
|
-
match: (--)
|
98
|
+
match: "(--).*$\\n?"
|
98
99
|
- name: comment.block.applescript
|
99
|
-
captures:
|
100
|
-
|
100
|
+
captures:
|
101
|
+
'0':
|
101
102
|
name: punctuation.definition.comment.applescript
|
102
|
-
begin:
|
103
|
-
end:
|
104
|
-
inline:
|
105
|
-
patterns:
|
103
|
+
begin: "\\(\\*"
|
104
|
+
end: "\\*\\)"
|
105
|
+
inline:
|
106
|
+
patterns:
|
106
107
|
- include: "#comments"
|
107
108
|
- include: "#data-structures"
|
108
109
|
- include: "#built-in"
|
109
110
|
- include: "#standardadditions"
|
110
|
-
data-structures:
|
111
|
-
patterns:
|
111
|
+
data-structures:
|
112
|
+
patterns:
|
112
113
|
- name: meta.data.array.applescript
|
113
|
-
captures:
|
114
|
-
|
114
|
+
captures:
|
115
|
+
'1':
|
115
116
|
name: punctuation.section.array.applescript
|
116
|
-
begin: (
|
117
|
-
end: (
|
118
|
-
patterns:
|
119
|
-
- captures:
|
120
|
-
|
117
|
+
begin: "(\\{)"
|
118
|
+
end: "(\\})"
|
119
|
+
patterns:
|
120
|
+
- captures:
|
121
|
+
'1':
|
121
122
|
name: constant.other.key.applescript
|
122
|
-
|
123
|
+
'2':
|
123
124
|
name: meta.identifier.applescript
|
124
|
-
|
125
|
+
'3':
|
125
126
|
name: punctuation.definition.identifier.applescript
|
126
|
-
|
127
|
+
'4':
|
127
128
|
name: punctuation.definition.identifier.applescript
|
128
|
-
|
129
|
+
'5':
|
129
130
|
name: punctuation.separator.key-value.applescript
|
130
|
-
match: ([A-Za-z]+|((
|
131
|
+
match: "([A-Za-z]+|((\\|)[^|\\n]*(\\|)))\\s*(:)"
|
131
132
|
- name: punctuation.separator.key-value.applescript
|
132
133
|
match: ":"
|
133
134
|
- name: punctuation.separator.array.applescript
|
134
135
|
match: ","
|
135
136
|
- include: "#inline"
|
136
|
-
comment: "\n\
|
137
|
-
\t\t\t\t\t
|
138
|
-
\t\t\t\t\t\t\"arrays\", and so this could be either\n\
|
139
|
-
\t\t\t\t\t"
|
137
|
+
comment: "\n\t\t\t\t\t\twe cannot necessarily distinguish \"records\" from\n\t\t\t\t\t\t\"arrays\",
|
138
|
+
and so this could be either\n\t\t\t\t\t"
|
140
139
|
- name: string.quoted.double.application-name.applescript
|
141
|
-
captures:
|
142
|
-
|
140
|
+
captures:
|
141
|
+
'1':
|
143
142
|
name: punctuation.definition.string.applescript
|
144
|
-
begin: ((?<=application )"|(?<=app )")
|
145
|
-
end: (")
|
146
|
-
patterns:
|
143
|
+
begin: "((?<=application )\"|(?<=app )\")"
|
144
|
+
end: "(\")"
|
145
|
+
patterns:
|
147
146
|
- name: constant.character.escape.applescript
|
148
|
-
match:
|
147
|
+
match: "\\\\."
|
149
148
|
- name: string.quoted.double.applescript
|
150
|
-
captures:
|
151
|
-
|
149
|
+
captures:
|
150
|
+
'1':
|
152
151
|
name: punctuation.definition.string.applescript
|
153
|
-
begin: (")
|
154
|
-
end: (")
|
155
|
-
patterns:
|
152
|
+
begin: "(\")"
|
153
|
+
end: "(\")"
|
154
|
+
patterns:
|
156
155
|
- name: constant.character.escape.applescript
|
157
|
-
match:
|
156
|
+
match: "\\\\."
|
158
157
|
- name: meta.identifier.applescript
|
159
|
-
captures:
|
160
|
-
|
158
|
+
captures:
|
159
|
+
'1':
|
161
160
|
name: punctuation.definition.identifier.applescript
|
162
|
-
|
161
|
+
'2':
|
163
162
|
name: punctuation.definition.identifier.applescript
|
164
|
-
match: (
|
163
|
+
match: "(\\|)[^|\\n]*(\\|)"
|
165
164
|
- name: meta.data.applescript
|
166
|
-
captures:
|
167
|
-
|
165
|
+
captures:
|
166
|
+
'6':
|
168
167
|
name: keyword.operator.applescript
|
169
|
-
|
168
|
+
'7':
|
170
169
|
name: support.class.built-in.applescript
|
171
|
-
|
170
|
+
'1':
|
172
171
|
name: punctuation.definition.data.applescript
|
173
|
-
|
172
|
+
'2':
|
174
173
|
name: support.class.built-in.applescript
|
175
|
-
|
174
|
+
'3':
|
176
175
|
name: storage.type.utxt.applescript
|
177
|
-
|
176
|
+
'4':
|
178
177
|
name: string.unquoted.data.applescript
|
179
|
-
|
178
|
+
'5':
|
180
179
|
name: punctuation.definition.data.applescript
|
181
|
-
match: "(
|
182
|
-
system-events:
|
183
|
-
patterns:
|
180
|
+
match: "(«)(data) (utxt|utf8)([0-9A-Fa-f]*)(»)(?: (as) (Unicode text))?"
|
181
|
+
system-events:
|
182
|
+
patterns:
|
184
183
|
- name: support.class.system-events.audio-file.applescript
|
185
|
-
match:
|
184
|
+
match: "\\b(audio (data|file))\\b"
|
186
185
|
- name: support.class.system-events.disk-folder-file.applescript
|
187
|
-
match:
|
186
|
+
match: "\\b(alias(es)?|(Classic|local|network|system|user) domain objects?|disk(
|
187
|
+
item)?s?|domains?|file( package)?s?|folders?|items?)\\b"
|
188
188
|
- name: support.function.system-events.disk-folder-file.applescript
|
189
|
-
match:
|
189
|
+
match: "\\b(delete|open|move)\\b"
|
190
190
|
- name: support.class.system-events.folder-actions.applescript
|
191
|
-
match:
|
191
|
+
match: "\\b(folder actions?|scripts?)\\b"
|
192
192
|
- name: support.function.system-events.folder-actions.applescript
|
193
|
-
match:
|
193
|
+
match: "\\b(attach action to|attached scripts|edit action of|remove action from)\\b"
|
194
194
|
- name: support.class.system-events.movie-file.applescript
|
195
|
-
match:
|
195
|
+
match: "\\b(movie data|movie file)\\b"
|
196
196
|
- name: support.function.system-events.power.applescript
|
197
|
-
match:
|
197
|
+
match: "\\b(log out|restart|shut down|sleep)\\b"
|
198
198
|
- name: support.class.system-events.processes.applescript
|
199
|
-
match:
|
199
|
+
match: "\\b(((application |desk accessory )?process|(check|combo )?box)(es)?|(action|attribute|browser|(busy|progress|relevance)
|
200
|
+
indicator|color well|column|drawer|group|grow area|image|incrementor|list|menu(
|
201
|
+
bar)?( item)?|(menu |pop up |radio )?button|outline|(radio|tab|splitter) group|row|scroll
|
202
|
+
(area|bar)|sheet|slider|splitter|static text|table|text (area|field)|tool
|
203
|
+
bar|UI element|window)s?)\\b"
|
200
204
|
- name: support.function.system-events.processes.applescript
|
201
|
-
match:
|
205
|
+
match: "\\b(click|key code|keystroke|perform|select)\\b"
|
202
206
|
- name: support.class.system-events.property-list.applescript
|
203
|
-
match:
|
207
|
+
match: "\\b(property list (file|item))\\b"
|
204
208
|
- name: support.class.system-events.quicktime-file.applescript
|
205
|
-
match:
|
209
|
+
match: "\\b(annotation|QuickTime (data|file)|track)s?\\b"
|
206
210
|
- name: support.function.system-events.system-events.applescript
|
207
|
-
match:
|
211
|
+
match: "\\b((abort|begin|end) transaction)\\b"
|
208
212
|
- name: support.class.system-events.xml.applescript
|
209
|
-
match:
|
213
|
+
match: "\\b(XML (attribute|data|element|file)s?)\\b"
|
210
214
|
- name: support.class.sytem-events.other.applescript
|
211
|
-
match:
|
212
|
-
itunes:
|
213
|
-
patterns:
|
215
|
+
match: "\\b(print settings|users?|login items?)\\b"
|
216
|
+
itunes:
|
217
|
+
patterns:
|
214
218
|
- name: support.class.itunes.applescript
|
215
|
-
match:
|
219
|
+
match: "\\b(artwork|application|encoder|EQ preset|item|source|visual|(EQ |browser
|
220
|
+
)?window|((audio CD|device|shared|URL|file) )?track|playlist window|((audio
|
221
|
+
CD|device|radio tuner|library|folder|user) )?playlist)s?\\b"
|
216
222
|
- name: support.function.itunes.applescript
|
217
|
-
match:
|
223
|
+
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"
|
218
224
|
- name: support.constant.itunes.applescript
|
219
|
-
match:
|
225
|
+
match: "\\b(current (playlist|stream (title|URL)|track)|player state)\\b"
|
220
226
|
- name: support.variable.itunes.applescript
|
221
|
-
match:
|
222
|
-
|
223
|
-
|
227
|
+
match: "\\b(current (encoder|EQ preset|visual)|EQ enabled|fixed indexing|full
|
228
|
+
screen|mute|player position|sound volume|visuals enabled|visual size)\\b"
|
229
|
+
standardadditions:
|
230
|
+
patterns:
|
224
231
|
- name: support.class.standardadditions.user-interaction.applescript
|
225
|
-
match:
|
232
|
+
match: "\\b((alert|dialog) reply)\\b"
|
226
233
|
- name: support.class.standardadditions.file.applescript
|
227
|
-
match:
|
234
|
+
match: "\\b(file information)\\b"
|
228
235
|
- name: support.class.standardadditions.miscellaneous.applescript
|
229
|
-
match:
|
236
|
+
match: "\\b(POSIX files?|system information|volume settings)\\b"
|
230
237
|
- name: support.class.standardadditions.internet.applescript
|
231
|
-
match:
|
238
|
+
match: "\\b(URLs?|internet address(es)?|web pages?|FTP items?)\\b"
|
232
239
|
- name: support.function.standardadditions.file.applescript
|
233
|
-
match:
|
240
|
+
match: "\\b(info for|list (disks|folder)|mount volume|path to( resource)?)\\b"
|
234
241
|
- name: support.function.standardadditions.user-interaction.applescript
|
235
|
-
match:
|
242
|
+
match: "\\b(beep|choose (application|color|file( name)?|folder|from list|remote
|
243
|
+
application|URL)|delay|display (alert|dialog)|say)\\b"
|
236
244
|
- name: support.function.standardadditions.string.applescript
|
237
|
-
match:
|
245
|
+
match: "\\b(ASCII (character|number)|localized string|offset|summarize)\\b"
|
238
246
|
- name: support.function.standardadditions.clipboard.applescript
|
239
|
-
match:
|
247
|
+
match: "\\b(set the clipboard to|the clipboard|clipboard info)\\b"
|
240
248
|
- name: support.function.standardadditions.file-i-o.applescript
|
241
|
-
match:
|
249
|
+
match: "\\b(open for access|close access|read|write|get eof|set eof)\\b"
|
242
250
|
- name: support.function.standardadditions.scripting.applescript
|
243
|
-
match:
|
251
|
+
match: "\\b((load|store|run) script|scripting components)\\b"
|
244
252
|
- name: support.function.standardadditions.miscellaneous.applescript
|
245
|
-
match:
|
253
|
+
match: "\\b(current date|do shell script|get volume settings|random number|round|set
|
254
|
+
volume|system attribute|system info|time to GMT)\\b"
|
246
255
|
- name: support.function.standardadditions.folder-actions.applescript
|
247
|
-
match:
|
256
|
+
match: "\\b(opening folder|(closing|moving) folder window for|adding folder
|
257
|
+
items to|removing folder items from)\\b"
|
248
258
|
- name: support.function.standardadditions.internet.applescript
|
249
|
-
match:
|
250
|
-
built-in:
|
251
|
-
patterns:
|
259
|
+
match: "\\b(open location|handle CGI request)\\b"
|
260
|
+
built-in:
|
261
|
+
patterns:
|
252
262
|
- name: punctuation.separator.continuation.line.applescript
|
253
|
-
match: !binary
|
263
|
+
match: !binary |-
|
254
264
|
wqw=
|
255
|
-
|
256
265
|
- name: keyword.operator.applescript
|
257
|
-
match: "\\b((a )?(ref( to)|reference to)|(does not|doesn't) (come (before|after)|contain|equal)|(start|begin)s?
|
258
|
-
|
259
|
-
"
|
266
|
+
match: "\\b((a )?(ref( to)|reference to)|(does not|doesn't) (come (before|after)|contain|equal)|(start|begin)s?
|
267
|
+
with|comes (before|after)|is(n't| not)?( (in|contained by|(less than|greater
|
268
|
+
than)( or equal( to)?)?|equal( to)?))?|ends? with|contains?|equals?|than|and|div|mod|not|or|as)\\b|(≠|≥|≤|>=|<=|÷|&|=|>|<|\\*|\\+|-|/|\\^)"
|
269
|
+
- captures:
|
270
|
+
'1':
|
260
271
|
name: keyword.control.applescript
|
261
|
-
match: (?<=^|then|to)
|
262
|
-
comment: make sure that "return", "property", and other keywords are not preceded
|
272
|
+
match: "(?<=^|then|to)\\s*\\b(return|prop(erty)?)\\b"
|
273
|
+
comment: make sure that "return", "property", and other keywords are not preceded
|
274
|
+
by something else, to disambiguate
|
263
275
|
- name: punctuation.separator.key-value.property.applescript
|
264
276
|
match: ":"
|
265
|
-
comment:
|
277
|
+
comment: 'the : in property assignments'
|
266
278
|
- name: punctuation.section.group.applescript
|
267
279
|
match: "[()]"
|
268
280
|
comment: the parentheses in groups
|
269
281
|
- name: keyword.control.applescript
|
270
|
-
match:
|
282
|
+
match: "\\b(on error|try|to|on|tell|if|then|else if|else|repeat( (while|until|with))?|using
|
283
|
+
terms from|from|through|thru|with timeout|times|end (tell|repeat|if|timeout|using
|
284
|
+
terms from|error|try)|end|my|where|whose|considering|ignoring|global|local|exit|continue|returning|set|copy|put)\\b"
|
271
285
|
- name: keyword.control.reference.applescript
|
272
|
-
match:
|
286
|
+
match: "\\b(every|some|index|named|from|to|through|thru|before|(in )?front of|after
|
287
|
+
receiving|after|(in )?back of|beginning of|end of|in|of|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|\\d+(st|nd|rd|th)|last|front|back|middle)\\b"
|
273
288
|
- name: constant.other.text-styles.applescript
|
274
|
-
match:
|
289
|
+
match: "\\b(all (caps|lowercase)|bold|condensed|expanded|hidden|italic|outline|plain|shadow|small
|
290
|
+
caps|strikethrough|(sub|super)script|underline)\\b"
|
275
291
|
- name: constant.language.boolean.applescript
|
276
|
-
match:
|
277
|
-
comment:
|
292
|
+
match: "\\b(?i:true|false|yes|no)\\b"
|
293
|
+
comment: yes/no can’t always be used as booleans, e.g. in an if() expression.
|
294
|
+
But they work e.g. for boolean arguments.
|
278
295
|
- name: constant.language.null.applescript
|
279
|
-
match:
|
296
|
+
match: "\\b(null)\\b"
|
280
297
|
- name: constant.other.date-time.applescript
|
281
|
-
match:
|
298
|
+
match: "\\b(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sep(tember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?|weekdays?|Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday)\\b"
|
282
299
|
- name: constant.other.considering-ignoring-attributes.applescript
|
283
|
-
match:
|
300
|
+
match: "\\b(?<=considering|ignoring) (application responses|current application|case|diacriticals|expansion|hyphens|punctuation|white
|
301
|
+
space)\\b"
|
284
302
|
comment: these are used in considering/ignoring statements
|
285
303
|
- name: constant.other.characters.applescript
|
286
|
-
match:
|
304
|
+
match: "\\b(space|return|tab)\\b"
|
287
305
|
- name: constant.other.miscellaneous.applescript
|
288
|
-
match:
|
306
|
+
match: "\\b(current application|it|me|version|result|pi|AppleScript)\\b"
|
289
307
|
- name: variable.language.applescript
|
290
|
-
match:
|
308
|
+
match: "\\b(text item delimiters|print length|print depth)\\b"
|
291
309
|
- name: support.function.built-in.applescript
|
292
|
-
match:
|
310
|
+
match: "\\b(count (each|every)|number of|error|get|run)\\b"
|
293
311
|
- name: support.class.built-in.applescript
|
294
|
-
match:
|
312
|
+
match: "\\b(booleans?|integers?|reals?|numbers?|(linked )?lists?|vectors?|records?|items?|scripts?|events?|propert(y|ies)|constants?|prepositions?|reference
|
313
|
+
forms?|handlers?|data|characters?|writing code( infos?)?|missing values?|references?|anything|missing
|
314
|
+
value|upper case|app(lications?)?|text items?|((international|styled( Clipboard|Unicode)?|Unicode)
|
315
|
+
)?text|(C | encoded| Pascal )?strings?|(type )?class(es)?|RGB colors?|pictures?|sounds?|versions?|file
|
316
|
+
specifications?|alias(es)?|machines?|zones?|keystrokes?|seconds|dates?|months?|(cubic
|
317
|
+
|square |cubic centi|square kilo|centi|kilo)met(er|re)s|(square |cubic )?(yards|feet)|(square
|
318
|
+
)?miles|(cubic )?inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees
|
319
|
+
(Celsius|Fahrenheit|Kelvin))\\b"
|
295
320
|
- name: constant.numeric.applescript
|
296
|
-
match:
|
297
|
-
finder:
|
298
|
-
patterns:
|
321
|
+
match: "\\b\\d+((\\.(\\d+\\b)?)?(?i:e\\+?\\d*\\b)?|\\b)"
|
322
|
+
finder:
|
323
|
+
patterns:
|
299
324
|
- name: support.class.finder.items.applescript
|
300
|
-
match:
|
325
|
+
match: "\\b(item|container|(computer|disk|trash)-object|disk|folder|((alias|application|document|internet
|
326
|
+
location) )?file|clipping|package)s?\\b"
|
301
327
|
- name: support.class.finder.window-classes.applescript
|
302
|
-
match:
|
328
|
+
match: "\\b((Finder|desktop|information|preferences|clipping) )windows?\\b"
|
303
329
|
- name: support.class.finder.type-definitions.applescript
|
304
|
-
match:
|
330
|
+
match: "\\b(preferences|(icon|column|list) view options|(label|column|alias
|
331
|
+
list)s?)\\b"
|
305
332
|
- name: support.function.finder.items.applescript
|
306
|
-
match:
|
333
|
+
match: "\\b(copy|find|sort|clean up|eject|empty( trash)|erase|reveal|update)\\b"
|
307
334
|
- name: support.constant.finder.applescript
|
308
|
-
match:
|
335
|
+
match: "\\b(insertion location|product version|startup disk|desktop|trash|home|computer
|
336
|
+
container|finder preferences)\\b"
|
309
337
|
- name: support.variable.finder.applescript
|
310
|
-
match:
|
311
|
-
blocks:
|
312
|
-
patterns:
|
338
|
+
match: "\\b(visible)\\b"
|
339
|
+
blocks:
|
340
|
+
patterns:
|
313
341
|
- name: meta.script.applescript
|
314
|
-
captures:
|
315
|
-
|
342
|
+
captures:
|
343
|
+
'1':
|
316
344
|
name: keyword.control.script.applescript
|
317
|
-
|
345
|
+
'2':
|
318
346
|
name: entity.name.type.script-object.applescript
|
319
|
-
begin:
|
320
|
-
end:
|
321
|
-
patterns:
|
322
|
-
- include: $self
|
347
|
+
begin: "^\\s*(script)\\s+(\\w+)"
|
348
|
+
end: "^\\s*(end script)"
|
349
|
+
patterns:
|
350
|
+
- include: "$self"
|
323
351
|
- name: meta.function.with-parentheses.applescript
|
324
|
-
captures:
|
325
|
-
|
352
|
+
captures:
|
353
|
+
'1':
|
326
354
|
name: keyword.control.on.applescript
|
327
|
-
|
355
|
+
'2':
|
328
356
|
name: entity.name.function.handler.applescript
|
329
|
-
|
357
|
+
'3':
|
330
358
|
name: punctuation.definition.parameters.applescript
|
331
|
-
|
359
|
+
'4':
|
332
360
|
name: variable.parameter.handler.applescript
|
333
|
-
|
361
|
+
'5':
|
334
362
|
name: punctuation.definition.parameters.applescript
|
335
|
-
begin: "^(?x)\n\
|
336
|
-
\t\t\t\t\t\t\\
|
337
|
-
\t\t\t\t\t\t(
|
338
|
-
\t\t\t\t\t\t(\\()\t\t\t\t\t\t\t# opening paren\n\
|
339
|
-
\t\t\t\t\t\t\t(?:(\\w+(?:\\s*,\\s*\\w+)*))?\t# parameters\n\
|
340
|
-
\t\t\t\t\t\t(\\))\t\t\t\t\t\t\t# closing paren\n\
|
341
|
-
\t\t\t\t\t"
|
363
|
+
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([A-Za-z][A-Za-z0-9_]*)\t\t\t#
|
364
|
+
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(?:(\\w+(?:\\s*,\\s*\\w+)*))?\t#
|
365
|
+
parameters\n\t\t\t\t\t\t(\\))\t\t\t\t\t\t\t# closing paren\n\t\t\t\t\t"
|
342
366
|
end: "^\\s*(end)(?: (\\2))?\\s*$"
|
343
|
-
patterns:
|
344
|
-
- include: $self
|
345
|
-
comment: "\n\
|
346
|
-
\t\t\t\t\t
|
347
|
-
\t\t\t\t\t\twe can leave it like this though, as it sorta works.\n\
|
348
|
-
\t\t\t\t\t"
|
367
|
+
patterns:
|
368
|
+
- include: "$self"
|
369
|
+
comment: "\n\t\t\t\t\t\tThis is not a very well-designed rule. For now,\n\t\t\t\t\t\twe
|
370
|
+
can leave it like this though, as it sorta works.\n\t\t\t\t\t"
|
349
371
|
- name: meta.function.prepositional.applescript
|
350
|
-
captures:
|
351
|
-
|
372
|
+
captures:
|
373
|
+
'1':
|
352
374
|
name: keyword.control.on.applescript
|
353
|
-
|
375
|
+
'2':
|
354
376
|
name: entity.name.function.handler.applescript
|
355
|
-
begin:
|
377
|
+
begin: "^\\s*(on)\\s+(\\w+)(?=\\s+(above|against|apart from|around|aside from|at|below|beneath|beside|between|by|for|from|instead
|
378
|
+
of|into|on|onto|out of|over|thru|under)\\s+)"
|
356
379
|
end: "^\\s*(end)(?: (\\2))?\\s*$"
|
357
|
-
patterns:
|
358
|
-
- captures:
|
359
|
-
|
380
|
+
patterns:
|
381
|
+
- captures:
|
382
|
+
'1':
|
360
383
|
name: keyword.control.preposition.applescript
|
361
|
-
|
384
|
+
'2':
|
362
385
|
name: variable.parameter.handler.applescript
|
363
|
-
match:
|
364
|
-
|
386
|
+
match: "\\b(above|against|apart from|around|aside from|at|below|beneath|beside|between|by|for|from|instead
|
387
|
+
of|into|on|onto|out of|over|thru|under)\\s+(\\w+)\\b"
|
388
|
+
- include: "$self"
|
365
389
|
- include: "#tell-blocks"
|
366
390
|
uuid: 777CF925-14B9-428E-B07B-17FAAB8FA27E
|
367
|
-
foldingStartMarker: "(?x)\n\
|
368
|
-
\t\t
|
369
|
-
\t\t
|
370
|
-
\t\t|
|
371
|
-
|
372
|
-
\t\t|repeat\\b .*\n\
|
373
|
-
\t\t|( on | to )\\b (?!\\s+ error) .*\n\
|
374
|
-
\t\t|try\n\
|
375
|
-
\t\t|with \\s+ timeout .*\n\
|
376
|
-
\t\t|script\\b .*\n\
|
377
|
-
\t\t|( considering | ignoring )\\b .*\n\
|
378
|
-
\t\t)\\s*$\n\
|
379
|
-
\t"
|
380
|
-
patterns:
|
391
|
+
foldingStartMarker: "(?x)\n\t\t^\\s*\n\t\t(tell \\s+ (?! .* \\bto\\b) .*\n\t\t|using
|
392
|
+
\\s+ terms \\s+ from \\s+ .*\n\t\t|if\\b .* \\bthen\\b .*\n\t\t|repeat\\b .*\n\t\t|(
|
393
|
+
on | to )\\b (?!\\s+ error) .*\n\t\t|try\n\t\t|with \\s+ timeout .*\n\t\t|script\\b
|
394
|
+
.*\n\t\t|( considering | ignoring )\\b .*\n\t\t)\\s*$\n\t"
|
395
|
+
patterns:
|
381
396
|
- include: "#blocks"
|
382
397
|
- include: "#inline"
|
383
|
-
foldingStopMarker:
|
384
|
-
keyEquivalent: ^~A
|
398
|
+
foldingStopMarker: "^\\s*end\\b.*$"
|
399
|
+
keyEquivalent: "^~A"
|