Sha256: 25e737a86bd1f8e374eeaef954ab3cbd89520584fe03cf917a103c246a079aa7

Contents?: true

Size: 1.9 KB

Versions: 97

Compression:

Stored size: 1.9 KB

Contents

define("ace/mode/gherkin_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s="\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})",o=function(){this.$rules={start:[{token:"constant.numeric",regex:"(?:(?:[1-9]\\d*)|(?:0))"},{token:"comment",regex:"#.*$"},{token:"keyword",regex:"Feature:|Background:|Scenario:|Scenario Outline:|Examples:|Given|When|Then|And|But|\\*"},{token:"string",regex:'"{3}',next:"qqstring3"},{token:"string",regex:'"',next:"qqstring"},{token:"comment",regex:"@[A-Za-z0-9]+",next:"start"},{token:"comment",regex:"<.+>"},{token:"comment",regex:"\\| ",next:"table-item"},{token:"comment",regex:"\\|$",next:"start"}],qqstring3:[{token:"constant.language.escape",regex:s},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:s},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],"table-item":[{token:"string",regex:"[A-Za-z0-9 ]*",next:"start"}]}};r.inherits(o,i),t.GherkinHighlightRules=o}),define("ace/mode/gherkin",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/gherkin_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("./gherkin_highlight_rules").GherkinHighlightRules,o=function(){this.HighlightRules=s};r.inherits(o,i),function(){this.lineCommentStart="#",this.$id="ace/mode/gherkin",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i="  ",s=this.getTokenizer().getLineTokens(t,e),o=s.tokens;return console.log(e),t.match("[ ]*\\|")&&(r+="| "),o.length&&o[o.length-1].type=="comment"?r:(e=="start"&&(t.match("Scenario:|Feature:|Scenario Outline:|Background:")?r+=i:t.match("(Given|Then).+(:)$|Examples:")?r+=i:t.match("\\*.+")&&(r+="* ")),r)}}.call(o.prototype),t.Mode=o})

Version data entries

97 entries across 97 versions & 3 rubygems

Version Path
optimacms-0.1.61 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.30 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.29 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.23 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.15 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.12 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.11 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.9 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.8 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.7 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.6 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.5 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.2.26 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.2.25 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.2.24 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.4 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.3 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.2 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.3.1 spec/dummy/public/js/ace/src-min/mode-gherkin.js
optimacms-0.2.23 spec/dummy/public/js/ace/src-min/mode-gherkin.js