From 691b52cd9277b91d2a7829ab722b05ff53e0f78e Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 21 Mar 2013 23:50:36 +0400 Subject: [PATCH] remove trailing commas --- lib/ace/editor.js | 2 +- lib/ace/keyboard/vim/maps/motions.js | 2 +- lib/ace/mode/coffee_highlight_rules.js | 2 +- lib/ace/mode/folding/lua.js | 2 +- lib/ace/mode/jade_highlight_rules.js | 12 ++++++------ lib/ace/mode/javascript_highlight_rules.js | 18 +++++++++--------- lib/ace/mode/json_highlight_rules.js | 6 +++--- lib/ace/mode/objectivec_highlight_rules.js | 2 +- lib/ace/mode/sass_highlight_rules.js | 2 +- lib/ace/mode/toml_highlight_rules.js | 4 ++-- lib/ace/mode/vbscript_highlight_rules.js | 2 +- lib/ace/range_test.js | 2 +- 12 files changed, 28 insertions(+), 28 deletions(-) diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 92a10add..f654f520 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -2197,7 +2197,7 @@ config.defineOptions(Editor.prototype, "editor", { this.onSelectionChange(); this._emit("changeSelectionStyle", {data: style}); }, - initialValue: "line", + initialValue: "line" }, highlightActiveLine: { set: function() {this.$updateHighlightActiveLine();}, diff --git a/lib/ace/keyboard/vim/maps/motions.js b/lib/ace/keyboard/vim/maps/motions.js index 3611386b..c3ee5518 100644 --- a/lib/ace/keyboard/vim/maps/motions.js +++ b/lib/ace/keyboard/vim/maps/motions.js @@ -651,7 +651,7 @@ module.exports = { return pos; } } - }), + }) }; module.exports.backspace = module.exports.left = module.exports.h; diff --git a/lib/ace/mode/coffee_highlight_rules.js b/lib/ace/mode/coffee_highlight_rules.js index 5d66c1bf..11bbbb53 100644 --- a/lib/ace/mode/coffee_highlight_rules.js +++ b/lib/ace/mode/coffee_highlight_rules.js @@ -206,7 +206,7 @@ define(function(require, exports, module) { regex : '###', next : "start" }, { - defaultToken : "comment", + defaultToken : "comment" }] }; this.normalizeRules(); diff --git a/lib/ace/mode/folding/lua.js b/lib/ace/mode/folding/lua.js index 42a3072e..f4b52334 100644 --- a/lib/ace/mode/folding/lua.js +++ b/lib/ace/mode/folding/lua.js @@ -117,7 +117,7 @@ oop.inherits(FoldMode, BaseFoldMode); "elseif": -1, "end": -1, "repeat": 1, - "until": -1, + "until": -1 }; var token = stream.getCurrentToken(); diff --git a/lib/ace/mode/jade_highlight_rules.js b/lib/ace/mode/jade_highlight_rules.js index 95650bb1..c46c0be7 100644 --- a/lib/ace/mode/jade_highlight_rules.js +++ b/lib/ace/mode/jade_highlight_rules.js @@ -263,15 +263,15 @@ var JadeHighlightRules = function() { regex : escapedRe }, { token : "string", - regex : '[^"\\\\]+', + regex : '[^"\\\\]+' }, { token : "string", regex : "\\\\$", - next : "qqstring", + next : "qqstring" }, { token : "string", regex : '"|$', - next : "tag_attributes", + next : "tag_attributes" } ], "qstring" : [ @@ -280,15 +280,15 @@ var JadeHighlightRules = function() { regex : escapedRe }, { token : "string", - regex : "[^'\\\\]+", + regex : "[^'\\\\]+" }, { token : "string", regex : "\\\\$", - next : "qstring", + next : "qstring" }, { token : "string", regex : "'|$", - next : "tag_attributes", + next : "tag_attributes" } ] }; diff --git a/lib/ace/mode/javascript_highlight_rules.js b/lib/ace/mode/javascript_highlight_rules.js index 77426ab3..531b0cd5 100644 --- a/lib/ace/mode/javascript_highlight_rules.js +++ b/lib/ace/mode/javascript_highlight_rules.js @@ -220,7 +220,7 @@ var JavaScriptHighlightRules = function() { }, { token: "string.regexp", regex: "\\/", - next: "regex", + next: "regex" }, { token : "text", regex : "\\s+|^$", @@ -242,7 +242,7 @@ var JavaScriptHighlightRules = function() { // flag token: "string.regexp", regex: "/\\w*", - next: "no_regex", + next: "no_regex" }, { // invalid operators token : "invalid", @@ -257,7 +257,7 @@ var JavaScriptHighlightRules = function() { }, { token: "constant.language.escape", regex: /\[\^?/, - next: "regex_character_class", + next: "regex_character_class" }, { token: "empty", regex: "$", @@ -291,10 +291,10 @@ var JavaScriptHighlightRules = function() { regex: identifierRe }, { token: "punctuation.operator", - regex: "[, ]+", + regex: "[, ]+" }, { token: "punctuation.operator", - regex: "$", + regex: "$" }, { token: "empty", regex: "", @@ -316,11 +316,11 @@ var JavaScriptHighlightRules = function() { }, { token : "string", regex : "\\\\$", - next : "qqstring", + next : "qqstring" }, { token : "string", regex : '"|$', - next : "no_regex", + next : "no_regex" }, { defaultToken: "string" } @@ -332,11 +332,11 @@ var JavaScriptHighlightRules = function() { }, { token : "string", regex : "\\\\$", - next : "qstring", + next : "qstring" }, { token : "string", regex : "'|$", - next : "no_regex", + next : "no_regex" }, { defaultToken: "string" } diff --git a/lib/ace/mode/json_highlight_rules.js b/lib/ace/mode/json_highlight_rules.js index f03f5fac..4bccaf18 100644 --- a/lib/ace/mode/json_highlight_rules.js +++ b/lib/ace/mode/json_highlight_rules.js @@ -79,15 +79,15 @@ var JsonHighlightRules = function() { regex : /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/ }, { token : "string", - regex : '[^"\\\\]+', + regex : '[^"\\\\]+' }, { token : "string", regex : '"', - next : "start", + next : "start" }, { token : "string", regex : "", - next : "start", + next : "start" } ] }; diff --git a/lib/ace/mode/objectivec_highlight_rules.js b/lib/ace/mode/objectivec_highlight_rules.js index 0161098b..7a581c28 100644 --- a/lib/ace/mode/objectivec_highlight_rules.js +++ b/lib/ace/mode/objectivec_highlight_rules.js @@ -122,7 +122,7 @@ var ObjectiveCHighlightRules = function() { }, { token: ["support.class.cocoa"], - regex: "(?:\\b)(NS(?:R(?:u(?:nLoop|ler(?:Marker|View))|e(?:sponder|cursiveLock|lativeSpecifier)|an(?:domSpecifier|geSpecifier))|G(?:etCommand|lyph(?:Generator|Storage|Info)|raphicsContext)|XML(?:Node|D(?:ocument|TD(?:Node)?)|Parser|Element)|M(?:iddleSpecifier|ov(?:ie(?:View)?|eCommand)|utable(?:S(?:tring|et)|C(?:haracterSet|opying)|IndexSet|D(?:ictionary|ata)|URLRequest|ParagraphStyle|A(?:ttributedString|rray))|e(?:ssagePort(?:NameServer)?|nu(?:Item(?:Cell)?|View)?|t(?:hodSignature|adata(?:Item|Query(?:ResultGroup|AttributeValueTuple)?)))|a(?:ch(?:BootstrapServer|Port)|trix))|B(?:itmapImageRep|ox|u(?:ndle|tton(?:Cell)?)|ezierPath|rowser(?:Cell)?)|S(?:hadow|c(?:anner|r(?:ipt(?:SuiteRegistry|C(?:o(?:ercionHandler|mmand(?:Description)?)|lassDescription)|ObjectSpecifier|ExecutionContext|WhoseTest)|oll(?:er|View)|een))|t(?:epper(?:Cell)?|atus(?:Bar|Item)|r(?:ing|eam))|imple(?:HorizontalTypesetter|CString)|o(?:cketPort(?:NameServer)?|und|rtDescriptor)|p(?:e(?:cifierTest|ech(?:Recognizer|Synthesizer)|ll(?:Server|Checker))|litView)|e(?:cureTextField(?:Cell)?|t(?:Command)?|archField(?:Cell)?|rializer|gmentedC(?:ontrol|ell))|lider(?:Cell)?|avePanel)|H(?:ost|TTP(?:Cookie(?:Storage)?|URLResponse)|elpManager)|N(?:ib(?:Con(?:nector|trolConnector)|OutletConnector)?|otification(?:Center|Queue)?|u(?:ll|mber(?:Formatter)?)|etService(?:Browser)?|ameSpecifier)|C(?:ha(?:ngeSpelling|racterSet)|o(?:n(?:stantString|nection|trol(?:ler)?|ditionLock)|d(?:ing|er)|unt(?:Command|edSet)|pying|lor(?:Space|P(?:ick(?:ing(?:Custom|Default)|er)|anel)|Well|List)?|m(?:p(?:oundPredicate|arisonPredicate)|boBox(?:Cell)?))|u(?:stomImageRep|rsor)|IImageRep|ell|l(?:ipView|o(?:seCommand|neCommand)|assDescription)|a(?:ched(?:ImageRep|URLResponse)|lendar(?:Date)?)|reateCommand)|T(?:hread|ypesetter|ime(?:Zone|r)|o(?:olbar(?:Item(?:Validations)?)?|kenField(?:Cell)?)|ext(?:Block|Storage|Container|Tab(?:le(?:Block)?)?|Input|View|Field(?:Cell)?|List|Attachment(?:Cell)?)?|a(?:sk|b(?:le(?:Header(?:Cell|View)|Column|View)|View(?:Item)?))|reeController)|I(?:n(?:dex(?:S(?:pecifier|et)|Path)|put(?:Manager|S(?:tream|erv(?:iceProvider|er(?:MouseTracker)?)))|vocation)|gnoreMisspelledWords|mage(?:Rep|Cell|View)?)|O(?:ut(?:putStream|lineView)|pen(?:GL(?:Context|Pixel(?:Buffer|Format)|View)|Panel)|bj(?:CTypeSerializationCallBack|ect(?:Controller)?))|D(?:i(?:st(?:antObject(?:Request)?|ributed(?:NotificationCenter|Lock))|ctionary|rectoryEnumerator)|ocument(?:Controller)?|e(?:serializer|cimalNumber(?:Behaviors|Handler)?|leteCommand)|at(?:e(?:Components|Picker(?:Cell)?|Formatter)?|a)|ra(?:wer|ggingInfo))|U(?:ser(?:InterfaceValidations|Defaults(?:Controller)?)|RL(?:Re(?:sponse|quest)|Handle(?:Client)?|C(?:onnection|ache|redential(?:Storage)?)|Download(?:Delegate)?|Prot(?:ocol(?:Client)?|ectionSpace)|AuthenticationChallenge(?:Sender)?)?|n(?:iqueIDSpecifier|doManager|archiver))|P(?:ipe|o(?:sitionalSpecifier|pUpButton(?:Cell)?|rt(?:Message|NameServer|Coder)?)|ICTImageRep|ersistentDocument|DFImageRep|a(?:steboard|nel|ragraphStyle|geLayout)|r(?:int(?:Info|er|Operation|Panel)|o(?:cessInfo|tocolChecker|perty(?:Specifier|ListSerialization)|gressIndicator|xy)|edicate))|E(?:numerator|vent|PSImageRep|rror|x(?:ception|istsCommand|pression))|V(?:iew(?:Animation)?|al(?:idated(?:ToobarItem|UserInterfaceItem)|ue(?:Transformer)?))|Keyed(?:Unarchiver|Archiver)|Qui(?:ckDrawView|tCommand)|F(?:ile(?:Manager|Handle|Wrapper)|o(?:nt(?:Manager|Descriptor|Panel)?|rm(?:Cell|atter)))|W(?:hoseSpecifier|indow(?:Controller)?|orkspace)|L(?:o(?:c(?:k(?:ing)?|ale)|gicalTest)|evelIndicator(?:Cell)?|ayoutManager)|A(?:ssertionHandler|nimation|ctionCell|ttributedString|utoreleasePool|TSTypesetter|ppl(?:ication|e(?:Script|Event(?:Manager|Descriptor)))|ffineTransform|lert|r(?:chiver|ray(?:Controller)?))))(?:\\b)", + regex: "(?:\\b)(NS(?:R(?:u(?:nLoop|ler(?:Marker|View))|e(?:sponder|cursiveLock|lativeSpecifier)|an(?:domSpecifier|geSpecifier))|G(?:etCommand|lyph(?:Generator|Storage|Info)|raphicsContext)|XML(?:Node|D(?:ocument|TD(?:Node)?)|Parser|Element)|M(?:iddleSpecifier|ov(?:ie(?:View)?|eCommand)|utable(?:S(?:tring|et)|C(?:haracterSet|opying)|IndexSet|D(?:ictionary|ata)|URLRequest|ParagraphStyle|A(?:ttributedString|rray))|e(?:ssagePort(?:NameServer)?|nu(?:Item(?:Cell)?|View)?|t(?:hodSignature|adata(?:Item|Query(?:ResultGroup|AttributeValueTuple)?)))|a(?:ch(?:BootstrapServer|Port)|trix))|B(?:itmapImageRep|ox|u(?:ndle|tton(?:Cell)?)|ezierPath|rowser(?:Cell)?)|S(?:hadow|c(?:anner|r(?:ipt(?:SuiteRegistry|C(?:o(?:ercionHandler|mmand(?:Description)?)|lassDescription)|ObjectSpecifier|ExecutionContext|WhoseTest)|oll(?:er|View)|een))|t(?:epper(?:Cell)?|atus(?:Bar|Item)|r(?:ing|eam))|imple(?:HorizontalTypesetter|CString)|o(?:cketPort(?:NameServer)?|und|rtDescriptor)|p(?:e(?:cifierTest|ech(?:Recognizer|Synthesizer)|ll(?:Server|Checker))|litView)|e(?:cureTextField(?:Cell)?|t(?:Command)?|archField(?:Cell)?|rializer|gmentedC(?:ontrol|ell))|lider(?:Cell)?|avePanel)|H(?:ost|TTP(?:Cookie(?:Storage)?|URLResponse)|elpManager)|N(?:ib(?:Con(?:nector|trolConnector)|OutletConnector)?|otification(?:Center|Queue)?|u(?:ll|mber(?:Formatter)?)|etService(?:Browser)?|ameSpecifier)|C(?:ha(?:ngeSpelling|racterSet)|o(?:n(?:stantString|nection|trol(?:ler)?|ditionLock)|d(?:ing|er)|unt(?:Command|edSet)|pying|lor(?:Space|P(?:ick(?:ing(?:Custom|Default)|er)|anel)|Well|List)?|m(?:p(?:oundPredicate|arisonPredicate)|boBox(?:Cell)?))|u(?:stomImageRep|rsor)|IImageRep|ell|l(?:ipView|o(?:seCommand|neCommand)|assDescription)|a(?:ched(?:ImageRep|URLResponse)|lendar(?:Date)?)|reateCommand)|T(?:hread|ypesetter|ime(?:Zone|r)|o(?:olbar(?:Item(?:Validations)?)?|kenField(?:Cell)?)|ext(?:Block|Storage|Container|Tab(?:le(?:Block)?)?|Input|View|Field(?:Cell)?|List|Attachment(?:Cell)?)?|a(?:sk|b(?:le(?:Header(?:Cell|View)|Column|View)|View(?:Item)?))|reeController)|I(?:n(?:dex(?:S(?:pecifier|et)|Path)|put(?:Manager|S(?:tream|erv(?:iceProvider|er(?:MouseTracker)?)))|vocation)|gnoreMisspelledWords|mage(?:Rep|Cell|View)?)|O(?:ut(?:putStream|lineView)|pen(?:GL(?:Context|Pixel(?:Buffer|Format)|View)|Panel)|bj(?:CTypeSerializationCallBack|ect(?:Controller)?))|D(?:i(?:st(?:antObject(?:Request)?|ributed(?:NotificationCenter|Lock))|ctionary|rectoryEnumerator)|ocument(?:Controller)?|e(?:serializer|cimalNumber(?:Behaviors|Handler)?|leteCommand)|at(?:e(?:Components|Picker(?:Cell)?|Formatter)?|a)|ra(?:wer|ggingInfo))|U(?:ser(?:InterfaceValidations|Defaults(?:Controller)?)|RL(?:Re(?:sponse|quest)|Handle(?:Client)?|C(?:onnection|ache|redential(?:Storage)?)|Download(?:Delegate)?|Prot(?:ocol(?:Client)?|ectionSpace)|AuthenticationChallenge(?:Sender)?)?|n(?:iqueIDSpecifier|doManager|archiver))|P(?:ipe|o(?:sitionalSpecifier|pUpButton(?:Cell)?|rt(?:Message|NameServer|Coder)?)|ICTImageRep|ersistentDocument|DFImageRep|a(?:steboard|nel|ragraphStyle|geLayout)|r(?:int(?:Info|er|Operation|Panel)|o(?:cessInfo|tocolChecker|perty(?:Specifier|ListSerialization)|gressIndicator|xy)|edicate))|E(?:numerator|vent|PSImageRep|rror|x(?:ception|istsCommand|pression))|V(?:iew(?:Animation)?|al(?:idated(?:ToobarItem|UserInterfaceItem)|ue(?:Transformer)?))|Keyed(?:Unarchiver|Archiver)|Qui(?:ckDrawView|tCommand)|F(?:ile(?:Manager|Handle|Wrapper)|o(?:nt(?:Manager|Descriptor|Panel)?|rm(?:Cell|atter)))|W(?:hoseSpecifier|indow(?:Controller)?|orkspace)|L(?:o(?:c(?:k(?:ing)?|ale)|gicalTest)|evelIndicator(?:Cell)?|ayoutManager)|A(?:ssertionHandler|nimation|ctionCell|ttributedString|utoreleasePool|TSTypesetter|ppl(?:ication|e(?:Script|Event(?:Manager|Descriptor)))|ffineTransform|lert|r(?:chiver|ray(?:Controller)?))))(?:\\b)" }, { token: ["support.type.cocoa.leopard"], diff --git a/lib/ace/mode/sass_highlight_rules.js b/lib/ace/mode/sass_highlight_rules.js index 09f30262..0183f735 100644 --- a/lib/ace/mode/sass_highlight_rules.js +++ b/lib/ace/mode/sass_highlight_rules.js @@ -51,7 +51,7 @@ var SassHighlightRules = function() { regex: "/\\*|[{;}]" }, { token: "support.type", - regex: /^\s*:[\w\-]+\s/, + regex: /^\s*:[\w\-]+\s/ }); this.$rules.comment = [ diff --git a/lib/ace/mode/toml_highlight_rules.js b/lib/ace/mode/toml_highlight_rules.js index a448923d..686ffae2 100644 --- a/lib/ace/mode/toml_highlight_rules.js +++ b/lib/ace/mode/toml_highlight_rules.js @@ -78,7 +78,7 @@ var TomlHighlightRules = function() { { token : "string", regex : "\\\\$", - next : "qqstring", + next : "qqstring" }, { token : "constant.language.escape", @@ -87,7 +87,7 @@ var TomlHighlightRules = function() { { token : "string", regex : '"|$', - next : "start", + next : "start" }, { defaultToken: "string" diff --git a/lib/ace/mode/vbscript_highlight_rules.js b/lib/ace/mode/vbscript_highlight_rules.js index 25edae52..e588dfe3 100644 --- a/lib/ace/mode/vbscript_highlight_rules.js +++ b/lib/ace/mode/vbscript_highlight_rules.js @@ -248,7 +248,7 @@ var VBScriptHighlightRules = function() { }, { token: "comment.line.apostrophe.asp", - regex: ".", + regex: "." } ], "string": [ diff --git a/lib/ace/range_test.js b/lib/ace/range_test.js index 1b343a34..16265bf8 100644 --- a/lib/ace/range_test.js +++ b/lib/ace/range_test.js @@ -167,7 +167,7 @@ module.exports = { "juhu", "12\t\t34", "ぁぁa", - "\t\t34", + "\t\t34" ]); var range = new Range(0, 0, 0, 3);