ace-rails-ap 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ace/rails/version.rb +1 -1
- data/vendor/assets/javascripts/ace/ace.js +993 -613
- data/vendor/assets/javascripts/ace/ext-chromevox.js +3 -4
- data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +5 -6
- data/vendor/assets/javascripts/ace/ext-emmet.js +50 -21
- data/vendor/assets/javascripts/ace/ext-language_tools.js +21 -19
- data/vendor/assets/javascripts/ace/ext-modelist.js +11 -6
- data/vendor/assets/javascripts/ace/ext-old_ie.js +12 -5
- data/vendor/assets/javascripts/ace/ext-searchbox.js +12 -5
- data/vendor/assets/javascripts/ace/ext-settings_menu.js +14 -7
- data/vendor/assets/javascripts/ace/ext-static_highlight.js +5 -5
- data/vendor/assets/javascripts/ace/ext-statusbar.js +14 -12
- data/vendor/assets/javascripts/ace/ext-textarea.js +1 -2
- data/vendor/assets/javascripts/ace/ext-themelist.js +2 -0
- data/vendor/assets/javascripts/ace/ext-whitespace.js +17 -13
- data/vendor/assets/javascripts/ace/keybinding-emacs.js +76 -78
- data/vendor/assets/javascripts/ace/keybinding-vim.js +221 -80
- data/vendor/assets/javascripts/ace/mode-abc.js +2 -3
- data/vendor/assets/javascripts/ace/mode-actionscript.js +2 -3
- data/vendor/assets/javascripts/ace/mode-apache_conf.js +2 -3
- data/vendor/assets/javascripts/ace/mode-applescript.js +2 -3
- data/vendor/assets/javascripts/ace/mode-autohotkey.js +2 -3
- data/vendor/assets/javascripts/ace/mode-batchfile.js +2 -3
- data/vendor/assets/javascripts/ace/mode-c_cpp.js +8 -5
- data/vendor/assets/javascripts/ace/mode-coffee.js +1 -1
- data/vendor/assets/javascripts/ace/mode-coldfusion.js +533 -139
- data/vendor/assets/javascripts/ace/mode-csharp.js +4 -5
- data/vendor/assets/javascripts/ace/mode-css.js +185 -6
- data/vendor/assets/javascripts/ace/mode-curly.js +495 -138
- data/vendor/assets/javascripts/ace/mode-d.js +2 -3
- data/vendor/assets/javascripts/ace/mode-dart.js +8 -5
- data/vendor/assets/javascripts/ace/mode-django.js +495 -138
- data/vendor/assets/javascripts/ace/mode-dockerfile.js +59 -14
- data/vendor/assets/javascripts/ace/mode-dot.js +2 -3
- data/vendor/assets/javascripts/ace/mode-ejs.js +497 -152
- data/vendor/assets/javascripts/ace/mode-elm.js +6 -4
- data/vendor/assets/javascripts/ace/mode-erlang.js +3 -4
- data/vendor/assets/javascripts/ace/mode-forth.js +3 -4
- data/vendor/assets/javascripts/ace/mode-ftl.js +145 -17
- data/vendor/assets/javascripts/ace/mode-gherkin.js +58 -25
- data/vendor/assets/javascripts/ace/mode-glsl.js +8 -5
- data/vendor/assets/javascripts/ace/mode-golang.js +36 -25
- data/vendor/assets/javascripts/ace/mode-groovy.js +145 -17
- data/vendor/assets/javascripts/ace/mode-handlebars.js +496 -140
- data/vendor/assets/javascripts/ace/mode-haskell.js +3 -4
- data/vendor/assets/javascripts/ace/mode-haxe.js +4 -5
- data/vendor/assets/javascripts/ace/mode-html.js +495 -138
- data/vendor/assets/javascripts/ace/mode-html_elixir.js +3372 -0
- data/vendor/assets/javascripts/ace/mode-html_ruby.js +495 -138
- data/vendor/assets/javascripts/ace/mode-ini.js +1 -1
- data/vendor/assets/javascripts/ace/mode-io.js +2 -3
- data/vendor/assets/javascripts/ace/mode-jack.js +4 -5
- data/vendor/assets/javascripts/ace/mode-jade.js +155 -25
- data/vendor/assets/javascripts/ace/mode-java.js +145 -17
- data/vendor/assets/javascripts/ace/mode-javascript.js +145 -17
- data/vendor/assets/javascripts/ace/mode-json.js +4 -5
- data/vendor/assets/javascripts/ace/mode-jsoniq.js +4 -5
- data/vendor/assets/javascripts/ace/mode-jsp.js +150 -23
- data/vendor/assets/javascripts/ace/mode-jsx.js +4 -5
- data/vendor/assets/javascripts/ace/mode-julia.js +2 -3
- data/vendor/assets/javascripts/ace/mode-less.js +5 -6
- data/vendor/assets/javascripts/ace/mode-liquid.js +145 -17
- data/vendor/assets/javascripts/ace/mode-logiql.js +2 -2
- data/vendor/assets/javascripts/ace/mode-lsl.js +8 -10
- data/vendor/assets/javascripts/ace/mode-lua.js +2 -2
- data/vendor/assets/javascripts/ace/mode-luapage.js +497 -140
- data/vendor/assets/javascripts/ace/mode-makefile.js +54 -8
- data/vendor/assets/javascripts/ace/mode-markdown.js +497 -139
- data/vendor/assets/javascripts/ace/mode-mask.js +150 -22
- data/vendor/assets/javascripts/ace/mode-maze.js +283 -0
- data/vendor/assets/javascripts/ace/mode-mel.js +4 -5
- data/vendor/assets/javascripts/ace/mode-mushcode.js +0 -1
- data/vendor/assets/javascripts/ace/mode-mysql.js +1 -1
- data/vendor/assets/javascripts/ace/mode-nix.js +8 -5
- data/vendor/assets/javascripts/ace/mode-objectivec.js +6 -3
- data/vendor/assets/javascripts/ace/mode-perl.js +4 -5
- data/vendor/assets/javascripts/ace/mode-pgsql.js +141 -12
- data/vendor/assets/javascripts/ace/mode-php.js +9872 -143
- data/vendor/assets/javascripts/ace/mode-powershell.js +4 -5
- data/vendor/assets/javascripts/ace/mode-praat.js +18 -14
- data/vendor/assets/javascripts/ace/mode-prolog.js +2 -3
- data/vendor/assets/javascripts/ace/mode-protobuf.js +8 -5
- data/vendor/assets/javascripts/ace/mode-rhtml.js +495 -138
- data/vendor/assets/javascripts/ace/mode-ruby.js +2 -2
- data/vendor/assets/javascripts/ace/mode-rust.js +32 -39
- data/vendor/assets/javascripts/ace/mode-scad.js +4 -5
- data/vendor/assets/javascripts/ace/mode-scala.js +158 -21
- data/vendor/assets/javascripts/ace/mode-scheme.js +118 -1
- data/vendor/assets/javascripts/ace/mode-scss.js +4 -5
- data/vendor/assets/javascripts/ace/mode-sh.js +58 -13
- data/vendor/assets/javascripts/ace/mode-sjs.js +145 -17
- data/vendor/assets/javascripts/ace/mode-smarty.js +495 -138
- data/vendor/assets/javascripts/ace/mode-soy_template.js +496 -140
- data/vendor/assets/javascripts/ace/mode-sql.js +12 -4
- data/vendor/assets/javascripts/ace/mode-sqlserver.js +437 -0
- data/vendor/assets/javascripts/ace/mode-svg.js +147 -20
- data/vendor/assets/javascripts/ace/mode-swift.js +738 -0
- data/vendor/assets/javascripts/ace/mode-swig.js +1099 -0
- data/vendor/assets/javascripts/ace/mode-tcl.js +2 -3
- data/vendor/assets/javascripts/ace/mode-tex.js +1 -0
- data/vendor/assets/javascripts/ace/mode-toml.js +4 -0
- data/vendor/assets/javascripts/ace/mode-twig.js +495 -138
- data/vendor/assets/javascripts/ace/mode-typescript.js +147 -19
- data/vendor/assets/javascripts/ace/mode-vala.js +4 -5
- data/vendor/assets/javascripts/ace/mode-vbscript.js +26 -13
- data/vendor/assets/javascripts/ace/mode-velocity.js +495 -138
- data/vendor/assets/javascripts/ace/mode-verilog.js +8 -0
- data/vendor/assets/javascripts/ace/mode-xml.js +2 -3
- data/vendor/assets/javascripts/ace/mode-xquery.js +4 -5
- data/vendor/assets/javascripts/ace/snippets/actionscript.js +5 -0
- data/vendor/assets/javascripts/ace/snippets/html_elixir.js +7 -0
- data/vendor/assets/javascripts/ace/snippets/java.js +6 -0
- data/vendor/assets/javascripts/ace/snippets/javascript.js +13 -0
- data/vendor/assets/javascripts/ace/snippets/lsl.js +166 -0
- data/vendor/assets/javascripts/ace/snippets/maze.js +16 -0
- data/vendor/assets/javascripts/ace/snippets/php.js +105 -4
- data/vendor/assets/javascripts/ace/snippets/sqlserver.js +76 -0
- data/vendor/assets/javascripts/ace/snippets/swift.js +7 -0
- data/vendor/assets/javascripts/ace/snippets/swig.js +7 -0
- data/vendor/assets/javascripts/ace/theme-clouds.js +0 -1
- data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +0 -1
- data/vendor/assets/javascripts/ace/theme-cobalt.js +3 -3
- data/vendor/assets/javascripts/ace/theme-dawn.js +0 -1
- data/vendor/assets/javascripts/ace/theme-github.js +0 -1
- data/vendor/assets/javascripts/ace/theme-idle_fingers.js +0 -1
- data/vendor/assets/javascripts/ace/theme-iplastic.js +121 -0
- data/vendor/assets/javascripts/ace/theme-katzenmilch.js +1 -2
- data/vendor/assets/javascripts/ace/theme-kr_theme.js +0 -1
- data/vendor/assets/javascripts/ace/theme-kuroir.js +0 -1
- data/vendor/assets/javascripts/ace/theme-merbivore.js +0 -1
- data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +0 -1
- data/vendor/assets/javascripts/ace/theme-mono_industrial.js +0 -1
- data/vendor/assets/javascripts/ace/theme-monokai.js +0 -1
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +0 -1
- data/vendor/assets/javascripts/ace/theme-solarized_dark.js +0 -1
- data/vendor/assets/javascripts/ace/theme-solarized_light.js +0 -1
- data/vendor/assets/javascripts/ace/theme-sqlserver.js +138 -0
- data/vendor/assets/javascripts/ace/theme-terminal.js +0 -1
- data/vendor/assets/javascripts/ace/theme-textmate.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +0 -1
- data/vendor/assets/javascripts/ace/theme-twilight.js +0 -1
- data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +0 -1
- data/vendor/assets/javascripts/ace/theme-xcode.js +0 -1
- data/vendor/assets/javascripts/ace/worker-coffee.js +576 -6015
- data/vendor/assets/javascripts/ace/worker-css.js +529 -449
- data/vendor/assets/javascripts/ace/worker-html.js +528 -448
- data/vendor/assets/javascripts/ace/worker-javascript.js +8719 -7656
- data/vendor/assets/javascripts/ace/worker-json.js +530 -450
- data/vendor/assets/javascripts/ace/worker-lua.js +530 -450
- data/vendor/assets/javascripts/ace/worker-php.js +530 -450
- data/vendor/assets/javascripts/ace/worker-xml.js +530 -450
- data/vendor/assets/javascripts/ace/worker-xquery.js +529 -449
- metadata +14 -2
@@ -28,6 +28,9 @@ var ElmHighlightRules = function() {
|
|
28
28
|
}, {
|
29
29
|
regex: /0(?:[xX][0-9A-Fa-f]+|[oO][0-7]+)|\d+(\.\d+)?([eE][-+]?\d*)?/,
|
30
30
|
token: "constant.numeric"
|
31
|
+
}, {
|
32
|
+
token: "comment",
|
33
|
+
regex: "--.*"
|
31
34
|
}, {
|
32
35
|
token : "keyword",
|
33
36
|
regex : /\.\.|\||:|=|\\|\"|->|<-|\u2192/
|
@@ -154,7 +157,7 @@ oop.inherits(FoldMode, BaseFoldMode);
|
|
154
157
|
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
155
158
|
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
156
159
|
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
157
|
-
this.startRegionRe = /^\s*(\/\*|\/\/)
|
160
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
158
161
|
this._getFoldWidgetBase = this.getFoldWidget;
|
159
162
|
this.getFoldWidget = function(session, foldStyle, row) {
|
160
163
|
var line = session.getLine(row);
|
@@ -242,13 +245,12 @@ oop.inherits(FoldMode, BaseFoldMode);
|
|
242
245
|
|
243
246
|
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
244
247
|
};
|
245
|
-
|
246
248
|
this.getCommentRegionBlock = function(session, line, row) {
|
247
249
|
var startColumn = line.search(/\s*$/);
|
248
250
|
var maxRow = session.getLength();
|
249
251
|
var startRow = row;
|
250
252
|
|
251
|
-
var re = /^\s*(
|
253
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
252
254
|
var depth = 1;
|
253
255
|
while (++row < maxRow) {
|
254
256
|
line = session.getLine(row);
|
@@ -286,7 +288,7 @@ oop.inherits(Mode, TextMode);
|
|
286
288
|
|
287
289
|
(function() {
|
288
290
|
this.lineCommentStart = "--";
|
289
|
-
this.blockComment = {start: "{-", end: "-}"};
|
291
|
+
this.blockComment = {start: "{-", end: "-}", nestable: true};
|
290
292
|
this.$id = "ace/mode/elm";
|
291
293
|
}).call(Mode.prototype);
|
292
294
|
|
@@ -862,7 +862,7 @@ oop.inherits(FoldMode, BaseFoldMode);
|
|
862
862
|
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
863
863
|
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
864
864
|
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
865
|
-
this.startRegionRe = /^\s*(\/\*|\/\/)
|
865
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
866
866
|
this._getFoldWidgetBase = this.getFoldWidget;
|
867
867
|
this.getFoldWidget = function(session, foldStyle, row) {
|
868
868
|
var line = session.getLine(row);
|
@@ -950,13 +950,12 @@ oop.inherits(FoldMode, BaseFoldMode);
|
|
950
950
|
|
951
951
|
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
952
952
|
};
|
953
|
-
|
954
953
|
this.getCommentRegionBlock = function(session, line, row) {
|
955
954
|
var startColumn = line.search(/\s*$/);
|
956
955
|
var maxRow = session.getLength();
|
957
956
|
var startRow = row;
|
958
957
|
|
959
|
-
var re = /^\s*(
|
958
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
960
959
|
var depth = 1;
|
961
960
|
while (++row < maxRow) {
|
962
961
|
line = session.getLine(row);
|
@@ -994,7 +993,7 @@ oop.inherits(Mode, TextMode);
|
|
994
993
|
|
995
994
|
(function() {
|
996
995
|
this.lineCommentStart = "%";
|
997
|
-
this.blockComment =
|
996
|
+
this.blockComment = null;
|
998
997
|
this.$id = "ace/mode/erlang";
|
999
998
|
}).call(Mode.prototype);
|
1000
999
|
|
@@ -150,7 +150,7 @@ oop.inherits(FoldMode, BaseFoldMode);
|
|
150
150
|
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
151
151
|
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
152
152
|
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
153
|
-
this.startRegionRe = /^\s*(\/\*|\/\/)
|
153
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
154
154
|
this._getFoldWidgetBase = this.getFoldWidget;
|
155
155
|
this.getFoldWidget = function(session, foldStyle, row) {
|
156
156
|
var line = session.getLine(row);
|
@@ -238,13 +238,12 @@ oop.inherits(FoldMode, BaseFoldMode);
|
|
238
238
|
|
239
239
|
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
240
240
|
};
|
241
|
-
|
242
241
|
this.getCommentRegionBlock = function(session, line, row) {
|
243
242
|
var startColumn = line.search(/\s*$/);
|
244
243
|
var maxRow = session.getLength();
|
245
244
|
var startRow = row;
|
246
245
|
|
247
|
-
var re = /^\s*(
|
246
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
248
247
|
var depth = 1;
|
249
248
|
while (++row < maxRow) {
|
250
249
|
line = session.getLine(row);
|
@@ -282,7 +281,7 @@ oop.inherits(Mode, TextMode);
|
|
282
281
|
|
283
282
|
(function() {
|
284
283
|
this.lineCommentStart = "--";
|
285
|
-
this.blockComment =
|
284
|
+
this.blockComment = null;
|
286
285
|
this.$id = "ace/mode/forth";
|
287
286
|
}).call(Mode.prototype);
|
288
287
|
|
@@ -198,6 +198,7 @@ define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/
|
|
198
198
|
var oop = require("../lib/oop");
|
199
199
|
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
200
200
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
201
|
+
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*\\b";
|
201
202
|
|
202
203
|
var JavaScriptHighlightRules = function(options) {
|
203
204
|
var keywordMapper = this.createKeywordMapper({
|
@@ -227,7 +228,6 @@ var JavaScriptHighlightRules = function(options) {
|
|
227
228
|
"constant.language.boolean": "true|false"
|
228
229
|
}, "identifier");
|
229
230
|
var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
|
230
|
-
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*\\b";
|
231
231
|
|
232
232
|
var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
|
233
233
|
"u[0-9a-fA-F]{4}|" + // unicode
|
@@ -315,15 +315,6 @@ var JavaScriptHighlightRules = function(options) {
|
|
315
315
|
token : "keyword",
|
316
316
|
regex : "(?:" + kwBeforeRe + ")\\b",
|
317
317
|
next : "start"
|
318
|
-
}, {
|
319
|
-
token : ["punctuation.operator", "support.function"],
|
320
|
-
regex : /(\.)(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(?=\()/
|
321
|
-
}, {
|
322
|
-
token : ["punctuation.operator", "support.function.dom"],
|
323
|
-
regex : /(\.)(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|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
|
324
|
-
}, {
|
325
|
-
token : ["punctuation.operator", "support.constant"],
|
326
|
-
regex : /(\.)(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(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
|
327
318
|
}, {
|
328
319
|
token : ["support.constant"],
|
329
320
|
regex : /that\b/
|
@@ -333,9 +324,13 @@ var JavaScriptHighlightRules = function(options) {
|
|
333
324
|
}, {
|
334
325
|
token : keywordMapper,
|
335
326
|
regex : identifierRe
|
327
|
+
}, {
|
328
|
+
token : "punctuation.operator",
|
329
|
+
regex : /[.](?![.])/,
|
330
|
+
next : "property"
|
336
331
|
}, {
|
337
332
|
token : "keyword.operator",
|
338
|
-
regex :
|
333
|
+
regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|[!$%&*+\-~\/^]=?/,
|
339
334
|
next : "start"
|
340
335
|
}, {
|
341
336
|
token : "punctuation.operator",
|
@@ -353,6 +348,38 @@ var JavaScriptHighlightRules = function(options) {
|
|
353
348
|
regex: /^#!.*$/
|
354
349
|
}
|
355
350
|
],
|
351
|
+
property: [{
|
352
|
+
token : "text",
|
353
|
+
regex : "\\s+"
|
354
|
+
}, {
|
355
|
+
token : [
|
356
|
+
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
357
|
+
"keyword.operator", "text",
|
358
|
+
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
359
|
+
],
|
360
|
+
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
|
361
|
+
next: "function_arguments"
|
362
|
+
}, {
|
363
|
+
token : "punctuation.operator",
|
364
|
+
regex : /[.](?![.])/
|
365
|
+
}, {
|
366
|
+
token : "support.function",
|
367
|
+
regex : /(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(?=\()/
|
368
|
+
}, {
|
369
|
+
token : "support.function.dom",
|
370
|
+
regex : /(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|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
|
371
|
+
}, {
|
372
|
+
token : "support.constant",
|
373
|
+
regex : /(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(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
|
374
|
+
}, {
|
375
|
+
token : "identifier",
|
376
|
+
regex : identifierRe
|
377
|
+
}, {
|
378
|
+
regex: "",
|
379
|
+
token: "empty",
|
380
|
+
next: "no_regex"
|
381
|
+
}
|
382
|
+
],
|
356
383
|
"start": [
|
357
384
|
DocCommentHighlightRules.getStartRule("doc-start"),
|
358
385
|
{
|
@@ -507,7 +534,7 @@ var JavaScriptHighlightRules = function(options) {
|
|
507
534
|
if (val == "}" && stack.length) {
|
508
535
|
stack.shift();
|
509
536
|
this.next = stack.shift();
|
510
|
-
if (this.next.indexOf("string") != -1)
|
537
|
+
if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
|
511
538
|
return "paren.quasi.end";
|
512
539
|
}
|
513
540
|
return val == "{" ? "paren.lparen" : "paren.rparen";
|
@@ -531,6 +558,9 @@ var JavaScriptHighlightRules = function(options) {
|
|
531
558
|
defaultToken: "string.quasi"
|
532
559
|
}]
|
533
560
|
});
|
561
|
+
|
562
|
+
if (!options || !options.noJSX)
|
563
|
+
JSX.call(this);
|
534
564
|
}
|
535
565
|
|
536
566
|
this.embedRules(DocCommentHighlightRules, "doc-",
|
@@ -541,6 +571,105 @@ var JavaScriptHighlightRules = function(options) {
|
|
541
571
|
|
542
572
|
oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
|
543
573
|
|
574
|
+
function JSX() {
|
575
|
+
var tagRegex = identifierRe.replace("\\d", "\\d\\-");
|
576
|
+
var jsxTag = {
|
577
|
+
onMatch : function(val, state, stack) {
|
578
|
+
var offset = val.charAt(1) == "/" ? 2 : 1;
|
579
|
+
if (offset == 1) {
|
580
|
+
if (state != this.nextState)
|
581
|
+
stack.unshift(this.next, this.nextState, 0);
|
582
|
+
else
|
583
|
+
stack.unshift(this.next);
|
584
|
+
stack[2]++;
|
585
|
+
} else if (offset == 2) {
|
586
|
+
if (state == this.nextState) {
|
587
|
+
stack[1]--;
|
588
|
+
if (!stack[1] || stack[1] < 0) {
|
589
|
+
stack.shift();
|
590
|
+
stack.shift();
|
591
|
+
}
|
592
|
+
}
|
593
|
+
}
|
594
|
+
return [{
|
595
|
+
type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
|
596
|
+
value: val.slice(0, offset)
|
597
|
+
}, {
|
598
|
+
type: "meta.tag.tag-name.xml",
|
599
|
+
value: val.substr(offset)
|
600
|
+
}];
|
601
|
+
},
|
602
|
+
regex : "</?" + tagRegex + "",
|
603
|
+
next: "jsxAttributes",
|
604
|
+
nextState: "jsx"
|
605
|
+
};
|
606
|
+
this.$rules.start.unshift(jsxTag);
|
607
|
+
var jsxJsRule = {
|
608
|
+
regex: "{",
|
609
|
+
token: "paren.quasi.start",
|
610
|
+
push: "start"
|
611
|
+
};
|
612
|
+
this.$rules.jsx = [
|
613
|
+
jsxJsRule,
|
614
|
+
jsxTag,
|
615
|
+
{include : "reference"},
|
616
|
+
{defaultToken: "string"}
|
617
|
+
];
|
618
|
+
this.$rules.jsxAttributes = [{
|
619
|
+
token : "meta.tag.punctuation.tag-close.xml",
|
620
|
+
regex : "/?>",
|
621
|
+
onMatch : function(value, currentState, stack) {
|
622
|
+
if (currentState == stack[0])
|
623
|
+
stack.shift();
|
624
|
+
if (value.length == 2) {
|
625
|
+
if (stack[0] == this.nextState)
|
626
|
+
stack[1]--;
|
627
|
+
if (!stack[1] || stack[1] < 0) {
|
628
|
+
stack.splice(0, 2);
|
629
|
+
}
|
630
|
+
}
|
631
|
+
this.next = stack[0] || "start";
|
632
|
+
return [{type: this.token, value: value}];
|
633
|
+
},
|
634
|
+
nextState: "jsx"
|
635
|
+
},
|
636
|
+
jsxJsRule,
|
637
|
+
{
|
638
|
+
token : "entity.other.attribute-name.xml",
|
639
|
+
regex : tagRegex
|
640
|
+
}, {
|
641
|
+
token : "keyword.operator.attribute-equals.xml",
|
642
|
+
regex : "="
|
643
|
+
}, {
|
644
|
+
token : "text.tag-whitespace.xml",
|
645
|
+
regex : "\\s+"
|
646
|
+
}, {
|
647
|
+
token : "string.attribute-value.xml",
|
648
|
+
regex : "'",
|
649
|
+
stateName : "jsx_attr_q",
|
650
|
+
push : [
|
651
|
+
{token : "string.attribute-value.xml", regex: "'", next: "pop"},
|
652
|
+
jsxJsRule,
|
653
|
+
{include : "reference"},
|
654
|
+
{defaultToken : "string.attribute-value.xml"}
|
655
|
+
]
|
656
|
+
}, {
|
657
|
+
token : "string.attribute-value.xml",
|
658
|
+
regex : '"',
|
659
|
+
stateName : "jsx_attr_qq",
|
660
|
+
push : [
|
661
|
+
jsxJsRule,
|
662
|
+
{token : "string.attribute-value.xml", regex: '"', next: "pop"},
|
663
|
+
{include : "reference"},
|
664
|
+
{defaultToken : "string.attribute-value.xml"}
|
665
|
+
]
|
666
|
+
}];
|
667
|
+
this.$rules.reference = [{
|
668
|
+
token : "constant.language.escape.reference.xml",
|
669
|
+
regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
670
|
+
}];
|
671
|
+
}
|
672
|
+
|
544
673
|
exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
|
545
674
|
});
|
546
675
|
|
@@ -551,8 +680,7 @@ var oop = require("../lib/oop");
|
|
551
680
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
552
681
|
|
553
682
|
var XmlHighlightRules = function(normalize) {
|
554
|
-
|
555
|
-
var tagRegex = "[a-zA-Z][-_a-zA-Z0-9]*";
|
683
|
+
var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
|
556
684
|
|
557
685
|
this.$rules = {
|
558
686
|
start : [
|
@@ -794,7 +922,7 @@ var HtmlHighlightRules = function() {
|
|
794
922
|
include : "tag_whitespace"
|
795
923
|
}, {
|
796
924
|
token : "entity.other.attribute-name.xml",
|
797
|
-
regex : "[-_a-zA-Z0-9
|
925
|
+
regex : "[-_a-zA-Z0-9:.]+"
|
798
926
|
}, {
|
799
927
|
token : "keyword.operator.attribute-equals.xml",
|
800
928
|
regex : "=",
|
@@ -818,7 +946,7 @@ var HtmlHighlightRules = function() {
|
|
818
946
|
return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
|
819
947
|
"meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
|
820
948
|
},
|
821
|
-
regex : "(</?)([-_a-zA-Z0-9
|
949
|
+
regex : "(</?)([-_a-zA-Z0-9:.]+)",
|
822
950
|
next: "tag_stuff"
|
823
951
|
}],
|
824
952
|
tag_stuff: [
|
@@ -828,7 +956,7 @@ var HtmlHighlightRules = function() {
|
|
828
956
|
});
|
829
957
|
|
830
958
|
this.embedTagRules(CssHighlightRules, "css-", "style");
|
831
|
-
this.embedTagRules(JavaScriptHighlightRules, "js-", "script");
|
959
|
+
this.embedTagRules(new JavaScriptHighlightRules({noJSX: true}).getRules(), "js-", "script");
|
832
960
|
|
833
961
|
if (this.constructor === HtmlHighlightRules)
|
834
962
|
this.normalizeRules();
|
@@ -5,17 +5,32 @@ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
5
5
|
var stringEscape = "\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})";
|
6
6
|
|
7
7
|
var GherkinHighlightRules = function() {
|
8
|
+
var languages = [{
|
9
|
+
name: "en",
|
10
|
+
labels: "Feature|Background|Scenario(?: Outline)?|Examples",
|
11
|
+
keywords: "Given|When|Then|And|But"
|
12
|
+
}];
|
13
|
+
|
14
|
+
var labels = languages.map(function(l) {
|
15
|
+
return l.labels;
|
16
|
+
}).join("|");
|
17
|
+
var keywords = languages.map(function(l) {
|
18
|
+
return l.keywords;
|
19
|
+
}).join("|");
|
8
20
|
this.$rules = {
|
9
|
-
|
21
|
+
start : [{
|
10
22
|
token: 'constant.numeric',
|
11
23
|
regex: "(?:(?:[1-9]\\d*)|(?:0))"
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
24
|
+
}, {
|
25
|
+
token : "comment",
|
26
|
+
regex : "#.*$"
|
27
|
+
}, {
|
28
|
+
token : "keyword",
|
29
|
+
regex : "(?:" + labels + "):|(?:" + keywords + ")\\b",
|
30
|
+
}, {
|
31
|
+
token : "keyword",
|
32
|
+
regex : "\\*",
|
33
|
+
}, {
|
19
34
|
token : "string", // multi line """ string start
|
20
35
|
regex : '"{3}',
|
21
36
|
next : "qqstring3"
|
@@ -24,22 +39,32 @@ var GherkinHighlightRules = function() {
|
|
24
39
|
regex : '"',
|
25
40
|
next : "qqstring"
|
26
41
|
}, {
|
27
|
-
|
28
|
-
|
29
|
-
|
42
|
+
token : "text",
|
43
|
+
regex : "^\\s*(?=@[\\w])",
|
44
|
+
next : [{
|
45
|
+
token : "text",
|
46
|
+
regex : "\\s+",
|
47
|
+
}, {
|
48
|
+
token : "variable.parameter",
|
49
|
+
regex : "@[\\w]+"
|
50
|
+
}, {
|
51
|
+
token : "empty",
|
52
|
+
regex : "",
|
53
|
+
next : "start"
|
54
|
+
}]
|
30
55
|
}, {
|
31
|
-
|
32
|
-
|
56
|
+
token : "comment",
|
57
|
+
regex : "<[^>]+>"
|
33
58
|
}, {
|
34
|
-
|
35
|
-
|
36
|
-
|
59
|
+
token : "comment",
|
60
|
+
regex : "\\|(?=.)",
|
61
|
+
next : "table-item"
|
37
62
|
}, {
|
38
|
-
|
39
|
-
|
40
|
-
|
63
|
+
token : "comment",
|
64
|
+
regex : "\\|$",
|
65
|
+
next : "start"
|
41
66
|
}],
|
42
|
-
|
67
|
+
"qqstring3" : [ {
|
43
68
|
token : "constant.language.escape",
|
44
69
|
regex : stringEscape
|
45
70
|
}, {
|
@@ -49,7 +74,7 @@ var GherkinHighlightRules = function() {
|
|
49
74
|
}, {
|
50
75
|
defaultToken : "string"
|
51
76
|
}],
|
52
|
-
|
77
|
+
"qqstring" : [{
|
53
78
|
token : "constant.language.escape",
|
54
79
|
regex : stringEscape
|
55
80
|
}, {
|
@@ -64,12 +89,20 @@ var GherkinHighlightRules = function() {
|
|
64
89
|
defaultToken: "string"
|
65
90
|
}],
|
66
91
|
"table-item" : [{
|
92
|
+
token : "comment",
|
93
|
+
regex : /$/,
|
94
|
+
next : "start"
|
95
|
+
}, {
|
96
|
+
token : "comment",
|
97
|
+
regex : /\|/
|
98
|
+
}, {
|
67
99
|
token : "string",
|
68
|
-
regex :
|
69
|
-
|
70
|
-
|
100
|
+
regex : /\\./
|
101
|
+
}, {
|
102
|
+
defaultToken : "string"
|
103
|
+
}]
|
71
104
|
};
|
72
|
-
|
105
|
+
this.normalizeRules();
|
73
106
|
}
|
74
107
|
|
75
108
|
oop.inherits(GherkinHighlightRules, TextHighlightRules);
|