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
@@ -0,0 +1,256 @@
|
|
1
|
+
---
|
2
|
+
name: JavaScript
|
3
|
+
fileTypes:
|
4
|
+
- js
|
5
|
+
- htc
|
6
|
+
- jsx
|
7
|
+
scopeName: source.js
|
8
|
+
uuid: 93E017CC-6F27-11D9-90EB-000D93589AF6
|
9
|
+
foldingStartMarker: ^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$
|
10
|
+
patterns:
|
11
|
+
- name: meta.class.js
|
12
|
+
captures:
|
13
|
+
"1":
|
14
|
+
name: support.class.js
|
15
|
+
"2":
|
16
|
+
name: support.constant.js
|
17
|
+
match: ([a-zA-Z_?.$][\w?.$]*)\.(prototype)\s*=\s*
|
18
|
+
comment: "match stuff like: Sound.prototype = { \xE2\x80\xA6 } when extending an object"
|
19
|
+
- name: meta.function.prototype.js
|
20
|
+
captures:
|
21
|
+
"6":
|
22
|
+
name: variable.parameter.function.js
|
23
|
+
"7":
|
24
|
+
name: punctuation.definition.parameters.end.js
|
25
|
+
"1":
|
26
|
+
name: support.class.js
|
27
|
+
"2":
|
28
|
+
name: support.constant.js
|
29
|
+
"3":
|
30
|
+
name: entity.name.function.js
|
31
|
+
"4":
|
32
|
+
name: storage.type.function.js
|
33
|
+
"5":
|
34
|
+
name: punctuation.definition.parameters.begin.js
|
35
|
+
match: ([a-zA-Z_?.$][\w?.$]*)\.(prototype)\.([a-zA-Z_?.$][\w?.$]*)\s*=\s*(function)?\s*(\()(.*?)(\))
|
36
|
+
comment: "match stuff like: Sound.prototype.play = function() { \xE2\x80\xA6 }"
|
37
|
+
- name: meta.function.js
|
38
|
+
captures:
|
39
|
+
"1":
|
40
|
+
name: support.class.js
|
41
|
+
"2":
|
42
|
+
name: support.constant.js
|
43
|
+
"3":
|
44
|
+
name: entity.name.function.js
|
45
|
+
match: ([a-zA-Z_?.$][\w?.$]*)\.(prototype)\.([a-zA-Z_?.$][\w?.$]*)\s*=\s*
|
46
|
+
comment: "match stuff like: Sound.prototype.play = myfunc"
|
47
|
+
- name: meta.function.js
|
48
|
+
captures:
|
49
|
+
"6":
|
50
|
+
name: punctuation.definition.parameters.end.js
|
51
|
+
"1":
|
52
|
+
name: support.class.js
|
53
|
+
"2":
|
54
|
+
name: entity.name.function.js
|
55
|
+
"3":
|
56
|
+
name: storage.type.function.js
|
57
|
+
"4":
|
58
|
+
name: punctuation.definition.parameters.begin.js
|
59
|
+
"5":
|
60
|
+
name: variable.parameter.function.js
|
61
|
+
match: ([a-zA-Z_?.$][\w?.$]*)\.([a-zA-Z_?.$][\w?.$]*)\s*=\s*(function)\s*(\()(.*?)(\))
|
62
|
+
comment: "match stuff like: Sound.play = function() { \xE2\x80\xA6 }"
|
63
|
+
- name: meta.function.js
|
64
|
+
captures:
|
65
|
+
"1":
|
66
|
+
name: entity.name.function.js
|
67
|
+
"2":
|
68
|
+
name: storage.type.function.js
|
69
|
+
"3":
|
70
|
+
name: punctuation.definition.parameters.begin.js
|
71
|
+
"4":
|
72
|
+
name: variable.parameter.function.js
|
73
|
+
"5":
|
74
|
+
name: punctuation.definition.parameters.end.js
|
75
|
+
match: ([a-zA-Z_?$][\w?$]*)\s*=\s*(function)\s*(\()(.*?)(\))
|
76
|
+
comment: "match stuff like: play = function() { \xE2\x80\xA6 }"
|
77
|
+
- name: meta.function.js
|
78
|
+
captures:
|
79
|
+
"1":
|
80
|
+
name: storage.type.function.js
|
81
|
+
"2":
|
82
|
+
name: entity.name.function.js
|
83
|
+
"3":
|
84
|
+
name: punctuation.definition.parameters.begin.js
|
85
|
+
"4":
|
86
|
+
name: variable.parameter.function.js
|
87
|
+
"5":
|
88
|
+
name: punctuation.definition.parameters.end.js
|
89
|
+
match: \b(function)\s+([a-zA-Z_$]\w*)?\s*(\()(.*?)(\))
|
90
|
+
comment: "match regular function like: function myFunc(arg) { \xE2\x80\xA6 }"
|
91
|
+
- name: meta.function.json.js
|
92
|
+
captures:
|
93
|
+
"1":
|
94
|
+
name: entity.name.function.js
|
95
|
+
"2":
|
96
|
+
name: storage.type.function.js
|
97
|
+
"3":
|
98
|
+
name: punctuation.definition.parameters.begin.js
|
99
|
+
"4":
|
100
|
+
name: variable.parameter.function.js
|
101
|
+
"5":
|
102
|
+
name: punctuation.definition.parameters.end.js
|
103
|
+
match: \b([a-zA-Z_?.$][\w?.$]*)\s*:\s*\b(function)?\s*(\()(.*?)(\))
|
104
|
+
comment: "match stuff like: foobar: function() { \xE2\x80\xA6 }"
|
105
|
+
- name: meta.function.json.js
|
106
|
+
captures:
|
107
|
+
"6":
|
108
|
+
name: punctuation.definition.string.begin.js
|
109
|
+
"11":
|
110
|
+
name: variable.parameter.function.js
|
111
|
+
"7":
|
112
|
+
name: entity.name.function.js
|
113
|
+
"12":
|
114
|
+
name: punctuation.definition.parameters.end.js
|
115
|
+
"8":
|
116
|
+
name: punctuation.definition.string.end.js
|
117
|
+
"9":
|
118
|
+
name: entity.name.function.js
|
119
|
+
"1":
|
120
|
+
name: string.quoted.single.js
|
121
|
+
"2":
|
122
|
+
name: punctuation.definition.string.begin.js
|
123
|
+
"3":
|
124
|
+
name: entity.name.function.js
|
125
|
+
"4":
|
126
|
+
name: punctuation.definition.string.end.js
|
127
|
+
"10":
|
128
|
+
name: punctuation.definition.parameters.begin.js
|
129
|
+
"5":
|
130
|
+
name: string.quoted.double.js
|
131
|
+
match: (?:((')(.*?)('))|((")(.*?)(")))\s*:\s*\b(function)?\s*(\()(.*?)(\))
|
132
|
+
comment: "Attempt to match \"foo\": function"
|
133
|
+
- name: meta.class.instance.constructor
|
134
|
+
captures:
|
135
|
+
"1":
|
136
|
+
name: keyword.operator.new.js
|
137
|
+
"2":
|
138
|
+
name: entity.name.type.instance.js
|
139
|
+
match: (new)\s+(\w+(?:\.\w*)?)
|
140
|
+
- name: entity.name.type.object.js.firebug
|
141
|
+
match: \b(console)\b
|
142
|
+
- name: support.function.js.firebug
|
143
|
+
match: \.(warn|info|log|error|time|timeEnd|assert)\b
|
144
|
+
- name: constant.numeric.js
|
145
|
+
match: \b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\.[0-9]+)?))\b
|
146
|
+
- name: string.quoted.single.js
|
147
|
+
endCaptures:
|
148
|
+
"0":
|
149
|
+
name: punctuation.definition.string.end.js
|
150
|
+
begin: "'"
|
151
|
+
beginCaptures:
|
152
|
+
"0":
|
153
|
+
name: punctuation.definition.string.begin.js
|
154
|
+
end: "'"
|
155
|
+
patterns:
|
156
|
+
- name: constant.character.escape.js
|
157
|
+
match: \\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)
|
158
|
+
- name: string.quoted.double.js
|
159
|
+
endCaptures:
|
160
|
+
"0":
|
161
|
+
name: punctuation.definition.string.end.js
|
162
|
+
begin: "\""
|
163
|
+
beginCaptures:
|
164
|
+
"0":
|
165
|
+
name: punctuation.definition.string.begin.js
|
166
|
+
end: "\""
|
167
|
+
patterns:
|
168
|
+
- name: constant.character.escape.js
|
169
|
+
match: \\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)
|
170
|
+
- name: comment.block.documentation.js
|
171
|
+
captures:
|
172
|
+
"0":
|
173
|
+
name: punctuation.definition.comment.js
|
174
|
+
begin: /\*\*
|
175
|
+
end: \*/
|
176
|
+
- name: comment.block.js
|
177
|
+
captures:
|
178
|
+
"0":
|
179
|
+
name: punctuation.definition.comment.js
|
180
|
+
begin: /\*
|
181
|
+
end: \*/
|
182
|
+
- name: comment.line.double-slash.js
|
183
|
+
captures:
|
184
|
+
"1":
|
185
|
+
name: punctuation.definition.comment.js
|
186
|
+
match: (//).*$\n?
|
187
|
+
- name: comment.block.html.js
|
188
|
+
captures:
|
189
|
+
"0":
|
190
|
+
name: punctuation.definition.comment.html.js
|
191
|
+
"2":
|
192
|
+
name: punctuation.definition.comment.html.js
|
193
|
+
match: (<!--|-->)
|
194
|
+
- name: storage.type.js
|
195
|
+
match: \b(boolean|byte|char|class|double|enum|float|function|int|interface|long|short|var|void)\b
|
196
|
+
- name: storage.modifier.js
|
197
|
+
match: \b(const|export|extends|final|implements|native|private|protected|public|static|synchronized|throws|transient|volatile)\b
|
198
|
+
- name: keyword.control.js
|
199
|
+
match: \b(break|case|catch|continue|default|do|else|finally|for|goto|if|import|package|return|switch|throw|try|while)\b
|
200
|
+
- name: keyword.operator.js
|
201
|
+
match: \b(delete|in|instanceof|new|typeof|with)\b
|
202
|
+
- name: constant.language.boolean.true.js
|
203
|
+
match: \btrue\b
|
204
|
+
- name: constant.language.boolean.false.js
|
205
|
+
match: \bfalse\b
|
206
|
+
- name: constant.language.null.js
|
207
|
+
match: \bnull\b
|
208
|
+
- name: variable.language.js
|
209
|
+
match: \b(super|this)\b
|
210
|
+
- name: keyword.other.js
|
211
|
+
match: \b(debugger)\b
|
212
|
+
- name: support.class.js
|
213
|
+
match: \b(Anchor|Applet|Area|Array|Boolean|Button|Checkbox|Date|document|event|FileUpload|Form|Frame|Function|Hidden|History|Image|JavaArray|JavaClass|JavaObject|JavaPackage|java|Layer|Link|Location|Math|MimeType|Number|navigator|netscape|Object|Option|Packages|Password|Plugin|Radio|RegExp|Reset|Select|String|Style|Submit|screen|sun|Text|Textarea|window|XMLHttpRequest)\b
|
214
|
+
- name: support.function.js
|
215
|
+
match: \b(s(h(ift|ow(Mod(elessDialog|alDialog)|Help))|croll(X|By(Pages|Lines)?|Y|To)?|t(op|rike)|i(n|zeToContent|debar|gnText)|ort|u(p|b(str(ing)?)?)|pli(ce|t)|e(nd|t(Re(sizable|questHeader)|M(i(nutes|lliseconds)|onth)|Seconds|Ho(tKeys|urs)|Year|Cursor|Time(out)?|Interval|ZOptions|Date|UTC(M(i(nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(ome|andleEvent)|navigate|c(har(CodeAt|At)|o(s|n(cat|textual|firm)|mpile)|eil|lear(Timeout|Interval)?|a(ptureEvents|ll)|reate(StyleSheet|Popup|EventObject))|t(o(GMTString|S(tring|ource)|U(TCString|pperCase)|Lo(caleString|werCase))|est|a(n|int(Enabled)?))|i(s(NaN|Finite)|ndexOf|talics)|d(isableExternalCapture|ump|etachEvent)|u(n(shift|taint|escape|watch)|pdateCommands)|j(oin|avaEnabled)|p(o(p|w)|ush|lugins.refresh|a(ddings|rse(Int|Float)?)|r(int|ompt|eference))|e(scape|nableExternalCapture|val|lementFromPoint|x(p|ec(Script|Command)?))|valueOf|UTC|queryCommand(State|Indeterm|Enabled|Value)|f(i(nd|le(ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(nt(size|color)|rward)|loor|romCharCode)|watch|l(ink|o(ad|g)|astIndexOf)|a(sin|nchor|cos|t(tachEvent|ob|an(2)?)|pply|lert|b(s|ort))|r(ou(nd|teEvents)|e(size(By|To)|calc|turnValue|place|verse|l(oad|ease(Capture|Events)))|andom)|g(o|et(ResponseHeader|M(i(nutes|lliseconds)|onth)|Se(conds|lection)|Hours|Year|Time(zoneOffset)?|Da(y|te)|UTC(M(i(nutes|lliseconds)|onth)|Seconds|Hours|Da(y|te)|FullYear)|FullYear|A(ttention|llResponseHeaders)))|m(in|ove(B(y|elow)|To(Absolute)?|Above)|ergeAttributes|a(tch|rgins|x))|b(toa|ig|o(ld|rderWidths)|link|ack))\b(?=\()
|
216
|
+
- name: support.function.dom.js
|
217
|
+
match: \b(s(ub(stringData|mit)|plitText|e(t(NamedItem|Attribute(Node)?)|lect))|has(ChildNodes|Feature)|namedItem|c(l(ick|o(se|neNode))|reate(C(omment|DATASection|aption)|T(Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(ntityReference|lement)|Attribute))|tabIndex|i(nsert(Row|Before|Cell|Data)|tem)|open|delete(Row|C(ell|aption)|T(Head|Foot)|Data)|focus|write(ln)?|a(dd|ppend(Child|Data))|re(set|place(Child|Data)|move(NamedItem|Child|Attribute(Node)?)?)|get(NamedItem|Element(sBy(Name|TagName)|ById)|Attribute(Node)?)|blur)\b(?=\()
|
218
|
+
- name: support.constant.js
|
219
|
+
match: (?<=\.)(s(ystemLanguage|cr(ipts|ollbars|een(X|Y|Top|Left))|t(yle(Sheets)?|atus(Text|bar)?)|ibling(Below|Above)|ource|uffixes|e(curity(Policy)?|l(ection|f)))|h(istory|ost(name)?|as(h|Focus))|y|X(MLDocument|SLDocument)|n(ext|ame(space(s|URI)|Prop))|M(IN_VALUE|AX_VALUE)|c(haracterSet|o(n(structor|trollers)|okieEnabled|lorDepth|mp(onents|lete))|urrent|puClass|l(i(p(boardData)?|entInformation)|osed|asses)|alle(e|r)|rypto)|t(o(olbar|p)|ext(Transform|Indent|Decoration|Align)|ags)|SQRT(1_2|2)|i(n(ner(Height|Width)|put)|ds|gnoreCase)|zIndex|o(scpu|n(readystatechange|Line)|uter(Height|Width)|p(sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(i(splay|alog(Height|Top|Width|Left|Arguments)|rectories)|e(scription|fault(Status|Ch(ecked|arset)|View)))|u(ser(Profile|Language|Agent)|n(iqueID|defined)|pdateInterval)|_content|p(ixelDepth|ort|ersonalbar|kcs11|l(ugins|atform)|a(thname|dding(Right|Bottom|Top|Left)|rent(Window|Layer)?|ge(X(Offset)?|Y(Offset)?))|r(o(to(col|type)|duct(Sub)?|mpter)|e(vious|fix)))|e(n(coding|abledPlugin)|x(ternal|pando)|mbeds)|v(isibility|endor(Sub)?|Linkcolor)|URLUnencoded|P(I|OSITIVE_INFINITY)|f(ilename|o(nt(Size|Family|Weight)|rmName)|rame(s|Element)|gColor)|E|whiteSpace|l(i(stStyleType|n(eHeight|kColor))|o(ca(tion(bar)?|lName)|wsrc)|e(ngth|ft(Context)?)|a(st(M(odified|atch)|Index|Paren)|yer(s|X)|nguage))|a(pp(MinorVersion|Name|Co(deName|re)|Version)|vail(Height|Top|Width|Left)|ll|r(ity|guments)|Linkcolor|bove)|r(ight(Context)?|e(sponse(XML|Text)|adyState))|global|x|m(imeTypes|ultiline|enubar|argin(Right|Bottom|Top|Left))|L(N(10|2)|OG(10E|2E))|b(o(ttom|rder(RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(Color|Image)))\b
|
220
|
+
- name: support.constant.dom.js
|
221
|
+
match: (?<=\.)(s(hape|ystemId|c(heme|ope|rolling)|ta(ndby|rt)|ize|ummary|pecified|e(ctionRowIndex|lected(Index)?)|rc)|h(space|t(tpEquiv|mlFor)|e(ight|aders)|ref(lang)?)|n(o(Resize|tation(s|Name)|Shade|Href|de(Name|Type|Value)|Wrap)|extSibling|ame)|c(h(ildNodes|Off|ecked|arset)?|ite|o(ntent|o(kie|rds)|de(Base|Type)?|l(s|Span|or)|mpact)|ell(s|Spacing|Padding)|l(ear|assName)|aption)|t(ype|Bodies|itle|Head|ext|a(rget|gName)|Foot)|i(sMap|ndex|d|m(plementation|ages))|o(ptions|wnerDocument|bject)|d(i(sabled|r)|o(c(type|umentElement)|main)|e(clare|f(er|ault(Selected|Checked|Value)))|at(eTime|a))|useMap|p(ublicId|arentNode|r(o(file|mpt)|eviousSibling))|e(n(ctype|tities)|vent|lements)|v(space|ersion|alue(Type)?|Link|Align)|URL|f(irstChild|orm(s)?|ace|rame(Border)?)|width|l(ink(s)?|o(ngDesc|wSrc)|a(stChild|ng|bel))|a(nchors|c(ce(ssKey|pt(Charset)?)|tion)|ttributes|pplets|l(t|ign)|r(chive|eas)|xis|Link|bbr)|r(ow(s|Span|Index)|ules|e(v|ferrer|l|adOnly))|m(ultiple|e(thod|dia)|a(rgin(Height|Width)|xLength))|b(o(dy|rder)|ackground|gColor))\b
|
222
|
+
- name: support.constant.dom.js
|
223
|
+
match: \b(ELEMENT_NODE|ATTRIBUTE_NODE|TEXT_NODE|CDATA_SECTION_NODE|ENTITY_REFERENCE_NODE|ENTITY_NODE|PROCESSING_INSTRUCTION_NODE|COMMENT_NODE|DOCUMENT_NODE|DOCUMENT_TYPE_NODE|DOCUMENT_FRAGMENT_NODE|NOTATION_NODE|INDEX_SIZE_ERR|DOMSTRING_SIZE_ERR|HIERARCHY_REQUEST_ERR|WRONG_DOCUMENT_ERR|INVALID_CHARACTER_ERR|NO_DATA_ALLOWED_ERR|NO_MODIFICATION_ALLOWED_ERR|NOT_FOUND_ERR|NOT_SUPPORTED_ERR|INUSE_ATTRIBUTE_ERR)\b
|
224
|
+
- name: support.function.event-handler.js
|
225
|
+
match: \bon(R(ow(s(inserted|delete)|e(nter|xit))|e(s(ize(start|end)?|et)|adystatechange))|Mouse(o(ut|ver)|down|up|move)|B(efore(cut|deactivate|u(nload|pdate)|p(aste|rint)|editfocus|activate)|lur)|S(croll|top|ubmit|elect(start|ionchange)?)|H(over|elp)|C(hange|ont(extmenu|rolselect)|ut|ellchange|l(ick|ose))|D(eactivate|ata(setc(hanged|omplete)|available)|r(op|ag(start|over|drop|en(ter|d)|leave)?)|blclick)|Unload|P(aste|ropertychange)|Error(update)?|Key(down|up|press)|Focus|Load|A(ctivate|fter(update|print)|bort))\b
|
226
|
+
- name: keyword.operator.js
|
227
|
+
match: "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^=|\\b(in|instanceof|new|delete|typeof|void)\\b"
|
228
|
+
- name: constant.language.js
|
229
|
+
match: \b(Infinity|NaN|Undefined)\b
|
230
|
+
- name: string.regexp.js
|
231
|
+
endCaptures:
|
232
|
+
"1":
|
233
|
+
name: punctuation.definition.string.end.js
|
234
|
+
begin: (?<=[=(:]|^|return)\s*(/)(?![/*+{}?])
|
235
|
+
beginCaptures:
|
236
|
+
"1":
|
237
|
+
name: punctuation.definition.string.begin.js
|
238
|
+
end: (/)[igm]*
|
239
|
+
patterns:
|
240
|
+
- name: constant.character.escape.js
|
241
|
+
match: \\.
|
242
|
+
- name: punctuation.terminator.statement.js
|
243
|
+
match: \;
|
244
|
+
- name: meta.delimiter.object.comma.js
|
245
|
+
match: ,[ |\t]*
|
246
|
+
- name: meta.delimiter.method.period.js
|
247
|
+
match: \.
|
248
|
+
- name: meta.brace.curly.js
|
249
|
+
match: \{|\}
|
250
|
+
- name: meta.brace.round.js
|
251
|
+
match: \(|\)
|
252
|
+
- name: meta.brace.square.js
|
253
|
+
match: \[|\]
|
254
|
+
foldingStopMarker: ^\s*\}
|
255
|
+
keyEquivalent: ^~J
|
256
|
+
comment: "JavaScript Syntax: version 2.0"
|
@@ -0,0 +1,72 @@
|
|
1
|
+
---
|
2
|
+
name: Prototype & Script.aculo.us (JavaScript)
|
3
|
+
scopeName: source.js.prototype
|
4
|
+
repository:
|
5
|
+
leading-space:
|
6
|
+
patterns:
|
7
|
+
- name: meta.leading-tabs
|
8
|
+
begin: ^(?=(\t| ))
|
9
|
+
end: (?=[^\t\s])
|
10
|
+
patterns:
|
11
|
+
- captures:
|
12
|
+
"6":
|
13
|
+
name: meta.even-tab.group6.spaces
|
14
|
+
"11":
|
15
|
+
name: meta.odd-tab.group11.spaces
|
16
|
+
"7":
|
17
|
+
name: meta.odd-tab.group7.spaces
|
18
|
+
"8":
|
19
|
+
name: meta.even-tab.group8.spaces
|
20
|
+
"9":
|
21
|
+
name: meta.odd-tab.group9.spaces
|
22
|
+
"1":
|
23
|
+
name: meta.odd-tab.group1.spaces
|
24
|
+
"2":
|
25
|
+
name: meta.even-tab.group2.spaces
|
26
|
+
"3":
|
27
|
+
name: meta.odd-tab.group3.spaces
|
28
|
+
"4":
|
29
|
+
name: meta.even-tab.group4.spaces
|
30
|
+
"10":
|
31
|
+
name: meta.even-tab.group10.spaces
|
32
|
+
"5":
|
33
|
+
name: meta.odd-tab.group5.spaces
|
34
|
+
match: ( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?
|
35
|
+
- captures:
|
36
|
+
"6":
|
37
|
+
name: meta.even-tab.group6.tab
|
38
|
+
"11":
|
39
|
+
name: meta.odd-tab.group11.tab
|
40
|
+
"7":
|
41
|
+
name: meta.odd-tab.group7.tab
|
42
|
+
"8":
|
43
|
+
name: meta.even-tab.group8.tab
|
44
|
+
"9":
|
45
|
+
name: meta.odd-tab.group9.tab
|
46
|
+
"1":
|
47
|
+
name: meta.odd-tab.group1.tab
|
48
|
+
"2":
|
49
|
+
name: meta.even-tab.group2.tab
|
50
|
+
"3":
|
51
|
+
name: meta.odd-tab.group3.tab
|
52
|
+
"4":
|
53
|
+
name: meta.even-tab.group4.tab
|
54
|
+
"10":
|
55
|
+
name: meta.even-tab.group10.tab
|
56
|
+
"5":
|
57
|
+
name: meta.odd-tab.group5.tab
|
58
|
+
match: (\t)(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?
|
59
|
+
uuid: 0BD60463-DDF6-436F-9295-89DEF577FF30
|
60
|
+
foldingStartMarker: (^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$)
|
61
|
+
patterns:
|
62
|
+
- name: support.class.prototype.js
|
63
|
+
match: \b(Prototype|Class|Abstract|Try|PeriodicalExecuter|Enumerable|Hash|ObjectRange|Element|Ajax|Responders|Base|Request|Updater|PeriodicalUpdater|Toggle|Insertion|Before|Top|Bottom|After|ClassNames|Form|Serializers|TimedObserver|Observer|EventObserver|Event|Position|Effect|Effect2|Transitions|ScopedQueue|Queues|DefaultOptions|Parallel|Opacity|Move|MoveBy|Scale|Highlight|ScrollTo|Fade|Appear|Puff|BlindUp|BlindDown|SwitchOff|DropOut|Shake|SlideDown|SlideUp|Squish|Grow|Shrink|Pulsate|Fold|console)\b
|
64
|
+
- name: support.function.js.prototype
|
65
|
+
match: \b(Version|ScriptFragment|emptyFunction|K|create|toColorPart|succ|times|these|initialize|registerCallback|onTimerEvent|stripTags|stripScripts|extractScripts|evalScripts|escapeHTML|unescapeHTML|toQueryParams|toArray|camelize|inspect|each|inGroupsOf|eachSlice|all|any|collect|detect|findAll|grep|include|inject|invoke|max|min|partition|pluck|reject|sortBy|toArray|zip|inspect|map|find|select|member|entries|_each|_reverse|reverse|clear|first|last|compact|flatten|without|indexOf|reverse|shift|inspect|keys|values|merge|toQueryString|inspect|include|getTransport|activeRequestCount|responders|register|unregister|dispatch|onComplete|setOptions|responseIsSuccess|responseIsFailure|request|setRequestHeaders|onStateChange|header|evalJSON|evalResponse|respondToReadyState|dispatchException|updateContent|start|stop|updateComplete|toggle|hide|show|remove|update|getHeight|classNames|hasClassName|addClassName|removeClassName|cleanWhitespace|empty|scrollTo|getStyle|setStyle|getDimensions|makePositioned|undoPositioned|makeClipping|undoClipping|recursivelyCollect|ancestors|descendants|previousSiblings|nextSiblings|siblings|match|up|down|previous|next|getElementsBySelector|getElementsByClassName|contentFromAnonymousTable|initializeRange|insertContent|set|add|toString|focus|present|activate|serialize|getElements|getInputs|disable|enable|findFirstElement|focusFirstElement|reset|getValue|input|inputSelector|textarea|selectOne|selectMany|onElementEvent|registerFormCallbacks|element|isLeftClick|pointerX|pointerY|findElement|observers|unloadCache|observe|stopObserving|includeScrollOffsets|prepare|realOffset|cumulativeOffset|positionedOffset|offsetParent|within|withinIncludingScrolloffsets|overlap|clone|page|clone|absolutize|relativize)\b
|
66
|
+
- include: source.js
|
67
|
+
- name: variable.other.js.prototype
|
68
|
+
match: ((?<=var\s)\b[a-zA-Z]\w*\b|\b[a-zA-Z]\w*\b(?=(\[|\s*(&|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|/=|%=|\+=|\-=|&=|\^=))))
|
69
|
+
- include: "#leading-space"
|
70
|
+
foldingStopMarker: (^\s*\}|^\s*\)|^(?!.*/\*).*\*/)
|
71
|
+
keyEquivalent: ^~J
|
72
|
+
comment: "Prototype and Scriptaculous Javascript Frameworks. By Justin Palmer, Thomas Aylott & Martin Str\xC3\xB6m"
|
@@ -0,0 +1,140 @@
|
|
1
|
+
---
|
2
|
+
name: Prototype & Script.aculo.us (JavaScript) Bracketed
|
3
|
+
scopeName: source.js.prototype.bracketed
|
4
|
+
repository:
|
5
|
+
conditional-compilation:
|
6
|
+
patterns:
|
7
|
+
- name: comment.block.conditional.js
|
8
|
+
captures:
|
9
|
+
"0":
|
10
|
+
name: punctuation.definition.comment.js
|
11
|
+
begin: /\*(?=@)
|
12
|
+
end: (?<=@)\*/
|
13
|
+
patterns:
|
14
|
+
- include: $base
|
15
|
+
- name: keyword.control.conditional.js
|
16
|
+
captures:
|
17
|
+
"1":
|
18
|
+
name: punctuation.definition.keyword.js
|
19
|
+
match: (@)(if|elif|else|end)
|
20
|
+
- name: keyword.operator.conditional.js
|
21
|
+
captures:
|
22
|
+
"1":
|
23
|
+
name: punctuation.definition.keyword.js
|
24
|
+
match: (@)(cc_on|set)
|
25
|
+
- name: variable.other.conditional.js
|
26
|
+
captures:
|
27
|
+
"1":
|
28
|
+
name: punctuation.definition.variable.js
|
29
|
+
match: (@)(_win32|_win16|_mac|_alpha|_x86|_mc680x0|_PowerPC|_jscript_build|_jscript_version|_jscript|_debug|_fast|[a-zA-Z]\w+)
|
30
|
+
round-brackets:
|
31
|
+
patterns:
|
32
|
+
- name: meta.group.braces.curly.function.js.prototype
|
33
|
+
captures:
|
34
|
+
"1":
|
35
|
+
name: punctuation.section.function.js.prototype
|
36
|
+
"2":
|
37
|
+
name: punctuation.separator.objects.js.prototype
|
38
|
+
begin: (?<=\))\s*+(\{)
|
39
|
+
end: (\})(,)?\s*
|
40
|
+
patterns:
|
41
|
+
- include: $base
|
42
|
+
- name: meta.group.braces.curly
|
43
|
+
captures:
|
44
|
+
"1":
|
45
|
+
name: punctuation.section.scope.js
|
46
|
+
"2":
|
47
|
+
name: punctuation.separator.objects.js.prototype
|
48
|
+
begin: (\{)
|
49
|
+
end: (\})(,)?\s*
|
50
|
+
patterns:
|
51
|
+
- captures:
|
52
|
+
"1":
|
53
|
+
name: invalid.illegal.delimiter.object.comma.js
|
54
|
+
match: (,)\s*+(?=\})
|
55
|
+
- captures:
|
56
|
+
"1":
|
57
|
+
name: string.quoted.double.js.prototype
|
58
|
+
"2":
|
59
|
+
name: punctuation.definition.string.js.prototype
|
60
|
+
"3":
|
61
|
+
name: constant.other.object.key.js.prototype
|
62
|
+
"4":
|
63
|
+
name: punctuation.definition.string.js.prototype
|
64
|
+
"5":
|
65
|
+
name: punctuation.separator.objects.js.prototype
|
66
|
+
match: ((")([^"]*)(")\s*)(:)\s*+(?!function)
|
67
|
+
- captures:
|
68
|
+
"1":
|
69
|
+
name: string.quoted.single.js.prototype
|
70
|
+
"2":
|
71
|
+
name: punctuation.definition.string.js.prototype
|
72
|
+
"3":
|
73
|
+
name: constant.other.object.key.js.prototype
|
74
|
+
"4":
|
75
|
+
name: punctuation.definition.string.js.prototype
|
76
|
+
"5":
|
77
|
+
name: punctuation.separator.objects.js.prototype
|
78
|
+
match: ((')([^']*)(')\s*)(:)\s*+(?!function)
|
79
|
+
- captures:
|
80
|
+
"1":
|
81
|
+
name: constant.other.object.key.js.prototype
|
82
|
+
"2":
|
83
|
+
name: punctuation.separator.objects.js.prototype
|
84
|
+
match: \b(\w+\b\s*)(:)\s*+(?!function)
|
85
|
+
- include: $base
|
86
|
+
- name: meta.group.braces.round
|
87
|
+
captures:
|
88
|
+
"1":
|
89
|
+
name: punctuation.section.scope.js
|
90
|
+
begin: (\()(?!\))
|
91
|
+
end: (\))
|
92
|
+
patterns:
|
93
|
+
- include: $base
|
94
|
+
- name: meta.group.braces.square
|
95
|
+
captures:
|
96
|
+
"1":
|
97
|
+
name: punctuation.section.scope.js
|
98
|
+
begin: (\[)(?!\])
|
99
|
+
end: (\])
|
100
|
+
patterns:
|
101
|
+
- include: $base
|
102
|
+
uuid: 1FD22341-8BAA-4F89-8257-92CBDD7DE29D
|
103
|
+
foldingStartMarker: (\{[^\}]*$|\([^\)]*$|<%)
|
104
|
+
patterns:
|
105
|
+
- name: meta.source.embedded.return-value
|
106
|
+
endCaptures:
|
107
|
+
"0":
|
108
|
+
name: punctuation.section.embedded.end.js
|
109
|
+
begin: <%=
|
110
|
+
beginCaptures:
|
111
|
+
"0":
|
112
|
+
name: punctuation.section.embedded.begin.js
|
113
|
+
end: "%>"
|
114
|
+
patterns:
|
115
|
+
- name: source.ruby.rails.embedded.html
|
116
|
+
begin: (?<=<%=)
|
117
|
+
end: (?=%>)
|
118
|
+
patterns:
|
119
|
+
- include: source.ruby.rails
|
120
|
+
- name: meta.source.embedded
|
121
|
+
endCaptures:
|
122
|
+
"0":
|
123
|
+
name: punctuation.section.embedded.end.js
|
124
|
+
begin: <%(?![=#])
|
125
|
+
beginCaptures:
|
126
|
+
"0":
|
127
|
+
name: punctuation.section.embedded.begin.js
|
128
|
+
end: "%>"
|
129
|
+
patterns:
|
130
|
+
- name: source.ruby.rails.embedded.html
|
131
|
+
begin: (?<=<%)
|
132
|
+
end: (?=%>)
|
133
|
+
patterns:
|
134
|
+
- include: source.ruby.rails
|
135
|
+
- include: "#conditional-compilation"
|
136
|
+
- include: "#round-brackets"
|
137
|
+
- include: source.js.prototype
|
138
|
+
foldingStopMarker: (^[^\{]*\}|^\s*\)|%>)
|
139
|
+
keyEquivalent: ^~J
|
140
|
+
comment: This is a wrapper for and adds nested bracket scopes to Prototype & Script.aculo.us (JavaScript). It also allow for embedded ruby source. By Thomas Aylott
|
@@ -0,0 +1,114 @@
|
|
1
|
+
---
|
2
|
+
name: jQuery (JavaScript)
|
3
|
+
scopeName: source.js.jquery
|
4
|
+
repository:
|
5
|
+
nested-parens:
|
6
|
+
captures:
|
7
|
+
"0":
|
8
|
+
name: punctuation.section.scope.js
|
9
|
+
begin: \(
|
10
|
+
end: \)
|
11
|
+
patterns:
|
12
|
+
- include: "#nested-parens"
|
13
|
+
- include: source.js
|
14
|
+
css-selector:
|
15
|
+
name: meta.selector.css
|
16
|
+
begin: (?=\s*[.*#a-zA-Z])
|
17
|
+
end: (?=["'])
|
18
|
+
patterns:
|
19
|
+
- name: entity.name.tag.css
|
20
|
+
match: \b(a|abbr|acronym|address|area|b|base|big|blockquote|body|br|button|caption|cite|code|col|colgroup|dd|del|dfn|div|dl|dt|em|fieldset|form|frame|frameset|(h[1-6])|head|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|ul|var)\b
|
21
|
+
- name: entity.other.attribute-name.class.css
|
22
|
+
captures:
|
23
|
+
"1":
|
24
|
+
name: punctuation.definition.attribute-name.css
|
25
|
+
match: (\.)[a-zA-Z0-9_-]+
|
26
|
+
- name: entity.other.attribute-name.id.css
|
27
|
+
captures:
|
28
|
+
"1":
|
29
|
+
name: punctuation.definition.attribute-name.css
|
30
|
+
match: (#)[a-zA-Z0-9_-]+
|
31
|
+
- name: entity.name.tag.wildcard.css
|
32
|
+
match: \*
|
33
|
+
- name: entity.other.attribute-name.pseudo-class.css
|
34
|
+
captures:
|
35
|
+
"1":
|
36
|
+
name: punctuation.definition.attribute-name.css
|
37
|
+
match: (:)\b(active|after|before|first-letter|first-line|hover|link|visited)\b
|
38
|
+
uuid: 1AD8EB10-62BE-417C-BC4B-29B5C6F0B36A
|
39
|
+
foldingStartMarker: (^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$)
|
40
|
+
patterns:
|
41
|
+
- endCaptures:
|
42
|
+
"1":
|
43
|
+
name: punctuation.section.class.js
|
44
|
+
begin: (\$)(\()
|
45
|
+
contentName: meta.selector.jquery
|
46
|
+
beginCaptures:
|
47
|
+
"1":
|
48
|
+
name: support.class.js.jquery
|
49
|
+
"2":
|
50
|
+
name: punctuation.section.class.js
|
51
|
+
end: (\))
|
52
|
+
patterns:
|
53
|
+
- include: "#nested-parens"
|
54
|
+
- endCaptures:
|
55
|
+
"0":
|
56
|
+
name: punctuation.definition.selector.end.js
|
57
|
+
begin: "'"
|
58
|
+
beginCaptures:
|
59
|
+
"0":
|
60
|
+
name: punctuation.definition.selector.begin.js
|
61
|
+
end: "'"
|
62
|
+
patterns:
|
63
|
+
- include: "#css-selector"
|
64
|
+
- endCaptures:
|
65
|
+
"0":
|
66
|
+
name: punctuation.definition.selector.end.js
|
67
|
+
begin: "\""
|
68
|
+
beginCaptures:
|
69
|
+
"0":
|
70
|
+
name: punctuation.definition.selector.begin.js
|
71
|
+
end: "\""
|
72
|
+
patterns:
|
73
|
+
- include: "#css-selector"
|
74
|
+
- include: source.js
|
75
|
+
- endCaptures:
|
76
|
+
"1":
|
77
|
+
name: punctuation.section.function.js
|
78
|
+
begin: \b(add|ancestors|appendTo|children|filter|find|insertAfter|insertBefore|next|not|parent|parents|prependTo|prev|remove|siblings)\s*(\()
|
79
|
+
contentName: meta.selector.jquery
|
80
|
+
beginCaptures:
|
81
|
+
"1":
|
82
|
+
name: support.function.js.jquery
|
83
|
+
"2":
|
84
|
+
name: punctuation.section.function.js
|
85
|
+
end: (\))
|
86
|
+
patterns:
|
87
|
+
- include: "#nested-parens"
|
88
|
+
- endCaptures:
|
89
|
+
"0":
|
90
|
+
name: punctuation.definition.selector.end.js
|
91
|
+
begin: "'"
|
92
|
+
beginCaptures:
|
93
|
+
"0":
|
94
|
+
name: punctuation.definition.selector.begin.js
|
95
|
+
end: "'"
|
96
|
+
patterns:
|
97
|
+
- include: "#css-selector"
|
98
|
+
- endCaptures:
|
99
|
+
"0":
|
100
|
+
name: punctuation.definition.selector.end.js
|
101
|
+
begin: "\""
|
102
|
+
beginCaptures:
|
103
|
+
"0":
|
104
|
+
name: punctuation.definition.selector.begin.js
|
105
|
+
end: "\""
|
106
|
+
patterns:
|
107
|
+
- include: "#css-selector"
|
108
|
+
- include: source.js
|
109
|
+
- name: support.function.js.jquery
|
110
|
+
match: \.(addClass|after|append|attr|background|before|bind|blur|change|click|color|css|dblclick|domManip|each|empty|end|error|extend|fadeIn|fadeOut|fadeTo|float|focus|get|height|hide|hover|href|html|id|init|keydown|keypress|keyup|left|length|load|mousedown|mousemove|mouseout|mouseover|mouseup|name|oneblur|onechange|oneclick|onedblclick|oneerror|onefocus|onekeydown|onekeypress|onekeyup|oneload|onemousedown|onemousemove|onemouseout|onemouseover|onemouseup|onereset|oneresize|onescroll|oneselect|onesubmit|oneunload|overflow|position|prepend|pushStack|ready|rel|removeClass|reset|resize|scroll|select|show|size|slideDown|slideUp|src|submit|text|title|toggle|toggleClass|top|trigger|unbind|unblur|unchange|unclick|undblclick|unerror|unfocus|unkeydown|unkeypress|unkeyup|unload|unmousedown|unmousemove|unmouseout|unmouseover|unmouseup|unreset|unresize|unscroll|unselect|unsubmit|ununload|val|width|wrap)\b
|
111
|
+
- include: source.js
|
112
|
+
foldingStopMarker: (^\s*\}|^\s*\)|^(?!.*/\*).*\*/)
|
113
|
+
keyEquivalent: ^~J
|
114
|
+
comment: jQuery Javascript Framework. By Jonathan Chaffer & Karl Swedberg.
|