code_rippa 0.0.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +36 -0
  3. data/LICENSE +2 -2
  4. data/README.md +18 -1
  5. data/bin/code_rippa +15 -16
  6. data/code_rippa.gemspec +12 -10
  7. data/lib/code_rippa.rb +69 -51
  8. data/lib/code_rippa/syntax/actionscript.syntax +52 -52
  9. data/lib/code_rippa/syntax/active4d.syntax +226 -180
  10. data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
  11. data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
  12. data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
  13. data/lib/code_rippa/syntax/ada.syntax +19 -18
  14. data/lib/code_rippa/syntax/antlr.syntax +85 -85
  15. data/lib/code_rippa/syntax/apache.syntax +103 -109
  16. data/lib/code_rippa/syntax/applescript.syntax +244 -229
  17. data/lib/code_rippa/syntax/asp.syntax +41 -36
  18. data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
  19. data/lib/code_rippa/syntax/bibtex.syntax +88 -90
  20. data/lib/code_rippa/syntax/blog_html.syntax +17 -29
  21. data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
  22. data/lib/code_rippa/syntax/blog_text.syntax +15 -15
  23. data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
  24. data/lib/code_rippa/syntax/build.syntax +27 -27
  25. data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
  26. data/lib/code_rippa/syntax/c.syntax +31 -34
  27. data/lib/code_rippa/syntax/cake.syntax +27 -27
  28. data/lib/code_rippa/syntax/camlp4.syntax +23 -23
  29. data/lib/code_rippa/syntax/cm.syntax +19 -18
  30. data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
  31. data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
  32. data/lib/code_rippa/syntax/context_free.syntax +106 -106
  33. data/lib/code_rippa/syntax/cs.syntax +31 -34
  34. data/lib/code_rippa/syntax/css.syntax +112 -112
  35. data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
  36. data/lib/code_rippa/syntax/csv.syntax +40 -44
  37. data/lib/code_rippa/syntax/d.syntax +80 -84
  38. data/lib/code_rippa/syntax/diff.syntax +46 -45
  39. data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
  40. data/lib/code_rippa/syntax/dot.syntax +26 -26
  41. data/lib/code_rippa/syntax/doxygen.syntax +26 -26
  42. data/lib/code_rippa/syntax/dylan.syntax +35 -35
  43. data/lib/code_rippa/syntax/eiffel.syntax +39 -42
  44. data/lib/code_rippa/syntax/erlang.syntax +514 -511
  45. data/lib/code_rippa/syntax/f-script.syntax +44 -44
  46. data/lib/code_rippa/syntax/fortran.syntax +80 -76
  47. data/lib/code_rippa/syntax/fxscript.syntax +78 -77
  48. data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
  49. data/lib/code_rippa/syntax/gri.syntax +47 -47
  50. data/lib/code_rippa/syntax/groovy.syntax +105 -114
  51. data/lib/code_rippa/syntax/gtd.syntax +10 -10
  52. data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
  53. data/lib/code_rippa/syntax/haml.syntax +50 -50
  54. data/lib/code_rippa/syntax/haskell.syntax +47 -47
  55. data/lib/code_rippa/syntax/html-asp.syntax +15 -15
  56. data/lib/code_rippa/syntax/html_django.syntax +15 -14
  57. data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
  58. data/lib/code_rippa/syntax/html_mason.syntax +75 -74
  59. data/lib/code_rippa/syntax/html_rails.syntax +17 -27
  60. data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
  61. data/lib/code_rippa/syntax/icalendar.syntax +15 -15
  62. data/lib/code_rippa/syntax/inform.syntax +26 -26
  63. data/lib/code_rippa/syntax/ini.syntax +30 -30
  64. data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
  65. data/lib/code_rippa/syntax/io.syntax +49 -46
  66. data/lib/code_rippa/syntax/java.syntax +117 -126
  67. data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
  68. data/lib/code_rippa/syntax/javascript.syntax +141 -141
  69. data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
  70. data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
  71. data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
  72. data/lib/code_rippa/syntax/json.syntax +39 -39
  73. data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
  74. data/lib/code_rippa/syntax/lexflex.syntax +136 -136
  75. data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
  76. data/lib/code_rippa/syntax/lilypond.syntax +246 -337
  77. data/lib/code_rippa/syntax/lisp.syntax +32 -32
  78. data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
  79. data/lib/code_rippa/syntax/logo.syntax +13 -14
  80. data/lib/code_rippa/syntax/logtalk.syntax +81 -81
  81. data/lib/code_rippa/syntax/lua.syntax +50 -48
  82. data/lib/code_rippa/syntax/m.syntax +78 -78
  83. data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
  84. data/lib/code_rippa/syntax/makefile.syntax +19 -19
  85. data/lib/code_rippa/syntax/man.syntax +9 -9
  86. data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
  87. data/lib/code_rippa/syntax/mips.syntax +34 -34
  88. data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
  89. data/lib/code_rippa/syntax/modula-3.syntax +24 -24
  90. data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
  91. data/lib/code_rippa/syntax/mootools.syntax +283 -300
  92. data/lib/code_rippa/syntax/movable_type.syntax +91 -90
  93. data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
  94. data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
  95. data/lib/code_rippa/syntax/objective-c.syntax +134 -138
  96. data/lib/code_rippa/syntax/ocaml.syntax +455 -453
  97. data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
  98. data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
  99. data/lib/code_rippa/syntax/opengl.syntax +6 -6
  100. data/lib/code_rippa/syntax/pascal.syntax +43 -42
  101. data/lib/code_rippa/syntax/perl.syntax +612 -615
  102. data/lib/code_rippa/syntax/plain_text.syntax +17 -20
  103. data/lib/code_rippa/syntax/postscript.syntax +71 -69
  104. data/lib/code_rippa/syntax/processing.syntax +60 -60
  105. data/lib/code_rippa/syntax/prolog.syntax +17 -20
  106. data/lib/code_rippa/syntax/property_list.syntax +338 -359
  107. data/lib/code_rippa/syntax/python.syntax +487 -509
  108. data/lib/code_rippa/syntax/python_django.syntax +9 -10
  109. data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
  110. data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
  111. data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
  112. data/lib/code_rippa/syntax/r.syntax +42 -42
  113. data/lib/code_rippa/syntax/r_console.syntax +7 -8
  114. data/lib/code_rippa/syntax/ragel.syntax +109 -115
  115. data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
  116. data/lib/code_rippa/syntax/regexp.syntax +26 -26
  117. data/lib/code_rippa/syntax/release_notes.syntax +46 -26
  118. data/lib/code_rippa/syntax/remind.syntax +146 -146
  119. data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
  120. data/lib/code_rippa/syntax/rez.syntax +46 -45
  121. data/lib/code_rippa/syntax/ruby.syntax +533 -601
  122. data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
  123. data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
  124. data/lib/code_rippa/syntax/s5.syntax +35 -51
  125. data/lib/code_rippa/syntax/scheme.syntax +162 -260
  126. data/lib/code_rippa/syntax/scilab.syntax +18 -18
  127. data/lib/code_rippa/syntax/setext.syntax +82 -82
  128. data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
  129. data/lib/code_rippa/syntax/slate.syntax +91 -91
  130. data/lib/code_rippa/syntax/sql.syntax +137 -139
  131. data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
  132. data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
  133. data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
  134. data/lib/code_rippa/syntax/strings_file.syntax +20 -23
  135. data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
  136. data/lib/code_rippa/syntax/sweave.syntax +45 -45
  137. data/lib/code_rippa/syntax/swig.syntax +34 -33
  138. data/lib/code_rippa/syntax/tcl.syntax +87 -86
  139. data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
  140. data/lib/code_rippa/syntax/textile.syntax +111 -145
  141. data/lib/code_rippa/syntax/tsv.syntax +31 -33
  142. data/lib/code_rippa/syntax/twiki.syntax +141 -141
  143. data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
  144. data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
  145. data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
  146. data/lib/code_rippa/syntax/xml.syntax +95 -95
  147. data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
  148. data/lib/code_rippa/syntax/xsl.syntax +31 -31
  149. data/lib/code_rippa/syntax/yaml.syntax +86 -86
  150. data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
  151. data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
  152. data/lib/code_rippa/version.rb +2 -2
  153. data/test/fixtures/hello.rb +5 -3
  154. data/test/test_private_methods.rb +40 -40
  155. data/test/test_public_methods.rb +9 -18
  156. metadata +61 -63
@@ -1,20 +1,21 @@
1
- ---
1
+ ---
2
2
  name: Java Properties
3
- fileTypes:
3
+ fileTypes:
4
4
  - properties
5
5
  scopeName: source.java-props
6
6
  uuid: 2A28E50A-6B1D-11D9-8689-000D93589AF6
7
- patterns:
7
+ patterns:
8
8
  - name: comment.line.number-sign.java-props
9
- captures:
10
- "1":
9
+ captures:
10
+ '1':
11
11
  name: punctuation.definition.comment.java-props
12
- match: ([#!])(.+)?$\n?
13
- - captures:
14
- "1":
12
+ match: "([#!])(.+)?$\\n?"
13
+ - captures:
14
+ '1':
15
15
  name: keyword.other.java-props
16
- "2":
16
+ '2':
17
17
  name: punctuation.separator.key-value.java-props
18
- match: ^([^:=]+)([:=])(.*)$
19
- comment: Not compliant with the properties file spec, but this works for me, and I'm the one who counts around here.
20
- keyEquivalent: ^~J
18
+ match: "^([^:=]+)([:=])(.*)$"
19
+ comment: Not compliant with the properties file spec, but this works for me, and
20
+ I'm the one who counts around here.
21
+ keyEquivalent: "^~J"
@@ -1,256 +1,256 @@
1
- ---
1
+ ---
2
2
  name: JavaScript
3
- fileTypes:
3
+ fileTypes:
4
4
  - js
5
5
  - htc
6
6
  - jsx
7
7
  scopeName: source.js
8
8
  uuid: 93E017CC-6F27-11D9-90EB-000D93589AF6
9
- foldingStartMarker: ^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$
10
- patterns:
9
+ foldingStartMarker: "^.*\\bfunction\\s*(\\w+\\s*)?\\([^\\)]*\\)(\\s*\\{[^\\}]*)?\\s*$"
10
+ patterns:
11
11
  - name: meta.class.js
12
- captures:
13
- "1":
12
+ captures:
13
+ '1':
14
14
  name: support.class.js
15
- "2":
15
+ '2':
16
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"
17
+ match: "([a-zA-Z_?.$][\\w?.$]*)\\.(prototype)\\s*=\\s*"
18
+ comment: 'match stuff like: Sound.prototype = { } when extending an object'
19
19
  - name: meta.function.prototype.js
20
- captures:
21
- "6":
20
+ captures:
21
+ '6':
22
22
  name: variable.parameter.function.js
23
- "7":
23
+ '7':
24
24
  name: punctuation.definition.parameters.end.js
25
- "1":
25
+ '1':
26
26
  name: support.class.js
27
- "2":
27
+ '2':
28
28
  name: support.constant.js
29
- "3":
29
+ '3':
30
30
  name: entity.name.function.js
31
- "4":
31
+ '4':
32
32
  name: storage.type.function.js
33
- "5":
33
+ '5':
34
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 }"
35
+ match: "([a-zA-Z_?.$][\\w?.$]*)\\.(prototype)\\.([a-zA-Z_?.$][\\w?.$]*)\\s*=\\s*(function)?\\s*(\\()(.*?)(\\))"
36
+ comment: 'match stuff like: Sound.prototype.play = function() { }'
37
37
  - name: meta.function.js
38
- captures:
39
- "1":
38
+ captures:
39
+ '1':
40
40
  name: support.class.js
41
- "2":
41
+ '2':
42
42
  name: support.constant.js
43
- "3":
43
+ '3':
44
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"
45
+ match: "([a-zA-Z_?.$][\\w?.$]*)\\.(prototype)\\.([a-zA-Z_?.$][\\w?.$]*)\\s*=\\s*"
46
+ comment: 'match stuff like: Sound.prototype.play = myfunc'
47
47
  - name: meta.function.js
48
- captures:
49
- "6":
48
+ captures:
49
+ '6':
50
50
  name: punctuation.definition.parameters.end.js
51
- "1":
51
+ '1':
52
52
  name: support.class.js
53
- "2":
53
+ '2':
54
54
  name: entity.name.function.js
55
- "3":
55
+ '3':
56
56
  name: storage.type.function.js
57
- "4":
57
+ '4':
58
58
  name: punctuation.definition.parameters.begin.js
59
- "5":
59
+ '5':
60
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 }"
61
+ match: "([a-zA-Z_?.$][\\w?.$]*)\\.([a-zA-Z_?.$][\\w?.$]*)\\s*=\\s*(function)\\s*(\\()(.*?)(\\))"
62
+ comment: 'match stuff like: Sound.play = function() { }'
63
63
  - name: meta.function.js
64
- captures:
65
- "1":
64
+ captures:
65
+ '1':
66
66
  name: entity.name.function.js
67
- "2":
67
+ '2':
68
68
  name: storage.type.function.js
69
- "3":
69
+ '3':
70
70
  name: punctuation.definition.parameters.begin.js
71
- "4":
71
+ '4':
72
72
  name: variable.parameter.function.js
73
- "5":
73
+ '5':
74
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 }"
75
+ match: "([a-zA-Z_?$][\\w?$]*)\\s*=\\s*(function)\\s*(\\()(.*?)(\\))"
76
+ comment: 'match stuff like: play = function() { }'
77
77
  - name: meta.function.js
78
- captures:
79
- "1":
78
+ captures:
79
+ '1':
80
80
  name: storage.type.function.js
81
- "2":
81
+ '2':
82
82
  name: entity.name.function.js
83
- "3":
83
+ '3':
84
84
  name: punctuation.definition.parameters.begin.js
85
- "4":
85
+ '4':
86
86
  name: variable.parameter.function.js
87
- "5":
87
+ '5':
88
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 }"
89
+ match: "\\b(function)\\s+([a-zA-Z_$]\\w*)?\\s*(\\()(.*?)(\\))"
90
+ comment: 'match regular function like: function myFunc(arg) { }'
91
91
  - name: meta.function.json.js
92
- captures:
93
- "1":
92
+ captures:
93
+ '1':
94
94
  name: entity.name.function.js
95
- "2":
95
+ '2':
96
96
  name: storage.type.function.js
97
- "3":
97
+ '3':
98
98
  name: punctuation.definition.parameters.begin.js
99
- "4":
99
+ '4':
100
100
  name: variable.parameter.function.js
101
- "5":
101
+ '5':
102
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 }"
103
+ match: "\\b([a-zA-Z_?.$][\\w?.$]*)\\s*:\\s*\\b(function)?\\s*(\\()(.*?)(\\))"
104
+ comment: 'match stuff like: foobar: function() { }'
105
105
  - name: meta.function.json.js
106
- captures:
107
- "6":
106
+ captures:
107
+ '6':
108
108
  name: punctuation.definition.string.begin.js
109
- "11":
109
+ '11':
110
110
  name: variable.parameter.function.js
111
- "7":
111
+ '7':
112
112
  name: entity.name.function.js
113
- "12":
113
+ '12':
114
114
  name: punctuation.definition.parameters.end.js
115
- "8":
115
+ '8':
116
116
  name: punctuation.definition.string.end.js
117
- "9":
117
+ '9':
118
118
  name: entity.name.function.js
119
- "1":
119
+ '1':
120
120
  name: string.quoted.single.js
121
- "2":
121
+ '2':
122
122
  name: punctuation.definition.string.begin.js
123
- "3":
123
+ '3':
124
124
  name: entity.name.function.js
125
- "4":
125
+ '4':
126
126
  name: punctuation.definition.string.end.js
127
- "10":
127
+ '10':
128
128
  name: punctuation.definition.parameters.begin.js
129
- "5":
129
+ '5':
130
130
  name: string.quoted.double.js
131
- match: (?:((')(.*?)('))|((")(.*?)(")))\s*:\s*\b(function)?\s*(\()(.*?)(\))
132
- comment: "Attempt to match \"foo\": function"
131
+ match: "(?:((')(.*?)('))|((\")(.*?)(\")))\\s*:\\s*\\b(function)?\\s*(\\()(.*?)(\\))"
132
+ comment: 'Attempt to match "foo": function'
133
133
  - name: meta.class.instance.constructor
134
- captures:
135
- "1":
134
+ captures:
135
+ '1':
136
136
  name: keyword.operator.new.js
137
- "2":
137
+ '2':
138
138
  name: entity.name.type.instance.js
139
- match: (new)\s+(\w+(?:\.\w*)?)
139
+ match: "(new)\\s+(\\w+(?:\\.\\w*)?)"
140
140
  - name: entity.name.type.object.js.firebug
141
- match: \b(console)\b
141
+ match: "\\b(console)\\b"
142
142
  - name: support.function.js.firebug
143
- match: \.(warn|info|log|error|time|timeEnd|assert)\b
143
+ match: "\\.(warn|info|log|error|time|timeEnd|assert)\\b"
144
144
  - name: constant.numeric.js
145
- match: \b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\.[0-9]+)?))\b
145
+ match: "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b"
146
146
  - name: string.quoted.single.js
147
- endCaptures:
148
- "0":
147
+ endCaptures:
148
+ '0':
149
149
  name: punctuation.definition.string.end.js
150
150
  begin: "'"
151
- beginCaptures:
152
- "0":
151
+ beginCaptures:
152
+ '0':
153
153
  name: punctuation.definition.string.begin.js
154
154
  end: "'"
155
- patterns:
155
+ patterns:
156
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]?|.)
157
+ match: "\\\\(x\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"
158
158
  - name: string.quoted.double.js
159
- endCaptures:
160
- "0":
159
+ endCaptures:
160
+ '0':
161
161
  name: punctuation.definition.string.end.js
162
162
  begin: "\""
163
- beginCaptures:
164
- "0":
163
+ beginCaptures:
164
+ '0':
165
165
  name: punctuation.definition.string.begin.js
166
166
  end: "\""
167
- patterns:
167
+ patterns:
168
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]?|.)
169
+ match: "\\\\(x\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)"
170
170
  - name: comment.block.documentation.js
171
- captures:
172
- "0":
171
+ captures:
172
+ '0':
173
173
  name: punctuation.definition.comment.js
174
- begin: /\*\*
175
- end: \*/
174
+ begin: "/\\*\\*"
175
+ end: "\\*/"
176
176
  - name: comment.block.js
177
- captures:
178
- "0":
177
+ captures:
178
+ '0':
179
179
  name: punctuation.definition.comment.js
180
- begin: /\*
181
- end: \*/
180
+ begin: "/\\*"
181
+ end: "\\*/"
182
182
  - name: comment.line.double-slash.js
183
- captures:
184
- "1":
183
+ captures:
184
+ '1':
185
185
  name: punctuation.definition.comment.js
186
- match: (//).*$\n?
186
+ match: "(//).*$\\n?"
187
187
  - name: comment.block.html.js
188
- captures:
189
- "0":
188
+ captures:
189
+ '0':
190
190
  name: punctuation.definition.comment.html.js
191
- "2":
191
+ '2':
192
192
  name: punctuation.definition.comment.html.js
193
- match: (<!--|-->)
193
+ match: "(<!--|-->)"
194
194
  - name: storage.type.js
195
- match: \b(boolean|byte|char|class|double|enum|float|function|int|interface|long|short|var|void)\b
195
+ match: "\\b(boolean|byte|char|class|double|enum|float|function|int|interface|long|short|var|void)\\b"
196
196
  - name: storage.modifier.js
197
- match: \b(const|export|extends|final|implements|native|private|protected|public|static|synchronized|throws|transient|volatile)\b
197
+ match: "\\b(const|export|extends|final|implements|native|private|protected|public|static|synchronized|throws|transient|volatile)\\b"
198
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
199
+ match: "\\b(break|case|catch|continue|default|do|else|finally|for|goto|if|import|package|return|switch|throw|try|while)\\b"
200
200
  - name: keyword.operator.js
201
- match: \b(delete|in|instanceof|new|typeof|with)\b
201
+ match: "\\b(delete|in|instanceof|new|typeof|with)\\b"
202
202
  - name: constant.language.boolean.true.js
203
- match: \btrue\b
203
+ match: "\\btrue\\b"
204
204
  - name: constant.language.boolean.false.js
205
- match: \bfalse\b
205
+ match: "\\bfalse\\b"
206
206
  - name: constant.language.null.js
207
- match: \bnull\b
207
+ match: "\\bnull\\b"
208
208
  - name: variable.language.js
209
- match: \b(super|this)\b
209
+ match: "\\b(super|this)\\b"
210
210
  - name: keyword.other.js
211
- match: \b(debugger)\b
211
+ match: "\\b(debugger)\\b"
212
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
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
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(?=\()
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
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(?=\()
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
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
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
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
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
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
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
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
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
226
  - name: keyword.operator.js
227
227
  match: "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^=|\\b(in|instanceof|new|delete|typeof|void)\\b"
228
228
  - name: constant.language.js
229
- match: \b(Infinity|NaN|Undefined)\b
229
+ match: "\\b(Infinity|NaN|Undefined)\\b"
230
230
  - name: string.regexp.js
231
- endCaptures:
232
- "1":
231
+ endCaptures:
232
+ '1':
233
233
  name: punctuation.definition.string.end.js
234
- begin: (?<=[=(:]|^|return)\s*(/)(?![/*+{}?])
235
- beginCaptures:
236
- "1":
234
+ begin: "(?<=[=(:]|^|return)\\s*(/)(?![/*+{}?])"
235
+ beginCaptures:
236
+ '1':
237
237
  name: punctuation.definition.string.begin.js
238
- end: (/)[igm]*
239
- patterns:
238
+ end: "(/)[igm]*"
239
+ patterns:
240
240
  - name: constant.character.escape.js
241
- match: \\.
241
+ match: "\\\\."
242
242
  - name: punctuation.terminator.statement.js
243
- match: \;
243
+ match: "\\;"
244
244
  - name: meta.delimiter.object.comma.js
245
- match: ,[ |\t]*
245
+ match: ",[ |\\t]*"
246
246
  - name: meta.delimiter.method.period.js
247
- match: \.
247
+ match: "\\."
248
248
  - name: meta.brace.curly.js
249
- match: \{|\}
249
+ match: "\\{|\\}"
250
250
  - name: meta.brace.round.js
251
- match: \(|\)
251
+ match: "\\(|\\)"
252
252
  - name: meta.brace.square.js
253
- match: \[|\]
254
- foldingStopMarker: ^\s*\}
255
- keyEquivalent: ^~J
256
- comment: "JavaScript Syntax: version 2.0"
253
+ match: "\\[|\\]"
254
+ foldingStopMarker: "^\\s*\\}"
255
+ keyEquivalent: "^~J"
256
+ comment: 'JavaScript Syntax: version 2.0'
@@ -1,72 +1,73 @@
1
- ---
1
+ ---
2
2
  name: Prototype & Script.aculo.us (JavaScript)
3
3
  scopeName: source.js.prototype
4
- repository:
5
- leading-space:
6
- patterns:
4
+ repository:
5
+ leading-space:
6
+ patterns:
7
7
  - name: meta.leading-tabs
8
- begin: ^(?=(\t| ))
9
- end: (?=[^\t\s])
10
- patterns:
11
- - captures:
12
- "6":
8
+ begin: "^(?=(\\t| ))"
9
+ end: "(?=[^\\t\\s])"
10
+ patterns:
11
+ - captures:
12
+ '6':
13
13
  name: meta.even-tab.group6.spaces
14
- "11":
14
+ '11':
15
15
  name: meta.odd-tab.group11.spaces
16
- "7":
16
+ '7':
17
17
  name: meta.odd-tab.group7.spaces
18
- "8":
18
+ '8':
19
19
  name: meta.even-tab.group8.spaces
20
- "9":
20
+ '9':
21
21
  name: meta.odd-tab.group9.spaces
22
- "1":
22
+ '1':
23
23
  name: meta.odd-tab.group1.spaces
24
- "2":
24
+ '2':
25
25
  name: meta.even-tab.group2.spaces
26
- "3":
26
+ '3':
27
27
  name: meta.odd-tab.group3.spaces
28
- "4":
28
+ '4':
29
29
  name: meta.even-tab.group4.spaces
30
- "10":
30
+ '10':
31
31
  name: meta.even-tab.group10.spaces
32
- "5":
32
+ '5':
33
33
  name: meta.odd-tab.group5.spaces
34
- match: ( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?
35
- - captures:
36
- "6":
34
+ match: "( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?"
35
+ - captures:
36
+ '6':
37
37
  name: meta.even-tab.group6.tab
38
- "11":
38
+ '11':
39
39
  name: meta.odd-tab.group11.tab
40
- "7":
40
+ '7':
41
41
  name: meta.odd-tab.group7.tab
42
- "8":
42
+ '8':
43
43
  name: meta.even-tab.group8.tab
44
- "9":
44
+ '9':
45
45
  name: meta.odd-tab.group9.tab
46
- "1":
46
+ '1':
47
47
  name: meta.odd-tab.group1.tab
48
- "2":
48
+ '2':
49
49
  name: meta.even-tab.group2.tab
50
- "3":
50
+ '3':
51
51
  name: meta.odd-tab.group3.tab
52
- "4":
52
+ '4':
53
53
  name: meta.even-tab.group4.tab
54
- "10":
54
+ '10':
55
55
  name: meta.even-tab.group10.tab
56
- "5":
56
+ '5':
57
57
  name: meta.odd-tab.group5.tab
58
- match: (\t)(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?
58
+ match: "(\\t)(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?"
59
59
  uuid: 0BD60463-DDF6-436F-9295-89DEF577FF30
60
- foldingStartMarker: (^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$)
61
- patterns:
60
+ foldingStartMarker: "(^.*{[^}]*$|^.*\\([^\\)]*$|^.*/\\*(?!.*\\*/).*$)"
61
+ patterns:
62
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
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
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
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
66
  - include: source.js
67
67
  - name: variable.other.js.prototype
68
- match: ((?<=var\s)\b[a-zA-Z]\w*\b|\b[a-zA-Z]\w*\b(?=(\[|\s*(&|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|/=|%=|\+=|\-=|&=|\^=))))
68
+ match: "((?<=var\\s)\\b[a-zA-Z]\\w*\\b|\\b[a-zA-Z]\\w*\\b(?=(\\[|\\s*(&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^=))))"
69
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"
70
+ foldingStopMarker: "(^\\s*\\}|^\\s*\\)|^(?!.*/\\*).*\\*/)"
71
+ keyEquivalent: "^~J"
72
+ comment: Prototype and Scriptaculous Javascript Frameworks. By Justin Palmer, Thomas
73
+ Aylott & Martin Ström