remove trailing commas

This commit is contained in:
nightwing 2013-07-30 00:28:05 +04:00
commit f2944d4ced
7 changed files with 10 additions and 10 deletions

View file

@ -21,7 +21,7 @@ var JsRegexHighlightRules = function() {
// flag // flag
token: "string.regexp", token: "string.regexp",
regex: "/\\w*", regex: "/\\w*",
next: "start", next: "start"
}, { }, {
token : ["string", "string.regex"], token : ["string", "string.regex"],
regex: quantifier, regex: quantifier,
@ -43,7 +43,7 @@ var JsRegexHighlightRules = function() {
}, { }, {
token: "constant.language.escape", token: "constant.language.escape",
regex: /\[\^?/, regex: /\[\^?/,
next: "character_class", next: "character_class"
}, { }, {
token: "empty", token: "empty",
regex: "$", regex: "$",
@ -63,7 +63,7 @@ var JsRegexHighlightRules = function() {
}, { }, {
token: "constant.language.escape", token: "constant.language.escape",
regex: "]", regex: "]",
next: "start", next: "start"
}, { }, {
token: "constant.language.escape", token: "constant.language.escape",
regex: "-" regex: "-"

View file

@ -559,7 +559,7 @@ var MushCodeRules = function() {
}, { }, {
token : "text", token : "text",
regex : "\\s+" regex : "\\s+"
} ], } ]
}; };
}; };

View file

@ -108,7 +108,7 @@ var MysqlHighlightRules = function() {
"comment" : [ "comment" : [
{token : "comment", regex : "\\*\\/", next : "start"}, {token : "comment", regex : "\\*\\/", next : "start"},
{defaultToken : "comment"} {defaultToken : "comment"}
], ]
}; };
this.embedRules(DocCommentHighlightRules, "doc-", [ DocCommentHighlightRules.getEndRule("start") ]); this.embedRules(DocCommentHighlightRules, "doc-", [ DocCommentHighlightRules.getEndRule("start") ]);

View file

@ -1013,7 +1013,7 @@ var PhpLangHighlightRules = function() {
next: "start" next: "start"
}, { }, {
token: "string", token: "string",
regex : ".*", regex : ".*"
} }
], ],
"comment" : [ "comment" : [

View file

@ -53,7 +53,7 @@ var PropertiesHighlightRules = function() {
next : "value" next : "value"
}, { }, {
token : "constant.language.escape", token : "constant.language.escape",
regex : escapeRe, regex : escapeRe
}, { }, {
defaultToken: "variable" defaultToken: "variable"
} }

View file

@ -86,7 +86,7 @@ var SnippetGroupHighlightRules = function() {
{onMatch: function(value, state, stack) { {onMatch: function(value, state, stack) {
stack.splice(stack.length); stack.splice(stack.length);
return this.tokenName; return this.tokenName;
}, tokenName: "text", regex: "^(?!\t)", next: "start"}, }, tokenName: "text", regex: "^(?!\t)", next: "start"}
]) ])
}; };

View file

@ -139,7 +139,7 @@ var TwigHighlightRules = function() {
}, { }, {
token : "string", token : "string",
regex : '"', regex : '"',
next : "twig-start", next : "twig-start"
}, { }, {
defaultToken : "string" defaultToken : "string"
} }
@ -151,7 +151,7 @@ var TwigHighlightRules = function() {
}, { }, {
token : "string", token : "string",
regex : "'", regex : "'",
next : "twig-start", next : "twig-start"
}, { }, {
defaultToken : "string" defaultToken : "string"
} }