ultraviolet1x 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +16 -0
- data/History.txt +25 -0
- data/README.rdoc +29 -0
- data/README.txt +52 -0
- data/Rakefile +11 -0
- data/bin/theme2latexrender +122 -0
- data/bin/theme2xhtmlrender +156 -0
- data/bin/uv +140 -0
- data/broken_syntax/markdown.syntax +543 -0
- data/broken_syntax/php.syntax +1253 -0
- data/lib/uv/render_processor.rb +140 -0
- data/lib/uv/utility.rb +67 -0
- data/lib/uv/version.rb +3 -0
- data/lib/uv.rb +95 -0
- data/mm/manual.mm +840 -0
- data/render/latex/active4d.render +132 -0
- data/render/latex/all_hallows_eve.render +96 -0
- data/render/latex/amy.render +171 -0
- data/render/latex/blackboard.render +111 -0
- data/render/latex/brilliance_black.render +552 -0
- data/render/latex/brilliance_dull.render +561 -0
- data/render/latex/cobalt.render +162 -0
- data/render/latex/dawn.render +126 -0
- data/render/latex/eiffel.render +132 -0
- data/render/latex/espresso_libre.render +123 -0
- data/render/latex/idle.render +93 -0
- data/render/latex/iplastic.render +99 -0
- data/render/latex/lazy.render +96 -0
- data/render/latex/mac_classic.render +135 -0
- data/render/latex/magicwb_amiga.render +117 -0
- data/render/latex/pastels_on_dark.render +204 -0
- data/render/latex/slush_poppies.render +123 -0
- data/render/latex/spacecadet.render +81 -0
- data/render/latex/sunburst.render +186 -0
- data/render/latex/twilight.render +153 -0
- data/render/latex/zenburnesque.render +126 -0
- data/render/old/txt2tags.render +131 -0
- data/render/xhtml/active4d.render +140 -0
- data/render/xhtml/all_hallows_eve.render +104 -0
- data/render/xhtml/amy.render +179 -0
- data/render/xhtml/blackboard.render +119 -0
- data/render/xhtml/brilliance_black.render +560 -0
- data/render/xhtml/brilliance_dull.render +569 -0
- data/render/xhtml/cobalt.render +170 -0
- data/render/xhtml/dawn.render +134 -0
- data/render/xhtml/eiffel.render +140 -0
- data/render/xhtml/espresso_libre.render +131 -0
- data/render/xhtml/files/css/active4d.css +114 -0
- data/render/xhtml/files/css/all_hallows_eve.css +72 -0
- data/render/xhtml/files/css/amy.css +147 -0
- data/render/xhtml/files/css/blackboard.css +88 -0
- data/render/xhtml/files/css/brilliance_black.css +605 -0
- data/render/xhtml/files/css/brilliance_dull.css +599 -0
- data/render/xhtml/files/css/cobalt.css +149 -0
- data/render/xhtml/files/css/dawn.css +121 -0
- data/render/xhtml/files/css/eiffel.css +121 -0
- data/render/xhtml/files/css/espresso_libre.css +109 -0
- data/render/xhtml/files/css/idle.css +62 -0
- data/render/xhtml/files/css/iplastic.css +80 -0
- data/render/xhtml/files/css/lazy.css +73 -0
- data/render/xhtml/files/css/mac_classic.css +123 -0
- data/render/xhtml/files/css/magicwb_amiga.css +104 -0
- data/render/xhtml/files/css/pastels_on_dark.css +188 -0
- data/render/xhtml/files/css/slush_poppies.css +85 -0
- data/render/xhtml/files/css/spacecadet.css +51 -0
- data/render/xhtml/files/css/sunburst.css +180 -0
- data/render/xhtml/files/css/twilight.css +137 -0
- data/render/xhtml/files/css/zenburnesque.css +91 -0
- data/render/xhtml/idle.render +101 -0
- data/render/xhtml/iplastic.render +107 -0
- data/render/xhtml/lazy.render +104 -0
- data/render/xhtml/mac_classic.render +143 -0
- data/render/xhtml/magicwb_amiga.render +125 -0
- data/render/xhtml/pastels_on_dark.render +212 -0
- data/render/xhtml/slush_poppies.render +131 -0
- data/render/xhtml/spacecadet.render +89 -0
- data/render/xhtml/sunburst.render +194 -0
- data/render/xhtml/twilight.render +161 -0
- data/render/xhtml/zenburnesque.render +134 -0
- data/syntax/actionscript.syntax +97 -0
- data/syntax/active4d.syntax +276 -0
- data/syntax/active4d_html.syntax +311 -0
- data/syntax/active4d_ini.syntax +50 -0
- data/syntax/active4d_library.syntax +21 -0
- data/syntax/ada.syntax +33 -0
- data/syntax/antlr.syntax +151 -0
- data/syntax/apache.syntax +191 -0
- data/syntax/applescript.syntax +384 -0
- data/syntax/asp.syntax +70 -0
- data/syntax/asp_vb.net.syntax +129 -0
- data/syntax/bibtex.syntax +151 -0
- data/syntax/blog_html.syntax +41 -0
- data/syntax/blog_markdown.syntax +42 -0
- data/syntax/blog_text.syntax +27 -0
- data/syntax/blog_textile.syntax +27 -0
- data/syntax/buggy/nemerle.syntax +74 -0
- data/syntax/build.syntax +53 -0
- data/syntax/bulletin_board.syntax +287 -0
- data/syntax/c++.syntax +186 -0
- data/syntax/c.syntax +414 -0
- data/syntax/cake.syntax +55 -0
- data/syntax/camlp4.syntax +36 -0
- data/syntax/cm.syntax +32 -0
- data/syntax/coffeescript.syntax +216 -0
- data/syntax/coldfusion.syntax +119 -0
- data/syntax/context_free.syntax +176 -0
- data/syntax/cs.syntax +59 -0
- data/syntax/css.syntax +195 -0
- data/syntax/css_experimental.syntax +1925 -0
- data/syntax/csv.syntax +68 -0
- data/syntax/d.syntax +142 -0
- data/syntax/diff.syntax +81 -0
- data/syntax/dokuwiki.syntax +204 -0
- data/syntax/dot.syntax +47 -0
- data/syntax/doxygen.syntax +43 -0
- data/syntax/dylan.syntax +62 -0
- data/syntax/eiffel.syntax +78 -0
- data/syntax/erlang.syntax +922 -0
- data/syntax/f-script.syntax +80 -0
- data/syntax/fortran.syntax +141 -0
- data/syntax/fxscript.syntax +142 -0
- data/syntax/greasemonkey.syntax +34 -0
- data/syntax/gri.syntax +83 -0
- data/syntax/groovy.syntax +191 -0
- data/syntax/gtd.syntax +22 -0
- data/syntax/gtdalt.syntax +143 -0
- data/syntax/haml.syntax +88 -0
- data/syntax/haskell.syntax +88 -0
- data/syntax/html-asp.syntax +27 -0
- data/syntax/html.syntax +362 -0
- data/syntax/html_django.syntax +36 -0
- data/syntax/html_for_asp.net.syntax +424 -0
- data/syntax/html_mason.syntax +119 -0
- data/syntax/html_rails.syntax +40 -0
- data/syntax/html_tcl.syntax +26 -0
- data/syntax/icalendar.syntax +32 -0
- data/syntax/inform.syntax +48 -0
- data/syntax/ini.syntax +55 -0
- data/syntax/installer_distribution_script.syntax +77 -0
- data/syntax/io.syntax +81 -0
- data/syntax/java.syntax +211 -0
- data/syntax/javaproperties.syntax +20 -0
- data/syntax/javascript.syntax +256 -0
- data/syntax/javascript_+_prototype.syntax +72 -0
- data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
- data/syntax/jquery_javascript.syntax +114 -0
- data/syntax/json.syntax +136 -0
- data/syntax/languagedefinition.syntax +708 -0
- data/syntax/latex.syntax +566 -0
- data/syntax/latex_beamer.syntax +41 -0
- data/syntax/latex_log.syntax +50 -0
- data/syntax/latex_memoir.syntax +64 -0
- data/syntax/lexflex.syntax +219 -0
- data/syntax/lighttpd.syntax +54 -0
- data/syntax/lilypond.syntax +492 -0
- data/syntax/lisp.syntax +61 -0
- data/syntax/literate_haskell.syntax +24 -0
- data/syntax/logo.syntax +29 -0
- data/syntax/logtalk.syntax +152 -0
- data/syntax/lua.syntax +86 -0
- data/syntax/m.syntax +142 -0
- data/syntax/macports_portfile.syntax +163 -0
- data/syntax/mail.syntax +118 -0
- data/syntax/makefile.syntax +36 -0
- data/syntax/man.syntax +17 -0
- data/syntax/mediawiki.syntax +567 -0
- data/syntax/mel.syntax +92 -0
- data/syntax/mips.syntax +66 -0
- data/syntax/mod_perl.syntax +50 -0
- data/syntax/modula-3.syntax +47 -0
- data/syntax/moinmoin.syntax +189 -0
- data/syntax/mootools.syntax +572 -0
- data/syntax/movable_type.syntax +162 -0
- data/syntax/multimarkdown.syntax +39 -0
- data/syntax/objective-c++.syntax +18 -0
- data/syntax/objective-c.syntax +233 -0
- data/syntax/ocaml.syntax +764 -0
- data/syntax/ocamllex.syntax +167 -0
- data/syntax/ocamlyacc.syntax +184 -0
- data/syntax/old/YAML.yaml +160 -0
- data/syntax/old/txt2tags.yaml +139 -0
- data/syntax/opengl.syntax +14 -0
- data/syntax/pascal.syntax +77 -0
- data/syntax/perl.syntax +1115 -0
- data/syntax/plain_text.syntax +32 -0
- data/syntax/pmwiki.syntax +113 -0
- data/syntax/postscript.syntax +114 -0
- data/syntax/processing.syntax +106 -0
- data/syntax/prolog.syntax +40 -0
- data/syntax/property_list.syntax +635 -0
- data/syntax/python.syntax +868 -0
- data/syntax/python_django.syntax +21 -0
- data/syntax/qmake_project.syntax +114 -0
- data/syntax/qt_c++.syntax +26 -0
- data/syntax/quake3_config.syntax +32 -0
- data/syntax/r.syntax +81 -0
- data/syntax/r_console.syntax +16 -0
- data/syntax/ragel.syntax +201 -0
- data/syntax/rd_r_documentation.syntax +91 -0
- data/syntax/regexp.syntax +50 -0
- data/syntax/regular_expressions_oniguruma.syntax +107 -0
- data/syntax/regular_expressions_python.syntax +109 -0
- data/syntax/release_notes.syntax +46 -0
- data/syntax/remind.syntax +253 -0
- data/syntax/restructuredtext.syntax +250 -0
- data/syntax/rez.syntax +80 -0
- data/syntax/ruby.syntax +1035 -0
- data/syntax/ruby_experimental.syntax +145 -0
- data/syntax/ruby_on_rails.syntax +88 -0
- data/syntax/s5.syntax +69 -0
- data/syntax/sass.syntax +45 -0
- data/syntax/scheme.syntax +347 -0
- data/syntax/scilab.syntax +41 -0
- data/syntax/setext.syntax +147 -0
- data/syntax/shell-unix-generic.syntax +384 -0
- data/syntax/slate.syntax +149 -0
- data/syntax/smarty.syntax +63 -0
- data/syntax/sql.syntax +237 -0
- data/syntax/sql_rails.syntax +18 -0
- data/syntax/ssh-config.syntax +33 -0
- data/syntax/standard_ml.syntax +121 -0
- data/syntax/strings_file.syntax +39 -0
- data/syntax/subversion_commit_message.syntax +36 -0
- data/syntax/sweave.syntax +84 -0
- data/syntax/swig.syntax +57 -0
- data/syntax/tcl.syntax +152 -0
- data/syntax/template_toolkit.syntax +121 -0
- data/syntax/tex.syntax +86 -0
- data/syntax/tex_math.syntax +49 -0
- data/syntax/textile.syntax +215 -0
- data/syntax/tsv.syntax +50 -0
- data/syntax/twiki.syntax +241 -0
- data/syntax/txt2tags.syntax +79 -0
- data/syntax/vectorscript.syntax +57 -0
- data/syntax/xhtml_1.0.syntax +4027 -0
- data/syntax/xml.syntax +180 -0
- data/syntax/xml_strict.syntax +92 -0
- data/syntax/xsl.syntax +60 -0
- data/syntax/yaml.syntax +160 -0
- data/syntax/yui_javascript.syntax +176 -0
- data/test/ultraviolet_test.rb +17 -0
- data/test/uv_test.rb +0 -0
- data/ultraviolet1x.gemspec +22 -0
- metadata +333 -0
data/syntax/perl.syntax
ADDED
@@ -0,0 +1,1115 @@
|
|
1
|
+
---
|
2
|
+
name: Perl
|
3
|
+
fileTypes:
|
4
|
+
- pl
|
5
|
+
- pm
|
6
|
+
- pod
|
7
|
+
- t
|
8
|
+
- PL
|
9
|
+
firstLineMatch: ^#!.*\bperl\b
|
10
|
+
scopeName: source.perl
|
11
|
+
repository:
|
12
|
+
nested_ltgt:
|
13
|
+
captures:
|
14
|
+
"1":
|
15
|
+
name: punctuation.section.scope.perl
|
16
|
+
begin: <
|
17
|
+
end: ">"
|
18
|
+
patterns:
|
19
|
+
- include: "#nested_ltgt"
|
20
|
+
escaped_char:
|
21
|
+
name: constant.character.escape.perl
|
22
|
+
match: \\.
|
23
|
+
nested_brackets:
|
24
|
+
captures:
|
25
|
+
"1":
|
26
|
+
name: punctuation.section.scope.perl
|
27
|
+
begin: \[
|
28
|
+
end: \]
|
29
|
+
patterns:
|
30
|
+
- include: "#escaped_char"
|
31
|
+
- include: "#nested_brackets"
|
32
|
+
nested_braces:
|
33
|
+
captures:
|
34
|
+
"1":
|
35
|
+
name: punctuation.section.scope.perl
|
36
|
+
begin: \{
|
37
|
+
end: \}
|
38
|
+
patterns:
|
39
|
+
- include: "#escaped_char"
|
40
|
+
- include: "#nested_braces"
|
41
|
+
line_comment:
|
42
|
+
patterns:
|
43
|
+
- name: meta.comment.full-line.perl
|
44
|
+
captures:
|
45
|
+
"1":
|
46
|
+
name: comment.line.number-sign.perl
|
47
|
+
"2":
|
48
|
+
name: punctuation.definition.comment.perl
|
49
|
+
match: ^((#).*$\n?)
|
50
|
+
- name: comment.line.number-sign.perl
|
51
|
+
captures:
|
52
|
+
"1":
|
53
|
+
name: punctuation.definition.comment.perl
|
54
|
+
match: (#).*$\n?
|
55
|
+
nested_parens_interpolated:
|
56
|
+
captures:
|
57
|
+
"1":
|
58
|
+
name: punctuation.section.scope.perl
|
59
|
+
begin: \(
|
60
|
+
end: \)
|
61
|
+
patterns:
|
62
|
+
- include: "#escaped_char"
|
63
|
+
- include: "#variable"
|
64
|
+
- include: "#nested_parens_interpolated"
|
65
|
+
nested_parens:
|
66
|
+
captures:
|
67
|
+
"1":
|
68
|
+
name: punctuation.section.scope.perl
|
69
|
+
begin: \(
|
70
|
+
end: \)
|
71
|
+
patterns:
|
72
|
+
- include: "#escaped_char"
|
73
|
+
- include: "#nested_parens"
|
74
|
+
nested_brackets_interpolated:
|
75
|
+
captures:
|
76
|
+
"1":
|
77
|
+
name: punctuation.section.scope.perl
|
78
|
+
begin: \[
|
79
|
+
end: \]
|
80
|
+
patterns:
|
81
|
+
- include: "#escaped_char"
|
82
|
+
- include: "#variable"
|
83
|
+
- include: "#nested_brackets_interpolated"
|
84
|
+
nested_braces_interpolated:
|
85
|
+
captures:
|
86
|
+
"1":
|
87
|
+
name: punctuation.section.scope.perl
|
88
|
+
begin: \{
|
89
|
+
end: \}
|
90
|
+
patterns:
|
91
|
+
- include: "#escaped_char"
|
92
|
+
- include: "#variable"
|
93
|
+
- include: "#nested_braces_interpolated"
|
94
|
+
nested_ltgt_interpolated:
|
95
|
+
captures:
|
96
|
+
"1":
|
97
|
+
name: punctuation.section.scope.perl
|
98
|
+
begin: <
|
99
|
+
end: ">"
|
100
|
+
patterns:
|
101
|
+
- include: "#variable"
|
102
|
+
- include: "#nested_ltgt_interpolated"
|
103
|
+
variable:
|
104
|
+
patterns:
|
105
|
+
- name: variable.other.regexp.match.perl
|
106
|
+
captures:
|
107
|
+
"1":
|
108
|
+
name: punctuation.definition.variable.perl
|
109
|
+
match: (\$)&(?![A-Za-z0-9_])
|
110
|
+
- name: variable.other.regexp.pre-match.perl
|
111
|
+
captures:
|
112
|
+
"1":
|
113
|
+
name: punctuation.definition.variable.perl
|
114
|
+
match: (\$)`(?![A-Za-z0-9_])
|
115
|
+
- name: variable.other.regexp.post-match.perl
|
116
|
+
captures:
|
117
|
+
"1":
|
118
|
+
name: punctuation.definition.variable.perl
|
119
|
+
match: (\$)'(?![A-Za-z0-9_])
|
120
|
+
- name: variable.other.regexp.last-paren-match.perl
|
121
|
+
captures:
|
122
|
+
"1":
|
123
|
+
name: punctuation.definition.variable.perl
|
124
|
+
match: (\$)\+(?![A-Za-z0-9_])
|
125
|
+
- name: variable.other.readwrite.list-separator.perl
|
126
|
+
captures:
|
127
|
+
"1":
|
128
|
+
name: punctuation.definition.variable.perl
|
129
|
+
match: (\$)"(?![A-Za-z0-9_])
|
130
|
+
- name: variable.other.predefined.program-name.perl
|
131
|
+
captures:
|
132
|
+
"1":
|
133
|
+
name: punctuation.definition.variable.perl
|
134
|
+
match: (\$)0(?![A-Za-z0-9_])
|
135
|
+
- name: variable.other.predefined.perl
|
136
|
+
captures:
|
137
|
+
"1":
|
138
|
+
name: punctuation.definition.variable.perl
|
139
|
+
match: (\$)[_ab\*\.\/\|,\\;#%=\-~^:?!\$<>\(\)\[\]@](?![A-Za-z0-9_])
|
140
|
+
- name: variable.other.subpattern.perl
|
141
|
+
captures:
|
142
|
+
"1":
|
143
|
+
name: punctuation.definition.variable.perl
|
144
|
+
match: (\$)[0-9]+(?![A-Za-z0-9_])
|
145
|
+
- name: variable.other.readwrite.global.perl
|
146
|
+
captures:
|
147
|
+
"1":
|
148
|
+
name: punctuation.definition.variable.perl
|
149
|
+
match: ([\$\@\%](#)?)([a-zA-Zx7f-xff\$]|::)([a-zA-Z0-9_x7f-xff\$]|::)*\b
|
150
|
+
- name: variable.other.readwrite.global.perl
|
151
|
+
captures:
|
152
|
+
"1":
|
153
|
+
name: punctuation.definition.variable.perl
|
154
|
+
"2":
|
155
|
+
name: punctuation.definition.variable.perl
|
156
|
+
match: (\$\{)(?:[a-zA-Zx7f-xff\$]|::)(?:[a-zA-Z0-9_x7f-xff\$]|::)*(\})
|
157
|
+
- name: variable.other.readwrite.global.special.perl
|
158
|
+
captures:
|
159
|
+
"1":
|
160
|
+
name: punctuation.definition.variable.perl
|
161
|
+
match: ([\$\@\%](#)?)[0-9_]\b
|
162
|
+
uuid: EDBFE125-6B1C-11D9-9189-000D93589AF6
|
163
|
+
foldingStartMarker: (/\*|(\{|\[|\()\s*$)
|
164
|
+
patterns:
|
165
|
+
- include: "#line_comment"
|
166
|
+
- name: comment.block.documentation.perl
|
167
|
+
captures:
|
168
|
+
"0":
|
169
|
+
name: punctuation.definition.comment.perl
|
170
|
+
begin: ^=
|
171
|
+
end: ^=cut
|
172
|
+
- include: "#variable"
|
173
|
+
- endCaptures:
|
174
|
+
"1":
|
175
|
+
name: string.regexp.compile.perl
|
176
|
+
"2":
|
177
|
+
name: punctuation.definition.string.perl
|
178
|
+
"3":
|
179
|
+
name: keyword.control.regexp-option.perl
|
180
|
+
begin: \b(?=qr\s*[^\s\w])
|
181
|
+
applyEndPatternLast: 1
|
182
|
+
end: ((([egimosx]*)))(?=(\s+\S|\s*[;\,\#\{\}\)]|$))
|
183
|
+
patterns:
|
184
|
+
- name: string.regexp.compile.nested_braces.perl
|
185
|
+
captures:
|
186
|
+
"0":
|
187
|
+
name: punctuation.definition.string.perl
|
188
|
+
"1":
|
189
|
+
name: support.function.perl
|
190
|
+
begin: (qr)\s*\{
|
191
|
+
end: \}
|
192
|
+
patterns:
|
193
|
+
- include: "#escaped_char"
|
194
|
+
- include: "#variable"
|
195
|
+
- include: "#nested_braces_interpolated"
|
196
|
+
- name: string.regexp.compile.nested_brackets.perl
|
197
|
+
captures:
|
198
|
+
"0":
|
199
|
+
name: punctuation.definition.string.perl
|
200
|
+
"1":
|
201
|
+
name: support.function.perl
|
202
|
+
begin: (qr)\s*\[
|
203
|
+
end: \]
|
204
|
+
patterns:
|
205
|
+
- include: "#escaped_char"
|
206
|
+
- include: "#variable"
|
207
|
+
- include: "#nested_brackets_interpolated"
|
208
|
+
- name: string.regexp.compile.nested_ltgt.perl
|
209
|
+
captures:
|
210
|
+
"0":
|
211
|
+
name: punctuation.definition.string.perl
|
212
|
+
"1":
|
213
|
+
name: support.function.perl
|
214
|
+
begin: (qr)\s*<
|
215
|
+
end: ">"
|
216
|
+
patterns:
|
217
|
+
- include: "#escaped_char"
|
218
|
+
- include: "#variable"
|
219
|
+
- include: "#nested_ltgt_interpolated"
|
220
|
+
- name: string.regexp.compile.nested_parens.perl
|
221
|
+
captures:
|
222
|
+
"0":
|
223
|
+
name: punctuation.definition.string.perl
|
224
|
+
"1":
|
225
|
+
name: support.function.perl
|
226
|
+
begin: (qr)\s*\(
|
227
|
+
end: \)
|
228
|
+
patterns:
|
229
|
+
- include: "#escaped_char"
|
230
|
+
- include: "#variable"
|
231
|
+
- include: "#nested_parens_interpolated"
|
232
|
+
- name: string.regexp.compile.single-quote.perl
|
233
|
+
captures:
|
234
|
+
"0":
|
235
|
+
name: punctuation.definition.string.perl
|
236
|
+
"1":
|
237
|
+
name: support.function.perl
|
238
|
+
begin: (qr)\s*\'
|
239
|
+
end: \'
|
240
|
+
patterns:
|
241
|
+
- include: "#escaped_char"
|
242
|
+
- name: string.regexp.compile.simple-delimiter.perl
|
243
|
+
captures:
|
244
|
+
"0":
|
245
|
+
name: punctuation.definition.string.perl
|
246
|
+
"1":
|
247
|
+
name: support.function.perl
|
248
|
+
begin: (qr)\s*([^\s\w\'\{\[\(\<])
|
249
|
+
end: \2
|
250
|
+
patterns:
|
251
|
+
- include: "#escaped_char"
|
252
|
+
- include: "#variable"
|
253
|
+
- include: "#nested_parens_interpolated"
|
254
|
+
comment: string.regexp.compile.perl
|
255
|
+
- endCaptures:
|
256
|
+
"1":
|
257
|
+
name: string.regexp.replace.perl
|
258
|
+
"2":
|
259
|
+
name: punctuation.definition.string.perl
|
260
|
+
"3":
|
261
|
+
name: keyword.control.regexp-option.perl
|
262
|
+
begin: \b(?=(s)(\s+\S|\s*[;\,\#\{\}\(\)\[<]|$))
|
263
|
+
applyEndPatternLast: 1
|
264
|
+
end: ((([egimosx]*)))(?=(\s+\S|\s*[;\,\#\{\}\)\]>]|$))
|
265
|
+
patterns:
|
266
|
+
- name: string.regexp.nested_braces.perl
|
267
|
+
captures:
|
268
|
+
"0":
|
269
|
+
name: punctuation.definition.string.perl
|
270
|
+
"1":
|
271
|
+
name: support.function.perl
|
272
|
+
begin: (s)\s*\{
|
273
|
+
end: \}
|
274
|
+
patterns:
|
275
|
+
- include: "#escaped_char"
|
276
|
+
- include: "#nested_braces"
|
277
|
+
- name: string.regexp.nested_brackets.perl
|
278
|
+
captures:
|
279
|
+
"0":
|
280
|
+
name: punctuation.definition.string.perl
|
281
|
+
"1":
|
282
|
+
name: support.function.perl
|
283
|
+
begin: (s)\s*\[
|
284
|
+
end: \]
|
285
|
+
patterns:
|
286
|
+
- include: "#escaped_char"
|
287
|
+
- include: "#nested_brackets"
|
288
|
+
- name: string.regexp.nested_ltgt.perl
|
289
|
+
captures:
|
290
|
+
"0":
|
291
|
+
name: punctuation.definition.string.perl
|
292
|
+
"1":
|
293
|
+
name: support.function.perl
|
294
|
+
begin: (s)\s*<
|
295
|
+
end: ">"
|
296
|
+
patterns:
|
297
|
+
- include: "#escaped_char"
|
298
|
+
- include: "#nested_ltgt"
|
299
|
+
- name: string.regexp.nested_parens.perl
|
300
|
+
captures:
|
301
|
+
"0":
|
302
|
+
name: punctuation.definition.string.perl
|
303
|
+
"1":
|
304
|
+
name: support.function.perl
|
305
|
+
begin: (s)\s*\(
|
306
|
+
end: \)
|
307
|
+
patterns:
|
308
|
+
- include: "#escaped_char"
|
309
|
+
- include: "#nested_parens"
|
310
|
+
- name: string.regexp.format.nested_braces.perl
|
311
|
+
captures:
|
312
|
+
"0":
|
313
|
+
name: punctuation.definition.string.perl
|
314
|
+
begin: \{
|
315
|
+
end: \}
|
316
|
+
patterns:
|
317
|
+
- include: "#escaped_char"
|
318
|
+
- include: "#variable"
|
319
|
+
- include: "#nested_braces_interpolated"
|
320
|
+
- name: string.regexp.format.nested_brackets.perl
|
321
|
+
captures:
|
322
|
+
"0":
|
323
|
+
name: punctuation.definition.string.perl
|
324
|
+
begin: \[
|
325
|
+
end: \]
|
326
|
+
patterns:
|
327
|
+
- include: "#escaped_char"
|
328
|
+
- include: "#variable"
|
329
|
+
- include: "#nested_brackets_interpolated"
|
330
|
+
- name: string.regexp.format.nested_ltgt.perl
|
331
|
+
captures:
|
332
|
+
"0":
|
333
|
+
name: punctuation.definition.string.perl
|
334
|
+
begin: <
|
335
|
+
end: ">"
|
336
|
+
patterns:
|
337
|
+
- include: "#escaped_char"
|
338
|
+
- include: "#variable"
|
339
|
+
- include: "#nested_ltgt_interpolated"
|
340
|
+
- name: string.regexp.format.nested_parens.perl
|
341
|
+
captures:
|
342
|
+
"0":
|
343
|
+
name: punctuation.definition.string.perl
|
344
|
+
begin: \(
|
345
|
+
end: \)
|
346
|
+
patterns:
|
347
|
+
- include: "#escaped_char"
|
348
|
+
- include: "#variable"
|
349
|
+
- include: "#nested_parens_interpolated"
|
350
|
+
- name: string.regexp.format.single_quote.perl
|
351
|
+
captures:
|
352
|
+
"0":
|
353
|
+
name: punctuation.definition.string.perl
|
354
|
+
begin: "'"
|
355
|
+
end: "'"
|
356
|
+
patterns:
|
357
|
+
- name: constant.character.escape.perl
|
358
|
+
match: \\['\\]
|
359
|
+
- name: string.regexp.format.simple_delimiter.perl
|
360
|
+
captures:
|
361
|
+
"0":
|
362
|
+
name: punctuation.definition.string.perl
|
363
|
+
begin: ([^\s\w\[({<;])
|
364
|
+
end: \1
|
365
|
+
patterns:
|
366
|
+
- include: "#escaped_char"
|
367
|
+
- include: "#variable"
|
368
|
+
- match: \s+
|
369
|
+
comment: string.regexp.replace.perl
|
370
|
+
- endCaptures:
|
371
|
+
"1":
|
372
|
+
name: string.regexp.replace.perl
|
373
|
+
"2":
|
374
|
+
name: punctuation.definition.string.perl
|
375
|
+
"3":
|
376
|
+
name: keyword.control.regexp-option.perl
|
377
|
+
begin: \b(?=s([^\s\w\[({<]).*\1([egimos]*)([\}\)\;\,]|\s+))
|
378
|
+
end: ((([egimos]*)))(?=([\}\)\;\,]|\s+|$))
|
379
|
+
patterns:
|
380
|
+
- name: string.regexp.replaceXXX.simple_delimiter.perl
|
381
|
+
captures:
|
382
|
+
"0":
|
383
|
+
name: punctuation.definition.string.perl
|
384
|
+
"1":
|
385
|
+
name: support.function.perl
|
386
|
+
begin: (s\s*)([^\s\w\[({<])
|
387
|
+
end: (?=\2)
|
388
|
+
patterns:
|
389
|
+
- include: "#escaped_char"
|
390
|
+
- name: string.regexp.replaceXXX.format.single_quote.perl
|
391
|
+
captures:
|
392
|
+
"0":
|
393
|
+
name: punctuation.definition.string.perl
|
394
|
+
begin: "'"
|
395
|
+
end: "'"
|
396
|
+
patterns:
|
397
|
+
- name: constant.character.escape.perl.perl
|
398
|
+
match: \\['\\]
|
399
|
+
- name: string.regexp.replaceXXX.format.simple_delimiter.perl
|
400
|
+
captures:
|
401
|
+
"0":
|
402
|
+
name: punctuation.definition.string.perl
|
403
|
+
begin: ([^\s\w\[({<])
|
404
|
+
end: \1
|
405
|
+
patterns:
|
406
|
+
- include: "#escaped_char"
|
407
|
+
- include: "#variable"
|
408
|
+
comment: string.regexp.replaceXXX
|
409
|
+
- endCaptures:
|
410
|
+
"1":
|
411
|
+
name: string.regexp.replace.perl
|
412
|
+
"2":
|
413
|
+
name: punctuation.definition.string.perl
|
414
|
+
"3":
|
415
|
+
name: keyword.control.regexp-option.perl
|
416
|
+
begin: \b(?=(?<!\\)s\s*([^\s\w\[({<]))
|
417
|
+
end: \2((([egimos]*x[egimos]*)))\b
|
418
|
+
patterns:
|
419
|
+
- name: string.regexp.replace.extended.simple_delimiter.perl
|
420
|
+
captures:
|
421
|
+
"0":
|
422
|
+
name: punctuation.definition.string.perl
|
423
|
+
"1":
|
424
|
+
name: support.function.perl
|
425
|
+
begin: (s)\s*(.)
|
426
|
+
end: (?=\2)
|
427
|
+
patterns:
|
428
|
+
- include: "#escaped_char"
|
429
|
+
- name: string.regexp.replace.extended.simple_delimiter.perl
|
430
|
+
captures:
|
431
|
+
"0":
|
432
|
+
name: punctuation.definition.string.perl
|
433
|
+
begin: "'"
|
434
|
+
end: "'(?=[egimos]*x[egimos]*)\\b"
|
435
|
+
patterns:
|
436
|
+
- include: "#escaped_char"
|
437
|
+
- name: string.regexp.replace.extended.simple_delimiter.perl
|
438
|
+
captures:
|
439
|
+
"0":
|
440
|
+
name: punctuation.definition.string.perl
|
441
|
+
begin: (.)
|
442
|
+
end: \1(?=[egimos]*x[egimos]*)\b
|
443
|
+
patterns:
|
444
|
+
- include: "#escaped_char"
|
445
|
+
- include: "#variable"
|
446
|
+
comment: string.regexp.replace.extended
|
447
|
+
- name: constant.other.key.perl
|
448
|
+
match: \b\w+\s*(?==>)
|
449
|
+
- name: constant.other.bareword.perl
|
450
|
+
match: (?<={)\s*\w+\s*(?=})
|
451
|
+
- name: string.regexp.find.perl
|
452
|
+
captures:
|
453
|
+
"1":
|
454
|
+
name: punctuation.definition.string.perl
|
455
|
+
"5":
|
456
|
+
name: punctuation.definition.string.perl
|
457
|
+
match: (?<!\\)((~\s*)?\/)(.*?)(?<!\\)(\\{2})*(\/)
|
458
|
+
- name: string.regexp.find.extended.perl
|
459
|
+
endCaptures:
|
460
|
+
"1":
|
461
|
+
name: keyword.control.regexp-option.perl
|
462
|
+
captures:
|
463
|
+
"0":
|
464
|
+
name: punctuation.definition.string.perl
|
465
|
+
begin: (?<!\\)(\~\s*\/)
|
466
|
+
end: \/([cgimos]*x[cgimos]*)\b
|
467
|
+
patterns:
|
468
|
+
- include: "#escaped_char"
|
469
|
+
- include: "#variable"
|
470
|
+
- name: meta.class.perl
|
471
|
+
captures:
|
472
|
+
"1":
|
473
|
+
name: keyword.control.perl
|
474
|
+
"2":
|
475
|
+
name: entity.name.type.class.perl
|
476
|
+
"3":
|
477
|
+
name: comment.line.number-sign.perl
|
478
|
+
"4":
|
479
|
+
name: punctuation.definition.comment.perl
|
480
|
+
match: ^\s*(package)\s+(\S+)\s*((#).*)?$\n?
|
481
|
+
- name: meta.function.perl
|
482
|
+
captures:
|
483
|
+
"1":
|
484
|
+
name: storage.type.sub.perl
|
485
|
+
"2":
|
486
|
+
name: entity.name.function.perl
|
487
|
+
"3":
|
488
|
+
name: storage.type.method.perl
|
489
|
+
match: ^\s*(sub)\s+([-a-zA-Z0-9_]+)\s*(\([\$\@\*;]*\))?
|
490
|
+
- name: meta.function.perl
|
491
|
+
captures:
|
492
|
+
"1":
|
493
|
+
name: entity.name.function.perl
|
494
|
+
"2":
|
495
|
+
name: punctuation.definition.parameters.perl
|
496
|
+
"3":
|
497
|
+
name: variable.parameter.function.perl
|
498
|
+
match: ^\s*(BEGIN|END|DESTROY)\b
|
499
|
+
- name: meta.leading-tabs
|
500
|
+
begin: ^(?=(\t| {4}))
|
501
|
+
end: (?=[^\t\s])
|
502
|
+
patterns:
|
503
|
+
- captures:
|
504
|
+
"1":
|
505
|
+
name: meta.odd-tab
|
506
|
+
"2":
|
507
|
+
name: meta.even-tab
|
508
|
+
match: (\t| {4})(\t| {4})?
|
509
|
+
- name: string.regexp.find-m.perl
|
510
|
+
captures:
|
511
|
+
"1":
|
512
|
+
name: support.function.perl
|
513
|
+
"2":
|
514
|
+
name: punctuation.definition.string.perl
|
515
|
+
"5":
|
516
|
+
name: punctuation.definition.string.perl
|
517
|
+
match: \b(m)\s*(?<!\\)([^\[\{\(A-Za-z0-9\s])(.*?)(?<!\\)(\\{2})*(\2)
|
518
|
+
- name: string.regexp.find-m-paren.perl
|
519
|
+
endCaptures:
|
520
|
+
"0":
|
521
|
+
name: punctuation.definition.string.end.perl
|
522
|
+
begin: \b(m)\s*(?<!\\)\(
|
523
|
+
beginCaptures:
|
524
|
+
"0":
|
525
|
+
name: punctuation.definition.string.begin.perl
|
526
|
+
end: \)
|
527
|
+
patterns:
|
528
|
+
- include: "#escaped_char"
|
529
|
+
- include: "#nested_parens_interpolated"
|
530
|
+
- include: "#variable"
|
531
|
+
- name: string.regexp.find-m-brace.perl
|
532
|
+
endCaptures:
|
533
|
+
"0":
|
534
|
+
name: punctuation.definition.string.end.perl
|
535
|
+
begin: \b(m)\s*(?<!\\)\{
|
536
|
+
beginCaptures:
|
537
|
+
"0":
|
538
|
+
name: punctuation.definition.string.begin.perl
|
539
|
+
end: \}
|
540
|
+
patterns:
|
541
|
+
- include: "#escaped_char"
|
542
|
+
- include: "#nested_braces_interpolated"
|
543
|
+
- include: "#variable"
|
544
|
+
- name: string.regexp.find-m-bracket.perl
|
545
|
+
endCaptures:
|
546
|
+
"0":
|
547
|
+
name: punctuation.definition.string.end.perl
|
548
|
+
begin: \b(m)\s*(?<!\\)\[
|
549
|
+
beginCaptures:
|
550
|
+
"0":
|
551
|
+
name: punctuation.definition.string.begin.perl
|
552
|
+
end: \]
|
553
|
+
patterns:
|
554
|
+
- include: "#escaped_char"
|
555
|
+
- include: "#nested_brackets_interpolated"
|
556
|
+
- include: "#variable"
|
557
|
+
- name: string.regexp.find-m-ltgt.perl
|
558
|
+
endCaptures:
|
559
|
+
"0":
|
560
|
+
name: punctuation.definition.string.end.perl
|
561
|
+
begin: \b(m)\s*(?<!\\)\<
|
562
|
+
beginCaptures:
|
563
|
+
"0":
|
564
|
+
name: punctuation.definition.string.begin.perl
|
565
|
+
end: \>
|
566
|
+
patterns:
|
567
|
+
- include: "#escaped_char"
|
568
|
+
- include: "#nested_ltgt_interpolated"
|
569
|
+
- include: "#variable"
|
570
|
+
- name: string.regexp.replace.perl
|
571
|
+
captures:
|
572
|
+
"8":
|
573
|
+
name: punctuation.definition.string.perl
|
574
|
+
"1":
|
575
|
+
name: support.function.perl
|
576
|
+
"2":
|
577
|
+
name: punctuation.definition.string.perl
|
578
|
+
"5":
|
579
|
+
name: punctuation.definition.string.perl
|
580
|
+
match: \b(s|tr|y)\s*([^A-Za-z0-9\s])(.*?)(?<!\\)(\\{2})*(\2)(.*?)(?<!\\)(\\{2})*(\2)
|
581
|
+
- name: constant.language.perl
|
582
|
+
match: \b(__FILE__|__LINE__|__PACKAGE__)\b
|
583
|
+
- name: keyword.control.perl
|
584
|
+
match: \b(continue|die|do|else|elsif|exit|for|foreach|goto|if|last|next|redo|return|select|unless|until|wait|while|switch|case|package|require|use|eval)\b
|
585
|
+
- name: storage.modifier.perl
|
586
|
+
match: \b(my|our|local)\b
|
587
|
+
- name: keyword.operator.filetest.perl
|
588
|
+
match: (?<!\w)\-[rwx0RWXOezsfdlpSbctugkTBMAC]\b
|
589
|
+
- name: keyword.operator.logical.perl
|
590
|
+
match: \b(and|or|xor|as)\b
|
591
|
+
- name: keyword.operator.comparison.perl
|
592
|
+
match: (<=>| =>|->)
|
593
|
+
- captures:
|
594
|
+
"0":
|
595
|
+
name: punctuation.definition.string.perl
|
596
|
+
"1":
|
597
|
+
name: string.unquoted.heredoc.doublequote.perl
|
598
|
+
"2":
|
599
|
+
name: punctuation.definition.heredoc.perl
|
600
|
+
begin: ((<<) *"HTML").*\n?
|
601
|
+
contentName: text.html.embedded.perl
|
602
|
+
end: (^HTML$)
|
603
|
+
patterns:
|
604
|
+
- include: "#escaped_char"
|
605
|
+
- include: "#variable"
|
606
|
+
- include: text.html.basic
|
607
|
+
- captures:
|
608
|
+
"0":
|
609
|
+
name: punctuation.definition.string.perl
|
610
|
+
"1":
|
611
|
+
name: string.unquoted.heredoc.doublequote.perl
|
612
|
+
"2":
|
613
|
+
name: punctuation.definition.heredoc.perl
|
614
|
+
begin: ((<<) *"XML").*\n?
|
615
|
+
contentName: text.xml.embedded.perl
|
616
|
+
end: (^XML$)
|
617
|
+
patterns:
|
618
|
+
- include: "#escaped_char"
|
619
|
+
- include: "#variable"
|
620
|
+
- include: text.xml
|
621
|
+
- captures:
|
622
|
+
"0":
|
623
|
+
name: punctuation.definition.string.perl
|
624
|
+
"1":
|
625
|
+
name: string.unquoted.heredoc.doublequote.perl
|
626
|
+
"2":
|
627
|
+
name: punctuation.definition.heredoc.perl
|
628
|
+
begin: ((<<) *"CSS").*\n?
|
629
|
+
contentName: text.css.embedded.perl
|
630
|
+
end: (^CSS$)
|
631
|
+
patterns:
|
632
|
+
- include: "#escaped_char"
|
633
|
+
- include: "#variable"
|
634
|
+
- include: source.css
|
635
|
+
- captures:
|
636
|
+
"0":
|
637
|
+
name: punctuation.definition.string.perl
|
638
|
+
"1":
|
639
|
+
name: string.unquoted.heredoc.doublequote.perl
|
640
|
+
"2":
|
641
|
+
name: punctuation.definition.heredoc.perl
|
642
|
+
begin: ((<<) *"JAVASCRIPT").*\n?
|
643
|
+
contentName: text.js.embedded.perl
|
644
|
+
end: (^JAVASCRIPT$)
|
645
|
+
patterns:
|
646
|
+
- include: "#escaped_char"
|
647
|
+
- include: "#variable"
|
648
|
+
- include: source.js
|
649
|
+
- captures:
|
650
|
+
"0":
|
651
|
+
name: punctuation.definition.string.perl
|
652
|
+
"1":
|
653
|
+
name: string.unquoted.heredoc.doublequote.perl
|
654
|
+
"2":
|
655
|
+
name: punctuation.definition.heredoc.perl
|
656
|
+
begin: ((<<) *"SQL").*\n?
|
657
|
+
contentName: source.sql.embedded.perl
|
658
|
+
end: (^SQL$)
|
659
|
+
patterns:
|
660
|
+
- include: "#escaped_char"
|
661
|
+
- include: "#variable"
|
662
|
+
- include: source.sql
|
663
|
+
- captures:
|
664
|
+
"0":
|
665
|
+
name: punctuation.definition.string.perl
|
666
|
+
"1":
|
667
|
+
name: string.unquoted.heredoc.doublequote.perl
|
668
|
+
"2":
|
669
|
+
name: punctuation.definition.heredoc.perl
|
670
|
+
begin: ((<<) *"POSTSCRIPT").*\n?
|
671
|
+
contentName: text.postscript.embedded.perl
|
672
|
+
end: (^POSTSCRIPT$)
|
673
|
+
patterns:
|
674
|
+
- include: "#escaped_char"
|
675
|
+
- include: "#variable"
|
676
|
+
- include: source.postscript
|
677
|
+
- captures:
|
678
|
+
"0":
|
679
|
+
name: punctuation.definition.string.perl
|
680
|
+
"1":
|
681
|
+
name: string.unquoted.heredoc.doublequote.perl
|
682
|
+
"2":
|
683
|
+
name: punctuation.definition.heredoc.perl
|
684
|
+
begin: ((<<) *"([^"]*)").*\n?
|
685
|
+
contentName: string.unquoted.heredoc.doublequote.perl
|
686
|
+
end: (^\3$)
|
687
|
+
patterns:
|
688
|
+
- include: "#escaped_char"
|
689
|
+
- include: "#variable"
|
690
|
+
- captures:
|
691
|
+
"0":
|
692
|
+
name: punctuation.definition.string.perl
|
693
|
+
"1":
|
694
|
+
name: string.unquoted.heredoc.quote.perl
|
695
|
+
"2":
|
696
|
+
name: punctuation.definition.heredoc.perl
|
697
|
+
begin: ((<<) *'HTML').*\n?
|
698
|
+
contentName: text.html.embedded.perl
|
699
|
+
end: (^HTML$)
|
700
|
+
patterns:
|
701
|
+
- include: text.html.basic
|
702
|
+
- captures:
|
703
|
+
"0":
|
704
|
+
name: punctuation.definition.string.perl
|
705
|
+
"1":
|
706
|
+
name: string.unquoted.heredoc.quote.perl
|
707
|
+
"2":
|
708
|
+
name: punctuation.definition.heredoc.perl
|
709
|
+
begin: ((<<) *'XML').*\n?
|
710
|
+
contentName: text.xml.embedded.perl
|
711
|
+
end: (^XML$)
|
712
|
+
patterns:
|
713
|
+
- include: text.xml
|
714
|
+
- captures:
|
715
|
+
"0":
|
716
|
+
name: punctuation.definition.string.perl
|
717
|
+
"1":
|
718
|
+
name: string.unquoted.heredoc.quote.perl
|
719
|
+
"2":
|
720
|
+
name: punctuation.definition.heredoc.perl
|
721
|
+
begin: ((<<) *'CSS').*\n?
|
722
|
+
contentName: text.css.embedded.perl
|
723
|
+
end: (^CSS$)
|
724
|
+
patterns:
|
725
|
+
- include: source.css
|
726
|
+
- captures:
|
727
|
+
"0":
|
728
|
+
name: punctuation.definition.string.perl
|
729
|
+
"1":
|
730
|
+
name: string.unquoted.heredoc.quote.perl
|
731
|
+
"2":
|
732
|
+
name: punctuation.definition.heredoc.perl
|
733
|
+
begin: ((<<) *'JAVASCRIPT').*\n?
|
734
|
+
contentName: text.js.embedded.perl
|
735
|
+
end: (^JAVASCRIPT$)
|
736
|
+
patterns:
|
737
|
+
- include: source.js
|
738
|
+
- captures:
|
739
|
+
"0":
|
740
|
+
name: punctuation.definition.string.perl
|
741
|
+
"1":
|
742
|
+
name: string.unquoted.heredoc.quote.perl
|
743
|
+
"2":
|
744
|
+
name: punctuation.definition.heredoc.perl
|
745
|
+
begin: ((<<) *'SQL').*\n?
|
746
|
+
contentName: source.sql.embedded.perl
|
747
|
+
end: (^SQL$)
|
748
|
+
patterns:
|
749
|
+
- include: source.sql
|
750
|
+
- captures:
|
751
|
+
"0":
|
752
|
+
name: punctuation.definition.string.perl
|
753
|
+
"1":
|
754
|
+
name: string.unquoted.heredoc.quote.perl
|
755
|
+
"2":
|
756
|
+
name: punctuation.definition.heredoc.perl
|
757
|
+
begin: ((<<) *'POSTSCRIPT').*\n?
|
758
|
+
contentName: source.postscript.embedded.perl
|
759
|
+
end: (^POSTSCRIPT)
|
760
|
+
patterns:
|
761
|
+
- include: source.postscript
|
762
|
+
- captures:
|
763
|
+
"0":
|
764
|
+
name: punctuation.definition.string.perl
|
765
|
+
"1":
|
766
|
+
name: string.unquoted.heredoc.quote.perl
|
767
|
+
"2":
|
768
|
+
name: punctuation.definition.heredoc.perl
|
769
|
+
begin: ((<<) *'([^']*)').*\n?
|
770
|
+
contentName: string.unquoted.heredoc.quote.perl
|
771
|
+
end: (^\3$)
|
772
|
+
- captures:
|
773
|
+
"0":
|
774
|
+
name: punctuation.definition.string.perl
|
775
|
+
"1":
|
776
|
+
name: string.unquoted.heredoc.backtick.perl
|
777
|
+
"2":
|
778
|
+
name: punctuation.definition.heredoc.perl
|
779
|
+
begin: ((<<) *`([^`]*)`).*\n?
|
780
|
+
contentName: string.unquoted.heredoc.backtick.perl
|
781
|
+
end: (^\3$)
|
782
|
+
patterns:
|
783
|
+
- include: "#escaped_char"
|
784
|
+
- include: "#variable"
|
785
|
+
- captures:
|
786
|
+
"0":
|
787
|
+
name: punctuation.definition.string.perl
|
788
|
+
"1":
|
789
|
+
name: string.unquoted.heredoc.perl
|
790
|
+
"2":
|
791
|
+
name: punctuation.definition.heredoc.perl
|
792
|
+
begin: ((<<) *HTML\b).*\n?
|
793
|
+
contentName: text.html.embedded.perl
|
794
|
+
end: (^HTML$)
|
795
|
+
patterns:
|
796
|
+
- include: "#escaped_char"
|
797
|
+
- include: "#variable"
|
798
|
+
- include: text.html.basic
|
799
|
+
- captures:
|
800
|
+
"0":
|
801
|
+
name: punctuation.definition.string.perl
|
802
|
+
"1":
|
803
|
+
name: string.unquoted.heredoc.perl
|
804
|
+
"2":
|
805
|
+
name: punctuation.definition.heredoc.perl
|
806
|
+
begin: ((<<) *XML\b).*\n?
|
807
|
+
contentName: text.xml.embedded.perl
|
808
|
+
end: (^XML$)
|
809
|
+
patterns:
|
810
|
+
- include: "#escaped_char"
|
811
|
+
- include: "#variable"
|
812
|
+
- include: text.xml
|
813
|
+
- captures:
|
814
|
+
"0":
|
815
|
+
name: punctuation.definition.string.perl
|
816
|
+
"1":
|
817
|
+
name: string.unquoted.heredoc.perl
|
818
|
+
"2":
|
819
|
+
name: punctuation.definition.heredoc.perl
|
820
|
+
begin: ((<<) *SQL\b).*\n?
|
821
|
+
contentName: source.sql.embedded.perl
|
822
|
+
end: (^SQL$)
|
823
|
+
patterns:
|
824
|
+
- include: "#escaped_char"
|
825
|
+
- include: "#variable"
|
826
|
+
- include: source.sql
|
827
|
+
- captures:
|
828
|
+
"0":
|
829
|
+
name: punctuation.definition.string.perl
|
830
|
+
"1":
|
831
|
+
name: string.unquoted.heredoc.perl
|
832
|
+
"2":
|
833
|
+
name: punctuation.definition.heredoc.perl
|
834
|
+
begin: ((<<) *POSTSCRIPT\b).*\n?
|
835
|
+
contentName: source.postscript.embedded.perl
|
836
|
+
end: (^POSTSCRIPT)
|
837
|
+
patterns:
|
838
|
+
- include: "#escaped_char"
|
839
|
+
- include: "#variable"
|
840
|
+
- include: source.postscript
|
841
|
+
- captures:
|
842
|
+
"0":
|
843
|
+
name: punctuation.definition.string.perl
|
844
|
+
"1":
|
845
|
+
name: string.unquoted.heredoc.perl
|
846
|
+
"2":
|
847
|
+
name: punctuation.definition.heredoc.perl
|
848
|
+
begin: ((<<) *((?![=\d\$ ])[^;,'"`\s)]*)).*\n?
|
849
|
+
contentName: string.unquoted.heredoc.perl
|
850
|
+
end: (^\3$)
|
851
|
+
patterns:
|
852
|
+
- include: "#escaped_char"
|
853
|
+
- include: "#variable"
|
854
|
+
- name: string.quoted.other.qq.perl
|
855
|
+
endCaptures:
|
856
|
+
"0":
|
857
|
+
name: punctuation.definition.string.end.perl
|
858
|
+
begin: \bqq\s*([^\(\{\[\<\w\s])
|
859
|
+
beginCaptures:
|
860
|
+
"0":
|
861
|
+
name: punctuation.definition.string.begin.perl
|
862
|
+
end: \1
|
863
|
+
patterns:
|
864
|
+
- include: "#escaped_char"
|
865
|
+
- include: "#variable"
|
866
|
+
- name: string.interpolated.qx.perl
|
867
|
+
endCaptures:
|
868
|
+
"0":
|
869
|
+
name: punctuation.definition.string.end.perl
|
870
|
+
begin: \bqx\s*([^'\(\{\[\<\w\s])
|
871
|
+
beginCaptures:
|
872
|
+
"0":
|
873
|
+
name: punctuation.definition.string.begin.perl
|
874
|
+
end: \1
|
875
|
+
patterns:
|
876
|
+
- include: "#escaped_char"
|
877
|
+
- include: "#variable"
|
878
|
+
- name: string.interpolated.qx.single-quote.perl
|
879
|
+
endCaptures:
|
880
|
+
"0":
|
881
|
+
name: punctuation.definition.string.end.perl
|
882
|
+
begin: \bqx\s*'
|
883
|
+
beginCaptures:
|
884
|
+
"0":
|
885
|
+
name: punctuation.definition.string.begin.perl
|
886
|
+
end: "'"
|
887
|
+
patterns:
|
888
|
+
- include: "#escaped_char"
|
889
|
+
- name: string.quoted.double.perl
|
890
|
+
endCaptures:
|
891
|
+
"0":
|
892
|
+
name: punctuation.definition.string.end.perl
|
893
|
+
begin: "\""
|
894
|
+
beginCaptures:
|
895
|
+
"0":
|
896
|
+
name: punctuation.definition.string.begin.perl
|
897
|
+
end: "\""
|
898
|
+
patterns:
|
899
|
+
- include: "#escaped_char"
|
900
|
+
- include: "#variable"
|
901
|
+
- name: string.quoted.other.q.perl
|
902
|
+
endCaptures:
|
903
|
+
"0":
|
904
|
+
name: punctuation.definition.string.end.perl
|
905
|
+
begin: \bqw?\s*([^\(\{\[\<\w\s])
|
906
|
+
beginCaptures:
|
907
|
+
"0":
|
908
|
+
name: punctuation.definition.string.begin.perl
|
909
|
+
end: \1
|
910
|
+
patterns:
|
911
|
+
- include: "#escaped_char"
|
912
|
+
- name: string.quoted.single.perl
|
913
|
+
endCaptures:
|
914
|
+
"0":
|
915
|
+
name: punctuation.definition.string.end.perl
|
916
|
+
begin: "'"
|
917
|
+
beginCaptures:
|
918
|
+
"0":
|
919
|
+
name: punctuation.definition.string.begin.perl
|
920
|
+
end: "'"
|
921
|
+
patterns:
|
922
|
+
- name: constant.character.escape.perl
|
923
|
+
match: \\['\\]
|
924
|
+
- name: string.interpolated.perl
|
925
|
+
endCaptures:
|
926
|
+
"0":
|
927
|
+
name: punctuation.definition.string.end.perl
|
928
|
+
begin: "`"
|
929
|
+
beginCaptures:
|
930
|
+
"0":
|
931
|
+
name: punctuation.definition.string.begin.perl
|
932
|
+
end: "`"
|
933
|
+
patterns:
|
934
|
+
- include: "#escaped_char"
|
935
|
+
- include: "#variable"
|
936
|
+
- name: string.quoted.other.qq-paren.perl
|
937
|
+
endCaptures:
|
938
|
+
"0":
|
939
|
+
name: punctuation.definition.string.end.perl
|
940
|
+
begin: \bqq\s*\(
|
941
|
+
beginCaptures:
|
942
|
+
"0":
|
943
|
+
name: punctuation.definition.string.begin.perl
|
944
|
+
end: \)
|
945
|
+
patterns:
|
946
|
+
- include: "#escaped_char"
|
947
|
+
- include: "#nested_parens_interpolated"
|
948
|
+
- include: "#variable"
|
949
|
+
- name: string.quoted.other.qq-brace.perl
|
950
|
+
endCaptures:
|
951
|
+
"0":
|
952
|
+
name: punctuation.definition.string.end.perl
|
953
|
+
begin: \bqq\s*\{
|
954
|
+
beginCaptures:
|
955
|
+
"0":
|
956
|
+
name: punctuation.definition.string.begin.perl
|
957
|
+
end: \}
|
958
|
+
patterns:
|
959
|
+
- include: "#escaped_char"
|
960
|
+
- include: "#nested_braces_interpolated"
|
961
|
+
- include: "#variable"
|
962
|
+
- name: string.quoted.other.qq-bracket.perl
|
963
|
+
endCaptures:
|
964
|
+
"0":
|
965
|
+
name: punctuation.definition.string.end.perl
|
966
|
+
begin: \bqq\s*\[
|
967
|
+
beginCaptures:
|
968
|
+
"0":
|
969
|
+
name: punctuation.definition.string.begin.perl
|
970
|
+
end: \]
|
971
|
+
patterns:
|
972
|
+
- include: "#escaped_char"
|
973
|
+
- include: "#nested_brackets_interpolated"
|
974
|
+
- include: "#variable"
|
975
|
+
- name: string.quoted.other.qq-ltgt.perl
|
976
|
+
endCaptures:
|
977
|
+
"0":
|
978
|
+
name: punctuation.definition.string.end.perl
|
979
|
+
begin: \bqq\s*\<
|
980
|
+
beginCaptures:
|
981
|
+
"0":
|
982
|
+
name: punctuation.definition.string.begin.perl
|
983
|
+
end: \>
|
984
|
+
patterns:
|
985
|
+
- include: "#escaped_char"
|
986
|
+
- include: "#nested_ltgt_interpolated"
|
987
|
+
- include: "#variable"
|
988
|
+
- name: string.interpolated.qx-paren.perl
|
989
|
+
endCaptures:
|
990
|
+
"0":
|
991
|
+
name: punctuation.definition.string.end.perl
|
992
|
+
begin: \bqx\s*\(
|
993
|
+
beginCaptures:
|
994
|
+
"0":
|
995
|
+
name: punctuation.definition.string.begin.perl
|
996
|
+
end: \)
|
997
|
+
patterns:
|
998
|
+
- include: "#escaped_char"
|
999
|
+
- include: "#nested_parens_interpolated"
|
1000
|
+
- include: "#variable"
|
1001
|
+
- name: string.interpolated.qx-brace.perl
|
1002
|
+
endCaptures:
|
1003
|
+
"0":
|
1004
|
+
name: punctuation.definition.string.end.perl
|
1005
|
+
begin: \bqx\s*\{
|
1006
|
+
beginCaptures:
|
1007
|
+
"0":
|
1008
|
+
name: punctuation.definition.string.begin.perl
|
1009
|
+
end: \}
|
1010
|
+
patterns:
|
1011
|
+
- include: "#escaped_char"
|
1012
|
+
- include: "#nested_braces_interpolated"
|
1013
|
+
- include: "#variable"
|
1014
|
+
- name: string.interpolated.qx-bracket.perl
|
1015
|
+
endCaptures:
|
1016
|
+
"0":
|
1017
|
+
name: punctuation.definition.string.end.perl
|
1018
|
+
begin: \bqx\s*\[
|
1019
|
+
beginCaptures:
|
1020
|
+
"0":
|
1021
|
+
name: punctuation.definition.string.begin.perl
|
1022
|
+
end: \]
|
1023
|
+
patterns:
|
1024
|
+
- include: "#escaped_char"
|
1025
|
+
- include: "#nested_brackets_interpolated"
|
1026
|
+
- include: "#variable"
|
1027
|
+
- name: string.interpolated.qx-ltgt.perl
|
1028
|
+
endCaptures:
|
1029
|
+
"0":
|
1030
|
+
name: punctuation.definition.string.end.perl
|
1031
|
+
begin: \bqx\s*\<
|
1032
|
+
beginCaptures:
|
1033
|
+
"0":
|
1034
|
+
name: punctuation.definition.string.begin.perl
|
1035
|
+
end: \>
|
1036
|
+
patterns:
|
1037
|
+
- include: "#escaped_char"
|
1038
|
+
- include: "#nested_ltgt_interpolated"
|
1039
|
+
- include: "#variable"
|
1040
|
+
- name: string.quoted.other.q-paren.perl
|
1041
|
+
endCaptures:
|
1042
|
+
"0":
|
1043
|
+
name: punctuation.definition.string.end.perl
|
1044
|
+
begin: \bqw?\s*\(
|
1045
|
+
beginCaptures:
|
1046
|
+
"0":
|
1047
|
+
name: punctuation.definition.string.begin.perl
|
1048
|
+
end: \)
|
1049
|
+
patterns:
|
1050
|
+
- include: "#escaped_char"
|
1051
|
+
- include: "#nested_parens"
|
1052
|
+
- name: string.quoted.other.q-brace.perl
|
1053
|
+
endCaptures:
|
1054
|
+
"0":
|
1055
|
+
name: punctuation.definition.string.end.perl
|
1056
|
+
begin: \bqw?\s*\{
|
1057
|
+
beginCaptures:
|
1058
|
+
"0":
|
1059
|
+
name: punctuation.definition.string.begin.perl
|
1060
|
+
end: \}
|
1061
|
+
patterns:
|
1062
|
+
- include: "#escaped_char"
|
1063
|
+
- include: "#nested_braces"
|
1064
|
+
- name: string.quoted.other.q-bracket.perl
|
1065
|
+
endCaptures:
|
1066
|
+
"0":
|
1067
|
+
name: punctuation.definition.string.end.perl
|
1068
|
+
begin: \bqw?\s*\[
|
1069
|
+
beginCaptures:
|
1070
|
+
"0":
|
1071
|
+
name: punctuation.definition.string.begin.perl
|
1072
|
+
end: \]
|
1073
|
+
patterns:
|
1074
|
+
- include: "#escaped_char"
|
1075
|
+
- include: "#nested_brackets"
|
1076
|
+
- name: string.quoted.other.q-ltgt.perl
|
1077
|
+
endCaptures:
|
1078
|
+
"0":
|
1079
|
+
name: punctuation.definition.string.end.perl
|
1080
|
+
begin: \bqw?\s*\<
|
1081
|
+
beginCaptures:
|
1082
|
+
"0":
|
1083
|
+
name: punctuation.definition.string.begin.perl
|
1084
|
+
end: \>
|
1085
|
+
patterns:
|
1086
|
+
- include: "#escaped_char"
|
1087
|
+
- include: "#nested_ltgt"
|
1088
|
+
- name: string.unquoted.program-block.perl
|
1089
|
+
endCaptures:
|
1090
|
+
"0":
|
1091
|
+
name: punctuation.definition.string.end.perl
|
1092
|
+
begin: ^__\w+__
|
1093
|
+
beginCaptures:
|
1094
|
+
"0":
|
1095
|
+
name: punctuation.definition.string.begin.perl
|
1096
|
+
end: $
|
1097
|
+
- name: meta.format.perl
|
1098
|
+
begin: \b(format)\s+([A-Za-z]+)\s*=
|
1099
|
+
beginCaptures:
|
1100
|
+
"1":
|
1101
|
+
name: support.function.perl
|
1102
|
+
"2":
|
1103
|
+
name: entity.name.function.format.perl
|
1104
|
+
end: ^\.\s*$
|
1105
|
+
patterns:
|
1106
|
+
- include: "#line_comment"
|
1107
|
+
- include: "#variable"
|
1108
|
+
- name: support.function.perl
|
1109
|
+
match: \b(ARGV|DATA|ENV|SIG|STDERR|STDIN|STDOUT|atan2|bind|binmode|bless|caller|chdir|chmod|chomp|chop|chown|chr|chroot|close|closedir|cmp|connect|cos|crypt|dbmclose|dbmopen|defined|delete|dump|each|endgrent|endhostent|endnetent|endprotoent|endpwent|endservent|eof|eq|eval|exec|exists|exp|fcntl|fileno|flock|fork|format|formline|ge|getc|getgrent|getgrgid|getgrnam|gethostbyaddr|gethostbyname|gethostent|getlogin|getnetbyaddr|getnetbyname|getnetent|getpeername|getpgrp|getppid|getpriority|getprotobyname|getprotobynumber|getprotoent|getpwent|getpwnam|getpwuid|getservbyname|getservbyport|getservent|getsockname|getsockopt|glob|gmtime|grep|gt|hex|import|index|int|ioctl|join|keys|kill|lc|lcfirst|le|length|link|listen|local|localtime|log|lstat|lt|m|map|mkdir|msgctl|msgget|msgrcv|msgsnd|ne|no|oct|open|opendir|ord|pack|pipe|pop|pos|print|printf|push|q|qq|quotemeta|qw|qx|rand|read|readdir|readlink|recv|ref|rename|reset|reverse|rewinddir|rindex|rmdir|s|scalar|seek|seekdir|semctl|semget|semop|send|setgrent|sethostent|setnetent|setpgrp|setpriority|setprotoent|setpwent|setservent|setsockopt|shift|shmctl|shmget|shmread|shmwrite|shutdown|sin|sleep|socket|socketpair|sort|splice|split|sprintf|sqrt|srand|stat|study|substr|symlink|syscall|sysopen|sysread|system|syswrite|tell|telldir|tie|tied|time|times|tr|truncate|uc|ucfirst|umask|undef|unlink|unpack|unshift|untie|utime|values|vec|waitpid|wantarray|warn|write|y|q|qw|qq|qx)\b
|
1110
|
+
foldingStopMarker: (\*/|^\s*(\}|\]|\)))
|
1111
|
+
keyEquivalent: ^~P
|
1112
|
+
comment: |
|
1113
|
+
|
1114
|
+
TODO: Include RegExp syntax
|
1115
|
+
|