ace-rails-ap 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitmodules +3 -0
- data/lib/ace/rails/version.rb +1 -1
- data/update.sh +3 -0
- data/vendor/assets/javascripts/ace-compat-noconflict.js +1 -0
- data/vendor/assets/javascripts/ace-compat-uncompressed-noconflict.js +480 -0
- data/vendor/assets/javascripts/ace-compat-uncompressed.js +480 -0
- data/vendor/assets/javascripts/ace-compat.js +1 -0
- data/vendor/assets/javascripts/ace-noconflict.js +10 -0
- data/vendor/assets/javascripts/ace-uncompressed-noconflict.js +19976 -0
- data/vendor/assets/javascripts/ace-uncompressed.js +6568 -998
- data/vendor/assets/javascripts/ace.js +1 -1
- data/vendor/assets/javascripts/keybinding-emacs-noconflict.js +1 -0
- data/vendor/assets/javascripts/keybinding-emacs-uncompressed-noconflict.js +150 -0
- data/vendor/assets/javascripts/keybinding-emacs-uncompressed.js +150 -0
- data/vendor/assets/javascripts/keybinding-emacs.js +1 -1
- data/vendor/assets/javascripts/keybinding-vim-noconflict.js +1 -0
- data/vendor/assets/javascripts/keybinding-vim-uncompressed-noconflict.js +138 -0
- data/vendor/assets/javascripts/keybinding-vim-uncompressed.js +138 -0
- data/vendor/assets/javascripts/keybinding-vim.js +1 -1
- data/vendor/assets/javascripts/mode-c_cpp-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-c_cpp-uncompressed-noconflict.js +919 -0
- data/vendor/assets/javascripts/mode-c_cpp-uncompressed.js +919 -0
- data/vendor/assets/javascripts/mode-c_cpp.js +1 -1
- data/vendor/assets/javascripts/mode-clojure-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-clojure-uncompressed-noconflict.js +422 -0
- data/vendor/assets/javascripts/mode-clojure-uncompressed.js +422 -0
- data/vendor/assets/javascripts/mode-clojure.js +1 -1
- data/vendor/assets/javascripts/mode-coffee-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-coffee-uncompressed-noconflict.js +607 -0
- data/vendor/assets/javascripts/mode-coffee-uncompressed.js +607 -0
- data/vendor/assets/javascripts/mode-coffee.js +1 -1
- data/vendor/assets/javascripts/mode-coldfusion-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-coldfusion-uncompressed-noconflict.js +2458 -0
- data/vendor/assets/javascripts/mode-coldfusion-uncompressed.js +2458 -0
- data/vendor/assets/javascripts/mode-coldfusion.js +1 -0
- data/vendor/assets/javascripts/mode-csharp-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-csharp-uncompressed-noconflict.js +769 -0
- data/vendor/assets/javascripts/mode-csharp-uncompressed.js +769 -0
- data/vendor/assets/javascripts/mode-csharp.js +1 -1
- data/vendor/assets/javascripts/mode-css-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-css-uncompressed-noconflict.js +641 -0
- data/vendor/assets/javascripts/mode-css-uncompressed.js +641 -0
- data/vendor/assets/javascripts/mode-css.js +1 -1
- data/vendor/assets/javascripts/mode-golang-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-golang-uncompressed-noconflict.js +378 -0
- data/vendor/assets/javascripts/mode-golang-uncompressed.js +378 -0
- data/vendor/assets/javascripts/mode-golang.js +1 -0
- data/vendor/assets/javascripts/mode-groovy-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-groovy-uncompressed-noconflict.js +1393 -0
- data/vendor/assets/javascripts/mode-groovy-uncompressed.js +1393 -0
- data/vendor/assets/javascripts/mode-groovy.js +1 -1
- data/vendor/assets/javascripts/mode-haxe-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-haxe-uncompressed-noconflict.js +769 -0
- data/vendor/assets/javascripts/mode-haxe-uncompressed.js +769 -0
- data/vendor/assets/javascripts/mode-haxe.js +1 -0
- data/vendor/assets/javascripts/mode-html-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-html-uncompressed-noconflict.js +2475 -0
- data/vendor/assets/javascripts/mode-html-uncompressed.js +2475 -0
- data/vendor/assets/javascripts/mode-html.js +1 -1
- data/vendor/assets/javascripts/mode-java-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-java-uncompressed-noconflict.js +1395 -0
- data/vendor/assets/javascripts/mode-java-uncompressed.js +1395 -0
- data/vendor/assets/javascripts/mode-java.js +1 -1
- data/vendor/assets/javascripts/mode-javascript-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-javascript-uncompressed-noconflict.js +1226 -0
- data/vendor/assets/javascripts/mode-javascript-uncompressed.js +1226 -0
- data/vendor/assets/javascripts/mode-javascript.js +1 -1
- data/vendor/assets/javascripts/mode-json-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-json-uncompressed-noconflict.js +701 -0
- data/vendor/assets/javascripts/mode-json-uncompressed.js +701 -0
- data/vendor/assets/javascripts/mode-json.js +1 -1
- data/vendor/assets/javascripts/mode-latex-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-latex-uncompressed-noconflict.js +95 -0
- data/vendor/assets/javascripts/mode-latex-uncompressed.js +95 -0
- data/vendor/assets/javascripts/mode-less-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-less-uncompressed-noconflict.js +655 -0
- data/vendor/assets/javascripts/mode-less-uncompressed.js +655 -0
- data/vendor/assets/javascripts/mode-less.js +1 -0
- data/vendor/assets/javascripts/mode-liquid-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-liquid-uncompressed-noconflict.js +1353 -0
- data/vendor/assets/javascripts/mode-liquid-uncompressed.js +1353 -0
- data/vendor/assets/javascripts/mode-liquid.js +1 -0
- data/vendor/assets/javascripts/mode-lua-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-lua-uncompressed-noconflict.js +523 -0
- data/vendor/assets/javascripts/mode-lua-uncompressed.js +523 -0
- data/vendor/assets/javascripts/mode-markdown-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-markdown-uncompressed-noconflict.js +2925 -0
- data/vendor/assets/javascripts/mode-markdown-uncompressed.js +2925 -0
- data/vendor/assets/javascripts/mode-markdown.js +1 -1
- data/vendor/assets/javascripts/mode-ocaml-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-ocaml-uncompressed-noconflict.js +539 -0
- data/vendor/assets/javascripts/mode-ocaml-uncompressed.js +539 -0
- data/vendor/assets/javascripts/mode-ocaml.js +1 -1
- data/vendor/assets/javascripts/mode-perl-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-perl-uncompressed-noconflict.js +574 -0
- data/vendor/assets/javascripts/mode-perl-uncompressed.js +574 -0
- data/vendor/assets/javascripts/mode-perl.js +1 -1
- data/vendor/assets/javascripts/mode-pgsql-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-pgsql-uncompressed-noconflict.js +1104 -0
- data/vendor/assets/javascripts/mode-pgsql-uncompressed.js +1104 -0
- data/vendor/assets/javascripts/mode-pgsql.js +1 -0
- data/vendor/assets/javascripts/mode-php-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-php-uncompressed-noconflict.js +1885 -0
- data/vendor/assets/javascripts/mode-php-uncompressed.js +1885 -0
- data/vendor/assets/javascripts/mode-php.js +1 -1
- data/vendor/assets/javascripts/mode-powershell-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-powershell-uncompressed-noconflict.js +710 -0
- data/vendor/assets/javascripts/mode-powershell-uncompressed.js +710 -0
- data/vendor/assets/javascripts/mode-powershell.js +1 -0
- data/vendor/assets/javascripts/mode-python-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-python-uncompressed-noconflict.js +507 -0
- data/vendor/assets/javascripts/mode-python-uncompressed.js +507 -0
- data/vendor/assets/javascripts/mode-python.js +1 -1
- data/vendor/assets/javascripts/mode-ruby-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-ruby-uncompressed-noconflict.js +391 -0
- data/vendor/assets/javascripts/mode-ruby-uncompressed.js +391 -0
- data/vendor/assets/javascripts/mode-ruby.js +1 -1
- data/vendor/assets/javascripts/mode-scad-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-scad-uncompressed-noconflict.js +907 -0
- data/vendor/assets/javascripts/mode-scad-uncompressed.js +907 -0
- data/vendor/assets/javascripts/mode-scad.js +1 -1
- data/vendor/assets/javascripts/mode-scala-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-scala-uncompressed-noconflict.js +1395 -0
- data/vendor/assets/javascripts/mode-scala-uncompressed.js +1395 -0
- data/vendor/assets/javascripts/mode-scala.js +1 -1
- data/vendor/assets/javascripts/mode-scss-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-scss-uncompressed-noconflict.js +679 -0
- data/vendor/assets/javascripts/mode-scss-uncompressed.js +679 -0
- data/vendor/assets/javascripts/mode-scss.js +1 -1
- data/vendor/assets/javascripts/mode-sh-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-sh-uncompressed-noconflict.js +289 -0
- data/vendor/assets/javascripts/mode-sh-uncompressed.js +289 -0
- data/vendor/assets/javascripts/mode-sh.js +1 -0
- data/vendor/assets/javascripts/mode-sql-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-sql-uncompressed-noconflict.js +159 -0
- data/vendor/assets/javascripts/mode-sql-uncompressed.js +159 -0
- data/vendor/assets/javascripts/mode-sql.js +1 -0
- data/vendor/assets/javascripts/mode-svg-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-svg-uncompressed-noconflict.js +2137 -0
- data/vendor/assets/javascripts/mode-svg-uncompressed.js +2137 -0
- data/vendor/assets/javascripts/mode-svg.js +1 -1
- data/vendor/assets/javascripts/mode-text-noconflict.js +0 -0
- data/vendor/assets/javascripts/mode-text-uncompressed-noconflict.js +0 -0
- data/vendor/assets/javascripts/mode-text-uncompressed.js +0 -0
- data/vendor/assets/javascripts/mode-text.js +0 -0
- data/vendor/assets/javascripts/mode-textile-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-textile-uncompressed-noconflict.js +254 -0
- data/vendor/assets/javascripts/mode-textile-uncompressed.js +254 -0
- data/vendor/assets/javascripts/mode-textile.js +1 -1
- data/vendor/assets/javascripts/mode-xml-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-xml-uncompressed-noconflict.js +1012 -0
- data/vendor/assets/javascripts/mode-xml-uncompressed.js +1012 -0
- data/vendor/assets/javascripts/mode-xml.js +1 -1
- data/vendor/assets/javascripts/mode-xquery-noconflict.js +1 -0
- data/vendor/assets/javascripts/mode-xquery-uncompressed-noconflict.js +540 -0
- data/vendor/assets/javascripts/mode-xquery-uncompressed.js +540 -0
- data/vendor/assets/javascripts/mode-xquery.js +1 -0
- data/vendor/assets/javascripts/theme-chrome-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-chrome-uncompressed-noconflict.js +207 -0
- data/vendor/assets/javascripts/theme-chrome-uncompressed.js +207 -0
- data/vendor/assets/javascripts/theme-chrome.js +1 -0
- data/vendor/assets/javascripts/theme-clouds-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-clouds-uncompressed-noconflict.js +160 -0
- data/vendor/assets/javascripts/theme-clouds-uncompressed.js +160 -0
- data/vendor/assets/javascripts/theme-clouds.js +1 -1
- data/vendor/assets/javascripts/theme-clouds_midnight-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-clouds_midnight-uncompressed-noconflict.js +161 -0
- data/vendor/assets/javascripts/theme-clouds_midnight-uncompressed.js +161 -0
- data/vendor/assets/javascripts/theme-clouds_midnight.js +1 -1
- data/vendor/assets/javascripts/theme-cobalt-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-cobalt-uncompressed-noconflict.js +187 -0
- data/vendor/assets/javascripts/theme-cobalt-uncompressed.js +187 -0
- data/vendor/assets/javascripts/theme-cobalt.js +1 -1
- data/vendor/assets/javascripts/theme-crimson_editor-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-crimson_editor-uncompressed-noconflict.js +198 -0
- data/vendor/assets/javascripts/theme-crimson_editor-uncompressed.js +198 -0
- data/vendor/assets/javascripts/theme-dawn-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-dawn-uncompressed-noconflict.js +191 -0
- data/vendor/assets/javascripts/theme-dawn-uncompressed.js +191 -0
- data/vendor/assets/javascripts/theme-dawn.js +1 -1
- data/vendor/assets/javascripts/theme-dreamweaver-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-dreamweaver-uncompressed-noconflict.js +227 -0
- data/vendor/assets/javascripts/theme-dreamweaver-uncompressed.js +227 -0
- data/vendor/assets/javascripts/theme-dreamweaver.js +1 -0
- data/vendor/assets/javascripts/theme-eclipse-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-eclipse-uncompressed-noconflict.js +147 -0
- data/vendor/assets/javascripts/theme-eclipse-uncompressed.js +147 -0
- data/vendor/assets/javascripts/theme-eclipse.js +1 -1
- data/vendor/assets/javascripts/theme-idle_fingers-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-idle_fingers-uncompressed-noconflict.js +179 -0
- data/vendor/assets/javascripts/theme-idle_fingers-uncompressed.js +179 -0
- data/vendor/assets/javascripts/theme-idle_fingers.js +1 -1
- data/vendor/assets/javascripts/theme-kr_theme-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-kr_theme-uncompressed-noconflict.js +182 -0
- data/vendor/assets/javascripts/theme-kr_theme-uncompressed.js +182 -0
- data/vendor/assets/javascripts/theme-kr_theme.js +1 -1
- data/vendor/assets/javascripts/theme-merbivore-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-merbivore-uncompressed-noconflict.js +182 -0
- data/vendor/assets/javascripts/theme-merbivore-uncompressed.js +182 -0
- data/vendor/assets/javascripts/theme-merbivore.js +1 -1
- data/vendor/assets/javascripts/theme-merbivore_soft-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-merbivore_soft-uncompressed-noconflict.js +188 -0
- data/vendor/assets/javascripts/theme-merbivore_soft-uncompressed.js +188 -0
- data/vendor/assets/javascripts/theme-merbivore_soft.js +1 -1
- data/vendor/assets/javascripts/theme-mono_industrial-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-mono_industrial-uncompressed-noconflict.js +190 -0
- data/vendor/assets/javascripts/theme-mono_industrial-uncompressed.js +190 -0
- data/vendor/assets/javascripts/theme-mono_industrial.js +1 -1
- data/vendor/assets/javascripts/theme-monokai-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-monokai-uncompressed-noconflict.js +191 -0
- data/vendor/assets/javascripts/theme-monokai-uncompressed.js +191 -0
- data/vendor/assets/javascripts/theme-monokai.js +1 -1
- data/vendor/assets/javascripts/theme-pastel_on_dark-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-pastel_on_dark-uncompressed-noconflict.js +192 -0
- data/vendor/assets/javascripts/theme-pastel_on_dark-uncompressed.js +192 -0
- data/vendor/assets/javascripts/theme-pastel_on_dark.js +1 -1
- data/vendor/assets/javascripts/theme-solarized_dark-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-solarized_dark-uncompressed-noconflict.js +176 -0
- data/vendor/assets/javascripts/theme-solarized_dark-uncompressed.js +176 -0
- data/vendor/assets/javascripts/theme-solarized_dark.js +1 -1
- data/vendor/assets/javascripts/theme-solarized_light-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-solarized_light-uncompressed-noconflict.js +172 -0
- data/vendor/assets/javascripts/theme-solarized_light-uncompressed.js +172 -0
- data/vendor/assets/javascripts/theme-solarized_light.js +1 -1
- data/vendor/assets/javascripts/theme-textmate-noconflict.js +0 -0
- data/vendor/assets/javascripts/theme-textmate-uncompressed-noconflict.js +0 -0
- data/vendor/assets/javascripts/theme-textmate-uncompressed.js +0 -0
- data/vendor/assets/javascripts/theme-tomorrow-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-tomorrow-uncompressed-noconflict.js +206 -0
- data/vendor/assets/javascripts/theme-tomorrow-uncompressed.js +206 -0
- data/vendor/assets/javascripts/theme-tomorrow.js +1 -1
- data/vendor/assets/javascripts/theme-tomorrow_night-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-tomorrow_night-uncompressed-noconflict.js +206 -0
- data/vendor/assets/javascripts/theme-tomorrow_night-uncompressed.js +206 -0
- data/vendor/assets/javascripts/theme-tomorrow_night.js +1 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_blue-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_blue-uncompressed-noconflict.js +209 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_blue-uncompressed.js +209 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_blue.js +1 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_bright-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_bright-uncompressed-noconflict.js +206 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_bright-uncompressed.js +206 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_bright.js +1 -1
- data/vendor/assets/javascripts/theme-tomorrow_night_eighties-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_eighties-uncompressed-noconflict.js +202 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_eighties-uncompressed.js +202 -0
- data/vendor/assets/javascripts/theme-tomorrow_night_eighties.js +1 -1
- data/vendor/assets/javascripts/theme-twilight-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-twilight-uncompressed-noconflict.js +204 -0
- data/vendor/assets/javascripts/theme-twilight-uncompressed.js +204 -0
- data/vendor/assets/javascripts/theme-twilight.js +1 -1
- data/vendor/assets/javascripts/theme-vibrant_ink-noconflict.js +1 -0
- data/vendor/assets/javascripts/theme-vibrant_ink-uncompressed-noconflict.js +183 -0
- data/vendor/assets/javascripts/theme-vibrant_ink-uncompressed.js +183 -0
- data/vendor/assets/javascripts/theme-vibrant_ink.js +1 -1
- data/vendor/assets/javascripts/worker-coffee.js +2367 -1425
- data/vendor/assets/javascripts/worker-css.js +3271 -582
- data/vendor/assets/javascripts/worker-javascript.js +4313 -2934
- data/vendor/assets/javascripts/worker-json.js +3597 -0
- metadata +225 -7
@@ -1 +1 @@
|
|
1
|
-
define("ace/mode/svg",["require","exports","module","ace/lib/oop","ace/mode/xml","ace/mode/javascript","ace/tokenizer","ace/mode/svg_highlight_rules","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./xml").Mode,f=a("./javascript").Mode,g=a("../tokenizer").Tokenizer,h=a("./svg_highlight_rules").SvgHighlightRules,i=a("./folding/mixed").FoldMode,j=a("./folding/xml").FoldMode,k=a("./folding/cstyle").FoldMode,l=function(){e.call(this),this.highlighter=new h,this.$tokenizer=new g(this.highlighter.getRules()),this.$embeds=this.highlighter.getEmbeds(),this.createModeDelegates({"js-":f}),this.foldingRules=new i(new j({}),{"js-":new k})};d.inherits(l,e),function(){this.getNextLineIndent=function(a,b,c){return this.$getIndent(b)}}.call(l.prototype),b.Mode=l}),define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("../tokenizer").Tokenizer,g=a("./xml_highlight_rules").XmlHighlightRules,h=a("./behaviour/xml").XmlBehaviour,i=a("./folding/xml").FoldMode,j=function(){this.$tokenizer=new f((new g).getRules()),this.$behaviour=new h,this.foldingRules=new i};d.inherits(j,e),function(){this.getNextLineIndent=function(a,b,c){return this.$getIndent(b)}}.call(j.prototype),b.Mode=j}),define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/xml_util","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./xml_util"),f=a("./text_highlight_rules").TextHighlightRules,g=function(){this.$rules={start:[{token:"text",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:"xml_pe",regex:"<\\?.*?\\?>"},{token:"comment",merge:!0,regex:"<\\!--",next:"comment"},{token:"meta.tag",regex:"<\\/?",next:"tag"},{token:"text",regex:"\\s+"},{token:"text",regex:"[^<]+"}],cdata:[{token:"text",regex:"\\]\\]>",next:"start"},{token:"text",regex:"\\s+"},{token:"text",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment",regex:".*?-->",next:"start"},{token:"comment",merge:!0,regex:".+"}]},e.tag(this.$rules,"tag","start")};d.inherits(g,f),b.XmlHighlightRules=g}),define("ace/mode/xml_util",["require","exports","module","ace/lib/lang"],function(a,b,c){function g(a){return[{token:"string",regex:'".*?"'},{token:"string",merge:!0,regex:'["].*',next:a+"_qqstring"},{token:"string",regex:"'.*?'"},{token:"string",merge:!0,regex:"['].*",next:a+"_qstring"}]}function h(a,b){return[{token:"string",merge:!0,regex:".*?"+a,next:b},{token:"string",merge:!0,regex:".+"}]}"use strict";var d=a("../lib/lang"),e=d.arrayToMap("button|form|input|label|select|textarea".split("|")),f=d.arrayToMap("table|tbody|td|tfoot|th|tr".split("|"));b.tag=function(a,b,c){a[b]=[{token:"text",regex:"\\s+"},{token:function(a){return a==="a"?"meta.tag.anchor":a==="img"?"meta.tag.image":a==="script"?"meta.tag.script":a==="style"?"meta.tag.style":e.hasOwnProperty(a.toLowerCase())?"meta.tag.form":f.hasOwnProperty(a.toLowerCase())?"meta.tag.table":"meta.tag"},merge:!0,regex:"[-_a-zA-Z0-9:!]+",next:b+"_embed_attribute_list"},{token:"empty",regex:"",next:b+"_embed_attribute_list"}],a[b+"_qstring"]=h("'",b+"_embed_attribute_list"),a[b+"_qqstring"]=h('"',b+"_embed_attribute_list"),a[b+"_embed_attribute_list"]=[{token:"meta.tag",merge:!0,regex:"/?>",next:c},{token:"keyword.operator",regex:"="},{token:"entity.other.attribute-name",regex:"[-_a-zA-Z0-9:]+"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"text",regex:"\\s+"}].concat(g(b))}}),define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("../behaviour").Behaviour,f=a("./cstyle").CstyleBehaviour,g=function(){this.inherit(f,["string_dquotes"]),this.add("brackets","insertion",function(a,b,c,d,e){if(e=="<"){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);return g!==""?!1:{text:"<>",selection:[1,1]}}if(e==">"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j==">")return{text:"",selection:[1,1]}}else if(e=="\n"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),k=i.substring(h.column,h.column+2);if(k=="</"){var l=this.$getIndent(d.doc.getLine(h.row))+d.getTabString(),m=this.$getIndent(d.doc.getLine(h.row));return{text:"\n"+l+"\n"+m,selection:[1,l.length,1,l.length]}}}})};d.inherits(g,e),b.XmlBehaviour=g}),define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("../behaviour").Behaviour,f=function(){this.add("braces","insertion",function(a,b,c,d,e){if(e=="{"){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);return g!==""?{text:"{"+g+"}",selection:!1}:{text:"{}",selection:[1,1]}}if(e=="}"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j=="}"){var k=d.$findOpeningBracket("}",{column:h.column+1,row:h.row});if(k!==null)return{text:"",selection:[1,1]}}}else if(e=="\n"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j=="}"){var l=d.findMatchingBracket({row:h.row,column:h.column+1});if(!l)return null;var m=this.getNextLineIndent(a,i.substring(0,i.length-1),d.getTabString()),n=this.$getIndent(d.doc.getLine(l.row));return{text:"\n"+m+"\n"+n,selection:[1,m.length,1,m.length]}}}}),this.add("braces","deletion",function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&f=="{"){var g=d.doc.getLine(e.start.row),h=g.substring(e.end.column,e.end.column+1);if(h=="}")return e.end.column++,e}}),this.add("parens","insertion",function(a,b,c,d,e){if(e=="("){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);return g!==""?{text:"("+g+")",selection:!1}:{text:"()",selection:[1,1]}}if(e==")"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j==")"){var k=d.$findOpeningBracket(")",{column:h.column+1,row:h.row});if(k!==null)return{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&f=="("){var g=d.doc.getLine(e.start.row),h=g.substring(e.start.column+1,e.start.column+2);if(h==")")return e.end.column++,e}}),this.add("string_dquotes","insertion",function(a,b,c,d,e){if(e=='"'){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);if(g!=="")return{text:'"'+g+'"',selection:!1};var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column-1,h.column);if(j=="\\")return null;var k=d.getTokens(f.start.row,f.start.row)[0].tokens,l=0,m,n=-1;for(var o=0;o<k.length;o++){m=k[o],m.type=="string"?n=-1:n<0&&(n=m.value.indexOf('"'));if(m.value.length+l>f.start.column)break;l+=k[o].value.length}if(!m||n<0&&m.type!=="comment"&&(m.type!=="string"||f.start.column!==m.value.length+l-1&&m.value.lastIndexOf('"')===m.value.length-1))return{text:'""',selection:[1,1]};if(m&&m.type==="string"){var p=i.substring(h.column,h.column+1);if(p=='"')return{text:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&f=='"'){var g=d.doc.getLine(e.start.row),h=g.substring(e.start.column+1,e.start.column+2);if(h=='"')return e.end.column++,e}})};d.inherits(f,e),b.CstyleBehaviour=f}),define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("../../lib/lang"),f=a("../../range").Range,g=a("./fold_mode").FoldMode,h=a("../../token_iterator").TokenIterator,i=b.FoldMode=function(a){g.call(this),this.voidElements=a||{}};d.inherits(i,g),function(){this.getFoldWidget=function(a,b,c){var d=this._getFirstTagInLine(a,c);return d.closing?b=="markbeginend"?"end":"":!d.tagName||this.voidElements[d.tagName.toLowerCase()]?"":d.selfClosing?"":d.value.indexOf("/"+d.tagName)!==-1?"":"start"},this._getFirstTagInLine=function(a,b){var c=a.getTokens(b,b)[0].tokens,d="";for(var f=0;f<c.length;f++){var g=c[f];g.type.indexOf("meta.tag")===0?d+=g.value:d+=e.stringRepeat(" ",g.value.length)}return this._parseTag(d)},this.tagRe=/^(\s*)(<?(\/?)([-_a-zA-Z0-9:!]*)\s*(\/?)>?)/,this._parseTag=function(a){var b=this.tagRe.exec(a),c=this.tagRe.lastIndex||0;return this.tagRe.lastIndex=0,{value:a,match:b?b[2]:"",closing:b?!!b[3]:!1,selfClosing:b?!!b[5]||b[2]=="/>":!1,tagName:b?b[4]:"",column:b[1]?c+b[1].length:c}},this._readTagForward=function(a){var b=a.getCurrentToken();if(!b)return null;var c="",d;do if(b.type.indexOf("meta.tag")===0){if(!d)var d={row:a.getCurrentTokenRow(),column:a.getCurrentTokenColumn()};c+=b.value;if(c.indexOf(">")!==-1){var e=this._parseTag(c);return e.start=d,e.end={row:a.getCurrentTokenRow(),column:a.getCurrentTokenColumn()+b.value.length},a.stepForward(),e}}while(b=a.stepForward());return null},this._readTagBackward=function(a){var b=a.getCurrentToken();if(!b)return null;var c="",d;do if(b.type.indexOf("meta.tag")===0){d||(d={row:a.getCurrentTokenRow(),column:a.getCurrentTokenColumn()+b.value.length}),c=b.value+c;if(c.indexOf("<")!==-1){var e=this._parseTag(c);return e.end=d,e.start={row:a.getCurrentTokenRow(),column:a.getCurrentTokenColumn()},a.stepBackward(),e}}while(b=a.stepBackward());return null},this._pop=function(a,b){while(a.length){var c=a[a.length-1];if(!b||c.tagName==b.tagName)return a.pop();if(this.voidElements[b.tagName])return;if(this.voidElements[c.tagName]){a.pop();continue}return null}},this.getFoldWidgetRange=function(a,b,c){var d=this._getFirstTagInLine(a,c);if(!d.match)return null;var e=d.closing||d.selfClosing,g=[],i;if(!e){var j=new h(a,c,d.column),k={row:c,column:d.column+d.tagName.length+2};while(i=this._readTagForward(j)){if(i.selfClosing){if(!g.length)return i.start.column+=i.tagName.length+2,i.end.column-=2,f.fromPoints(i.start,i.end);continue}if(i.closing){this._pop(g,i);if(g.length==0)return f.fromPoints(k,i.start)}else g.push(i)}}else{var j=new h(a,c,d.column+d.match.length),l={row:c,column:d.column};while(i=this._readTagBackward(j)){if(i.selfClosing){if(!g.length)return i.start.column+=i.tagName.length+2,i.end.column-=2,f.fromPoints(i.start,i.end);continue}if(!i.closing){this._pop(g,i);if(g.length==0)return i.start.column+=i.tagName.length+2,f.fromPoints(i.start,l)}else g.push(i)}}}}.call(i.prototype)}),define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(a,b,c){"use strict";var d=a("../../range").Range,e=b.FoldMode=function(){};((function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(a,b,c){var d=a.getLine(c);return this.foldingStartMarker.test(d)?"start":b=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(d)?"end":""},this.getFoldWidgetRange=function(a,b,c){return null},this.indentationBlock=function(a,b,c){var e=/^\s*/,f=b,g=b,h=a.getLine(b),i=c||h.length,j=h.match(e)[0].length,k=a.getLength();while(++b<k){h=a.getLine(b);var l=h.match(e)[0].length;if(l==h.length)continue;if(l<=j)break;g=b}if(g>f){var m=a.getLine(g).length;return new d(f,i,g,m)}},this.openingBracketBlock=function(a,b,c,e){var f={row:c,column:e+1},g=a.$findClosingBracket(b,f);if(!g)return;var h=a.foldWidgets[g.row];return h==null&&(h=this.getFoldWidget(a,g.row)),h=="start"&&(g.row--,g.column=a.getLine(g.row).length),d.fromPoints(f,g)}})).call(e.prototype)}),define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("../tokenizer").Tokenizer,g=a("./javascript_highlight_rules").JavaScriptHighlightRules,h=a("./matching_brace_outdent").MatchingBraceOutdent,i=a("../range").Range,j=a("../worker/worker_client").WorkerClient,k=a("./behaviour/cstyle").CstyleBehaviour,l=a("./folding/cstyle").FoldMode,m=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h,this.$behaviour=new k,this.foldingRules=new l};d.inherits(m,e),function(){this.toggleCommentLines=function(a,b,c,d){var e=!0,f=/^(\s*)\/\//;for(var g=c;g<=d;g++)if(!f.test(b.getLine(g))){e=!1;break}if(e){var h=new i(0,0,0,0);for(var g=c;g<=d;g++){var j=b.getLine(g),k=j.match(f);h.start.row=g,h.end.row=g,h.end.column=k[0].length,b.replace(h,k[1])}}else b.indentRows(c,d,"//")},this.getNextLineIndent=function(a,b,c){var d=this.$getIndent(b),e=this.$tokenizer.getLineTokens(b,a),f=e.tokens,g=e.state;if(f.length&&f[f.length-1].type=="comment")return d;if(a=="start"||a=="regex_allowed"){var h=b.match(/^.*(?:\bcase\b.*\:|[\{\(\[])\s*$/);h&&(d+=c)}else if(a=="doc-start"){if(g=="start"||a=="regex_allowed")return"";var h=b.match(/^\s*(\/?)\*/);h&&(h[1]&&(d+=" "),d+="* ")}return d},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)},this.createWorker=function(a){var b=new j(["ace"],"worker-javascript.js","ace/mode/javascript_worker","JavaScriptWorker");return b.attachToDocument(a.getDocument()),b.on("jslint",function(b){var c=[];for(var d=0;d<b.data.length;d++){var e=b.data[d];e&&c.push({row:e.line-1,column:e.character-1,text:e.reason,type:"warning",lint:e})}a.setAnnotations(c)}),b.on("narcissus",function(b){a.setAnnotations([b.data])}),b.on("terminate",function(){a.clearAnnotations()}),b}}.call(m.prototype),b.Mode=m}),define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/unicode","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("../lib/lang"),f=a("../unicode"),g=a("./doc_comment_highlight_rules").DocCommentHighlightRules,h=a("./text_highlight_rules").TextHighlightRules,i=function(){var a=e.arrayToMap("Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document".split("|")),b=e.arrayToMap("break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|const|yield|import|get|set".split("|")),c="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield",d=e.arrayToMap("__parent__|__count__|escape|unescape|with|__proto__".split("|")),h=e.arrayToMap("const|let|var|function".split("|")),i=e.arrayToMap("null|Infinity|NaN|undefined".split("|")),j=e.arrayToMap("class|enum|extends|super|export|implements|private|public|interface|package|protected|static".split("|")),k="["+f.packages.L+"\\$_]["+f.packages.L+f.packages.Mn+f.packages.Mc+f.packages.Nd+f.packages.Pc+"\\$_]*\\b";this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},(new g).getStartRule("doc-start"),{token:"comment",merge:!0,regex:"\\/\\*",next:"comment"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",merge:!0,regex:'["].*\\\\$',next:"qqstring"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"string",merge:!0,regex:"['].*\\\\$",next:"qstring"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:["keyword.definition","text","entity.name.function"],regex:"(function)(\\s+)("+k+")"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"keyword",regex:"(?:"+c+")\\b",next:"regex_allowed"},{token:function(c){return a.hasOwnProperty(c)?"variable.language":d.hasOwnProperty(c)?"invalid.deprecated":h.hasOwnProperty(c)?"keyword.definition":b.hasOwnProperty(c)?"keyword":i.hasOwnProperty(c)?"constant.language":j.hasOwnProperty(c)?"invalid.illegal":c=="debugger"?"invalid.deprecated":"identifier"},regex:k},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)",next:"regex_allowed"},{token:"punctuation.operator",regex:"\\?|\\:|\\,|\\;|\\.",next:"regex_allowed"},{token:"paren.lparen",regex:"[[({]",next:"regex_allowed"},{token:"paren.rparen",regex:"[\\])}]"},{token:"keyword.operator",regex:"\\/=?",next:"regex_allowed"},{token:"comment",regex:"^#!.*$"},{token:"text",regex:"\\s+"}],regex_allowed:[{token:"comment",merge:!0,regex:"\\/\\*",next:"comment_regex_allowed"},{token:"comment",regex:"\\/\\/.*$"},{token:"string.regexp",regex:"\\/",next:"regex",merge:!0},{token:"text",regex:"\\s+"},{token:"empty",regex:"",next:"start"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)",next:"regex"},{token:"string.regexp",regex:"/\\w*",next:"start",merge:!0},{token:"string.regexp",regex:"[^\\\\/\\[]+",next:"regex",merge:!0},{token:"string.regexp.charachterclass",regex:"\\[",next:"regex_character_class",merge:!0},{token:"empty",regex:"",next:"start"}],regex_character_class:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)",next:"regex_character_class"},{token:"string.regexp.charachterclass",regex:"]",next:"regex",merge:!0},{token:"string.regexp.charachterclass",regex:"[^\\\\\\]]+",next:"regex_character_class",merge:!0},{token:"empty",regex:"",next:"start"}],comment_regex_allowed:[{token:"comment",regex:".*?\\*\\/",merge:!0,next:"regex_allowed"},{token:"comment",merge:!0,regex:".+"}],comment:[{token:"comment",regex:".*?\\*\\/",merge:!0,next:"start"},{token:"comment",merge:!0,regex:".+"}],qqstring:[{token:"string",regex:'(?:(?:\\\\.)|(?:[^"\\\\]))*?"',next:"start"},{token:"string",merge:!0,regex:".+"}],qstring:[{token:"string",regex:"(?:(?:\\\\.)|(?:[^'\\\\]))*?'",next:"start"},{token:"string",merge:!0,regex:".+"}]},this.embedRules(g,"doc-",[(new g).getEndRule("start")])};d.inherits(i,h),b.JavaScriptHighlightRules=i}),define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},{token:"comment.doc",merge:!0,regex:"\\s+"},{token:"comment.doc",merge:!0,regex:"TODO"},{token:"comment.doc",merge:!0,regex:"[^@\\*]+"},{token:"comment.doc",merge:!0,regex:"."}]}};d.inherits(f,e),function(){this.getStartRule=function(a){return{token:"comment.doc",merge:!0,regex:"\\/\\*(?=\\*)",next:a}},this.getEndRule=function(a){return{token:"comment.doc",merge:!0,regex:"\\*\\/",next:a}}}.call(f.prototype),b.DocCommentHighlightRules=f}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){"use strict";var d=a("../range").Range,e=function(){};((function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}})).call(e.prototype),b.MatchingBraceOutdent=e}),define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("../../range").Range,f=a("./fold_mode").FoldMode,g=b.FoldMode=function(){};d.inherits(g,f),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(a,b,c){var d=a.getLine(c),f=d.match(this.foldingStartMarker);if(f){var g=f.index;if(f[1])return this.openingBracketBlock(a,f[1],c,g);var h=a.getCommentFoldRange(c,g+f[0].length);return h.end.column-=2,h}if(b!=="markbeginend")return;var f=d.match(this.foldingStopMarker);if(f){var g=f.index+f[0].length;if(f[2]){var h=a.getCommentFoldRange(c,g);return h.end.column-=2,h}var i={row:c,column:g},j=a.$findOpeningBracket(f[1],i);if(!j)return;return j.column++,i.column--,e.fromPoints(j,i)}}}.call(g.prototype)}),define("ace/mode/svg_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules","ace/mode/xml_util"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./javascript_highlight_rules").JavaScriptHighlightRules,f=a("./xml_highlight_rules").XmlHighlightRules,g=a("./xml_util"),h=function(){f.call(this),this.$rules.start.splice(3,0,{token:"meta.tag",regex:"<(?=s*script)",next:"script"}),g.tag(this.$rules,"script","js-start"),this.embedRules(e,"js-",[{token:"comment",regex:"\\/\\/.*(?=<\\/script>)",next:"tag"},{token:"meta.tag",regex:"<\\/(?=script)",next:"tag"}])};d.inherits(h,f),b.SvgHighlightRules=h}),define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("./fold_mode").FoldMode,f=b.FoldMode=function(a,b){this.defaultMode=a,this.subModes=b};d.inherits(f,e),function(){this.$getMode=function(a){for(var b in this.subModes)if(a.indexOf(b)===0)return this.subModes[b];return null},this.$tryMode=function(a,b,c,d){var e=this.$getMode(a);return e?e.getFoldWidget(b,c,d):""},this.getFoldWidget=function(a,b,c){return this.$tryMode(a.getState(c-1),a,b,c)||this.$tryMode(a.getState(c),a,b,c)||this.defaultMode.getFoldWidget(a,b,c)},this.getFoldWidgetRange=function(a,b,c){var d=this.$getMode(a.getState(c-1));if(!d||!d.getFoldWidget(a,b,c))d=this.$getMode(a.getState(c));if(!d||!d.getFoldWidget(a,b,c))d=this.defaultMode;return d.getFoldWidgetRange(a,b,c)}}.call(f.prototype)})
|
1
|
+
define("ace/mode/svg",["require","exports","module","ace/lib/oop","ace/mode/xml","ace/mode/javascript","ace/tokenizer","ace/mode/svg_highlight_rules","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./xml").Mode,f=a("./javascript").Mode,g=a("../tokenizer").Tokenizer,h=a("./svg_highlight_rules").SvgHighlightRules,i=a("./folding/mixed").FoldMode,j=a("./folding/xml").FoldMode,k=a("./folding/cstyle").FoldMode,l=function(){e.call(this),this.highlighter=new h,this.$tokenizer=new g(this.highlighter.getRules()),this.$embeds=this.highlighter.getEmbeds(),this.createModeDelegates({"js-":f}),this.foldingRules=new i(new j({}),{"js-":new k})};d.inherits(l,e),function(){this.getNextLineIndent=function(a,b,c){return this.$getIndent(b)}}.call(l.prototype),b.Mode=l}),define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("../tokenizer").Tokenizer,g=a("./xml_highlight_rules").XmlHighlightRules,h=a("./behaviour/xml").XmlBehaviour,i=a("./folding/xml").FoldMode,j=function(){this.$tokenizer=new f((new g).getRules()),this.$behaviour=new h,this.foldingRules=new i};d.inherits(j,e),function(){this.getNextLineIndent=function(a,b,c){return this.$getIndent(b)}}.call(j.prototype),b.Mode=j}),define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/xml_util","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./xml_util"),f=a("./text_highlight_rules").TextHighlightRules,g=function(){this.$rules={start:[{token:"text",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:"xml_pe",regex:"<\\?.*?\\?>"},{token:"comment",merge:!0,regex:"<\\!--",next:"comment"},{token:"xml_pe",regex:"<\\!.*?>"},{token:"meta.tag",regex:"<\\/?",next:"tag"},{token:"text",regex:"\\s+"},{token:"constant.character.entity",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"},{token:"text",regex:"[^<]+"}],cdata:[{token:"text",regex:"\\]\\]>",next:"start"},{token:"text",regex:"\\s+"},{token:"text",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment",regex:".*?-->",next:"start"},{token:"comment",merge:!0,regex:".+"}]},e.tag(this.$rules,"tag","start")};d.inherits(g,f),b.XmlHighlightRules=g}),define("ace/mode/xml_util",["require","exports","module","ace/lib/lang"],function(a,b,c){function g(a){return[{token:"string",regex:'".*?"'},{token:"string",merge:!0,regex:'["].*',next:a+"_qqstring"},{token:"string",regex:"'.*?'"},{token:"string",merge:!0,regex:"['].*",next:a+"_qstring"}]}function h(a,b){return[{token:"string",merge:!0,regex:".*?"+a,next:b},{token:"string",merge:!0,regex:".+"}]}"use strict";var d=a("../lib/lang"),e=d.arrayToMap("button|form|input|label|select|textarea".split("|")),f=d.arrayToMap("table|tbody|td|tfoot|th|tr".split("|"));b.tag=function(a,b,c){a[b]=[{token:"text",regex:"\\s+"},{token:function(a){return a==="a"?"meta.tag.anchor":a==="img"?"meta.tag.image":a==="script"?"meta.tag.script":a==="style"?"meta.tag.style":e.hasOwnProperty(a.toLowerCase())?"meta.tag.form":f.hasOwnProperty(a.toLowerCase())?"meta.tag.table":"meta.tag"},merge:!0,regex:"[-_a-zA-Z0-9:]+",next:b+"_embed_attribute_list"},{token:"empty",regex:"",next:b+"_embed_attribute_list"}],a[b+"_qstring"]=h("'",b+"_embed_attribute_list"),a[b+"_qqstring"]=h('"',b+"_embed_attribute_list"),a[b+"_embed_attribute_list"]=[{token:"meta.tag",merge:!0,regex:"/?>",next:c},{token:"keyword.operator",regex:"="},{token:"entity.other.attribute-name",regex:"[-_a-zA-Z0-9:]+"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"text",regex:"\\s+"}].concat(g(b))}}),define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("../behaviour").Behaviour,f=a("./cstyle").CstyleBehaviour,g=function(){this.inherit(f,["string_dquotes"]),this.add("brackets","insertion",function(a,b,c,d,e){if(e=="<"){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);return g!==""?!1:{text:"<>",selection:[1,1]}}if(e==">"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j==">")return{text:"",selection:[1,1]}}else if(e=="\n"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),k=i.substring(h.column,h.column+2);if(k=="</"){var l=this.$getIndent(d.doc.getLine(h.row))+d.getTabString(),m=this.$getIndent(d.doc.getLine(h.row));return{text:"\n"+l+"\n"+m,selection:[1,l.length,1,l.length]}}}})};d.inherits(g,e),b.XmlBehaviour=g}),define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("../behaviour").Behaviour,f=function(){this.add("braces","insertion",function(a,b,c,d,e){if(e=="{"){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);return g!==""?{text:"{"+g+"}",selection:!1}:{text:"{}",selection:[1,1]}}if(e=="}"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j=="}"){var k=d.$findOpeningBracket("}",{column:h.column+1,row:h.row});if(k!==null)return{text:"",selection:[1,1]}}}else if(e=="\n"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j=="}"){var l=d.findMatchingBracket({row:h.row,column:h.column+1});if(!l)return null;var m=this.getNextLineIndent(a,i.substring(0,i.length-1),d.getTabString()),n=this.$getIndent(d.doc.getLine(l.row));return{text:"\n"+m+"\n"+n,selection:[1,m.length,1,m.length]}}}}),this.add("braces","deletion",function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&f=="{"){var g=d.doc.getLine(e.start.row),h=g.substring(e.end.column,e.end.column+1);if(h=="}")return e.end.column++,e}}),this.add("parens","insertion",function(a,b,c,d,e){if(e=="("){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);return g!==""?{text:"("+g+")",selection:!1}:{text:"()",selection:[1,1]}}if(e==")"){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j==")"){var k=d.$findOpeningBracket(")",{column:h.column+1,row:h.row});if(k!==null)return{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&f=="("){var g=d.doc.getLine(e.start.row),h=g.substring(e.start.column+1,e.start.column+2);if(h==")")return e.end.column++,e}}),this.add("string_dquotes","insertion",function(a,b,c,d,e){if(e=='"'||e=="'"){var f=e,g=c.getSelectionRange(),h=d.doc.getTextRange(g);if(h!=="")return{text:f+h+f,selection:!1};var i=c.getCursorPosition(),j=d.doc.getLine(i.row),k=j.substring(i.column-1,i.column);if(k=="\\")return null;var l=d.getTokens(g.start.row,g.start.row)[0].tokens,m=0,n,o=-1;for(var p=0;p<l.length;p++){n=l[p],n.type=="string"?o=-1:o<0&&(o=n.value.indexOf(f));if(n.value.length+m>g.start.column)break;m+=l[p].value.length}if(!n||o<0&&n.type!=="comment"&&(n.type!=="string"||g.start.column!==n.value.length+m-1&&n.value.lastIndexOf(f)===n.value.length-1))return{text:f+f,selection:[1,1]};if(n&&n.type==="string"){var q=j.substring(i.column,i.column+1);if(q==f)return{text:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&(f=='"'||f=="'")){var g=d.doc.getLine(e.start.row),h=g.substring(e.start.column+1,e.start.column+2);if(h=='"')return e.end.column++,e}})};d.inherits(f,e),b.CstyleBehaviour=f}),define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("../../lib/lang"),f=a("../../range").Range,g=a("./fold_mode").FoldMode,h=a("../../token_iterator").TokenIterator,i=b.FoldMode=function(a){g.call(this),this.voidElements=a||{}};d.inherits(i,g),function(){this.getFoldWidget=function(a,b,c){var d=this._getFirstTagInLine(a,c);return d.closing?b=="markbeginend"?"end":"":!d.tagName||this.voidElements[d.tagName.toLowerCase()]?"":d.selfClosing?"":d.value.indexOf("/"+d.tagName)!==-1?"":"start"},this._getFirstTagInLine=function(a,b){var c=a.getTokens(b,b)[0].tokens,d="";for(var f=0;f<c.length;f++){var g=c[f];g.type.indexOf("meta.tag")===0?d+=g.value:d+=e.stringRepeat(" ",g.value.length)}return this._parseTag(d)},this.tagRe=/^(\s*)(<?(\/?)([-_a-zA-Z0-9:!]*)\s*(\/?)>?)/,this._parseTag=function(a){var b=this.tagRe.exec(a),c=this.tagRe.lastIndex||0;return this.tagRe.lastIndex=0,{value:a,match:b?b[2]:"",closing:b?!!b[3]:!1,selfClosing:b?!!b[5]||b[2]=="/>":!1,tagName:b?b[4]:"",column:b[1]?c+b[1].length:c}},this._readTagForward=function(a){var b=a.getCurrentToken();if(!b)return null;var c="",d;do if(b.type.indexOf("meta.tag")===0){if(!d)var d={row:a.getCurrentTokenRow(),column:a.getCurrentTokenColumn()};c+=b.value;if(c.indexOf(">")!==-1){var e=this._parseTag(c);return e.start=d,e.end={row:a.getCurrentTokenRow(),column:a.getCurrentTokenColumn()+b.value.length},a.stepForward(),e}}while(b=a.stepForward());return null},this._readTagBackward=function(a){var b=a.getCurrentToken();if(!b)return null;var c="",d;do if(b.type.indexOf("meta.tag")===0){d||(d={row:a.getCurrentTokenRow(),column:a.getCurrentTokenColumn()+b.value.length}),c=b.value+c;if(c.indexOf("<")!==-1){var e=this._parseTag(c);return e.end=d,e.start={row:a.getCurrentTokenRow(),column:a.getCurrentTokenColumn()},a.stepBackward(),e}}while(b=a.stepBackward());return null},this._pop=function(a,b){while(a.length){var c=a[a.length-1];if(!b||c.tagName==b.tagName)return a.pop();if(this.voidElements[b.tagName])return;if(this.voidElements[c.tagName]){a.pop();continue}return null}},this.getFoldWidgetRange=function(a,b,c){var d=this._getFirstTagInLine(a,c);if(!d.match)return null;var e=d.closing||d.selfClosing,g=[],i;if(!e){var j=new h(a,c,d.column),k={row:c,column:d.column+d.tagName.length+2};while(i=this._readTagForward(j)){if(i.selfClosing){if(!g.length)return i.start.column+=i.tagName.length+2,i.end.column-=2,f.fromPoints(i.start,i.end);continue}if(i.closing){this._pop(g,i);if(g.length==0)return f.fromPoints(k,i.start)}else g.push(i)}}else{var j=new h(a,c,d.column+d.match.length),l={row:c,column:d.column};while(i=this._readTagBackward(j)){if(i.selfClosing){if(!g.length)return i.start.column+=i.tagName.length+2,i.end.column-=2,f.fromPoints(i.start,i.end);continue}if(!i.closing){this._pop(g,i);if(g.length==0)return i.start.column+=i.tagName.length+2,f.fromPoints(i.start,l)}else g.push(i)}}}}.call(i.prototype)}),define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(a,b,c){"use strict";var d=a("../../range").Range,e=b.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(a,b,c){var d=a.getLine(c);return this.foldingStartMarker.test(d)?"start":b=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(d)?"end":""},this.getFoldWidgetRange=function(a,b,c){return null},this.indentationBlock=function(a,b,c){var e=/^\s*/,f=b,g=b,h=a.getLine(b),i=c||h.length,j=h.match(e)[0].length,k=a.getLength();while(++b<k){h=a.getLine(b);var l=h.match(e)[0].length;if(l==h.length)continue;if(l<=j)break;g=b}if(g>f){var m=a.getLine(g).length;return new d(f,i,g,m)}},this.openingBracketBlock=function(a,b,c,e){var f={row:c,column:e+1},g=a.$findClosingBracket(b,f);if(!g)return;var h=a.foldWidgets[g.row];return h==null&&(h=this.getFoldWidget(a,g.row)),h=="start"&&(g.row--,g.column=a.getLine(g.row).length),d.fromPoints(f,g)}}).call(e.prototype)}),define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("../tokenizer").Tokenizer,g=a("./javascript_highlight_rules").JavaScriptHighlightRules,h=a("./matching_brace_outdent").MatchingBraceOutdent,i=a("../range").Range,j=a("../worker/worker_client").WorkerClient,k=a("./behaviour/cstyle").CstyleBehaviour,l=a("./folding/cstyle").FoldMode,m=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h,this.$behaviour=new k,this.foldingRules=new l};d.inherits(m,e),function(){this.toggleCommentLines=function(a,b,c,d){var e=!0,f=/^(\s*)\/\//;for(var g=c;g<=d;g++)if(!f.test(b.getLine(g))){e=!1;break}if(e){var h=new i(0,0,0,0);for(var g=c;g<=d;g++){var j=b.getLine(g),k=j.match(f);h.start.row=g,h.end.row=g,h.end.column=k[0].length,b.replace(h,k[1])}}else b.indentRows(c,d,"//")},this.getNextLineIndent=function(a,b,c){var d=this.$getIndent(b),e=this.$tokenizer.getLineTokens(b,a),f=e.tokens,g=e.state;if(f.length&&f[f.length-1].type=="comment")return d;if(a=="start"||a=="regex_allowed"){var h=b.match(/^.*(?:\bcase\b.*\:|[\{\(\[])\s*$/);h&&(d+=c)}else if(a=="doc-start"){if(g=="start"||a=="regex_allowed")return"";var h=b.match(/^\s*(\/?)\*/);h&&(h[1]&&(d+=" "),d+="* ")}return d},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)},this.createWorker=function(a){var b=new j(["ace"],"worker-javascript.js","ace/mode/javascript_worker","JavaScriptWorker");return b.attachToDocument(a.getDocument()),b.on("jslint",function(b){var c=[];for(var d=0;d<b.data.length;d++){var e=b.data[d];e&&c.push({row:e.line-1,column:e.character-1,text:e.reason,type:"warning",lint:e})}a.setAnnotations(c)}),b.on("narcissus",function(b){a.setAnnotations([b.data])}),b.on("terminate",function(){a.clearAnnotations()}),b}}.call(m.prototype),b.Mode=m}),define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/unicode","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("../lib/lang"),f=a("../unicode"),g=a("./doc_comment_highlight_rules").DocCommentHighlightRules,h=a("./text_highlight_rules").TextHighlightRules,i=function(){var a=e.arrayToMap("Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document".split("|")),b=e.arrayToMap("break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|const|yield|import|get|set".split("|")),c="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield",d=e.arrayToMap("__parent__|__count__|escape|unescape|with|__proto__".split("|")),h=e.arrayToMap("const|let|var|function".split("|")),i=e.arrayToMap("null|Infinity|NaN|undefined".split("|")),j=e.arrayToMap("class|enum|extends|super|export|implements|private|public|interface|package|protected|static".split("|")),k="["+f.packages.L+"\\$_]["+f.packages.L+f.packages.Mn+f.packages.Mc+f.packages.Nd+f.packages.Pc+"\\$_]*\\b",l="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)";this.$rules={start:[{token:"comment",regex:/\/\/.*$/},g.getStartRule("doc-start"),{token:"comment",merge:!0,regex:/\/\*/,next:"comment"},{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0[xX][0-9a-fA-F]+\b/},{token:"constant.numeric",regex:/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+k+")(\\.)(prototype)(\\.)("+k+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator","text"],regex:"("+k+")(\\.)(prototype)(\\.)("+k+")(\\s*)(=)(\\s*)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+k+")(\\.)("+k+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+k+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+k+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+k+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"constant.language.boolean",regex:/(?:true|false)\b/},{token:"keyword",regex:"(?:"+c+")\\b",next:"regex_allowed"},{token:["punctuation.operator","support.function"],regex:/(\.)(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:opzzzz|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(?=\()/},{token:["punctuation.operator","support.function.dom"],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)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:["punctuation.operator","support.constant"],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/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|timeEnd|assert)\b/},{token:function(c){return a.hasOwnProperty(c)?"variable.language":d.hasOwnProperty(c)?"invalid.deprecated":h.hasOwnProperty(c)?"storage.type":b.hasOwnProperty(c)?"keyword":i.hasOwnProperty(c)?"constant.language":j.hasOwnProperty(c)?"invalid.illegal":c=="debugger"?"invalid.deprecated":"identifier"},regex:k},{token:"keyword.operator",regex:/!|\$|%|&|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|%=|\+=|\-=|&=|\^=|\b(?:in|instanceof|new|delete|typeof|void)/,next:"regex_allowed"},{token:"punctuation.operator",regex:/\?|\:|\,|\;|\./,next:"regex_allowed"},{token:"paren.lparen",regex:/[\[({]/,next:"regex_allowed"},{token:"paren.rparen",regex:/[\])}]/},{token:"keyword.operator",regex:/\/=?/,next:"regex_allowed"},{token:"comment",regex:/^#!.*$/},{token:"text",regex:/\s+/}],regex_allowed:[g.getStartRule("doc-start"),{token:"comment",merge:!0,regex:"\\/\\*",next:"comment_regex_allowed"},{token:"comment",regex:"\\/\\/.*$"},{token:"string.regexp",regex:"\\/",next:"regex",merge:!0},{token:"text",regex:"\\s+"},{token:"empty",regex:"",next:"start"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/\\w*",next:"start",merge:!0},{token:"string.regexp",regex:"[^\\\\/\\[]+",merge:!0},{token:"string.regexp.charachterclass",regex:"\\[",next:"regex_character_class",merge:!0},{token:"empty",regex:"",next:"start"}],regex_character_class:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp.charachterclass",regex:"]",next:"regex",merge:!0},{token:"string.regexp.charachterclass",regex:"[^\\\\\\]]+",merge:!0},{token:"empty",regex:"",next:"start"}],function_arguments:[{token:"variable.parameter",regex:k},{token:"punctuation.operator",regex:"[, ]+",merge:!0},{token:"punctuation.operator",regex:"$",merge:!0},{token:"empty",regex:"",next:"start"}],comment_regex_allowed:[{token:"comment",regex:".*?\\*\\/",merge:!0,next:"regex_allowed"},{token:"comment",merge:!0,regex:".+"}],comment:[{token:"comment",regex:".*?\\*\\/",merge:!0,next:"start"},{token:"comment",merge:!0,regex:".+"}],qqstring:[{token:"constant.language.escape",regex:l},{token:"string",regex:'[^"\\\\]+',merge:!0},{token:"string",regex:"\\\\$",next:"qqstring",merge:!0},{token:"string",regex:'"|$',next:"start",merge:!0}],qstring:[{token:"constant.language.escape",regex:l},{token:"string",regex:"[^'\\\\]+",merge:!0},{token:"string",regex:"\\\\$",next:"qstring",merge:!0},{token:"string",regex:"'|$",next:"start",merge:!0}]},this.embedRules(g,"doc-",[g.getEndRule("start")])};d.inherits(i,h),b.JavaScriptHighlightRules=i}),define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},{token:"comment.doc",merge:!0,regex:"\\s+"},{token:"comment.doc",merge:!0,regex:"TODO"},{token:"comment.doc",merge:!0,regex:"[^@\\*]+"},{token:"comment.doc",merge:!0,regex:"."}]}};d.inherits(f,e),f.getStartRule=function(a){return{token:"comment.doc",merge:!0,regex:"\\/\\*(?=\\*)",next:a}},f.getEndRule=function(a){return{token:"comment.doc",merge:!0,regex:"\\*\\/",next:a}},b.DocCommentHighlightRules=f}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){"use strict";var d=a("../range").Range,e=function(){};(function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}}).call(e.prototype),b.MatchingBraceOutdent=e}),define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("../../range").Range,f=a("./fold_mode").FoldMode,g=b.FoldMode=function(){};d.inherits(g,f),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(a,b,c){var d=a.getLine(c),f=d.match(this.foldingStartMarker);if(f){var g=f.index;if(f[1])return this.openingBracketBlock(a,f[1],c,g);var h=a.getCommentFoldRange(c,g+f[0].length);return h.end.column-=2,h}if(b!=="markbeginend")return;var f=d.match(this.foldingStopMarker);if(f){var g=f.index+f[0].length;if(f[2]){var h=a.getCommentFoldRange(c,g);return h.end.column-=2,h}var i={row:c,column:g},j=a.$findOpeningBracket(f[1],i);if(!j)return;return j.column++,i.column--,e.fromPoints(j,i)}}}.call(g.prototype)}),define("ace/mode/svg_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules","ace/mode/xml_util"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./javascript_highlight_rules").JavaScriptHighlightRules,f=a("./xml_highlight_rules").XmlHighlightRules,g=a("./xml_util"),h=function(){f.call(this),this.$rules.start.splice(3,0,{token:"meta.tag",regex:"<(?=s*script)",next:"script"}),g.tag(this.$rules,"script","js-start"),this.embedRules(e,"js-",[{token:"comment",regex:"\\/\\/.*(?=<\\/script>)",next:"tag"},{token:"meta.tag",regex:"<\\/(?=script)",next:"tag"}])};d.inherits(h,f),b.SvgHighlightRules=h}),define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(a,b,c){"use strict";var d=a("../../lib/oop"),e=a("./fold_mode").FoldMode,f=b.FoldMode=function(a,b){this.defaultMode=a,this.subModes=b};d.inherits(f,e),function(){this.$getMode=function(a){for(var b in this.subModes)if(a.indexOf(b)===0)return this.subModes[b];return null},this.$tryMode=function(a,b,c,d){var e=this.$getMode(a);return e?e.getFoldWidget(b,c,d):""},this.getFoldWidget=function(a,b,c){return this.$tryMode(a.getState(c-1),a,b,c)||this.$tryMode(a.getState(c),a,b,c)||this.defaultMode.getFoldWidget(a,b,c)},this.getFoldWidgetRange=function(a,b,c){var d=this.$getMode(a.getState(c-1));if(!d||!d.getFoldWidget(a,b,c))d=this.$getMode(a.getState(c));if(!d||!d.getFoldWidget(a,b,c))d=this.defaultMode;return d.getFoldWidgetRange(a,b,c)}}.call(f.prototype)})
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
ace.define("ace/mode/textile",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/textile_highlight_rules","ace/mode/matching_brace_outdent"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("../tokenizer").Tokenizer,g=a("./textile_highlight_rules").TextileHighlightRules,h=a("./matching_brace_outdent").MatchingBraceOutdent,i=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h};d.inherits(i,e),function(){this.getNextLineIndent=function(a,b,c){return a=="intag"?c:""},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)}}.call(i.prototype),b.Mode=i}),ace.define("ace/mode/textile_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:function(a){return a.match(/^h\d$/)?"markup.heading."+a.charAt(1):"markup.heading"},regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};d.inherits(f,e),b.TextileHighlightRules=f}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){"use strict";var d=a("../range").Range,e=function(){};(function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}}).call(e.prototype),b.MatchingBraceOutdent=e})
|
@@ -0,0 +1,254 @@
|
|
1
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
3
|
+
*
|
4
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
5
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
6
|
+
* the License. You may obtain a copy of the License at
|
7
|
+
* http://www.mozilla.org/MPL/
|
8
|
+
*
|
9
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
10
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
11
|
+
* for the specific language governing rights and limitations under the
|
12
|
+
* License.
|
13
|
+
*
|
14
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
15
|
+
*
|
16
|
+
* The Initial Developer of the Original Code is
|
17
|
+
* Ajax.org B.V.
|
18
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
19
|
+
* the Initial Developer. All Rights Reserved.
|
20
|
+
*
|
21
|
+
* Contributor(s):
|
22
|
+
* Kelley van Evert <kelley.vanevert@gmail.com>
|
23
|
+
*
|
24
|
+
* Alternatively, the contents of this file may be used under the terms of
|
25
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
26
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
27
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
28
|
+
* of those above. If you wish to allow use of your version of this file only
|
29
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
30
|
+
* use your version of this file under the terms of the MPL, indicate your
|
31
|
+
* decision by deleting the provisions above and replace them with the notice
|
32
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
33
|
+
* the provisions above, a recipient may use your version of this file under
|
34
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
35
|
+
*
|
36
|
+
* ***** END LICENSE BLOCK ***** */
|
37
|
+
|
38
|
+
ace.define('ace/mode/textile', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/textile_highlight_rules', 'ace/mode/matching_brace_outdent'], function(require, exports, module) {
|
39
|
+
"use strict";
|
40
|
+
|
41
|
+
var oop = require("../lib/oop");
|
42
|
+
var TextMode = require("./text").Mode;
|
43
|
+
var Tokenizer = require("../tokenizer").Tokenizer;
|
44
|
+
var TextileHighlightRules = require("./textile_highlight_rules").TextileHighlightRules;
|
45
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
46
|
+
|
47
|
+
var Mode = function() {
|
48
|
+
this.$tokenizer = new Tokenizer(new TextileHighlightRules().getRules());
|
49
|
+
this.$outdent = new MatchingBraceOutdent();
|
50
|
+
};
|
51
|
+
oop.inherits(Mode, TextMode);
|
52
|
+
|
53
|
+
(function() {
|
54
|
+
this.getNextLineIndent = function(state, line, tab) {
|
55
|
+
if (state == "intag")
|
56
|
+
return tab;
|
57
|
+
|
58
|
+
return "";
|
59
|
+
};
|
60
|
+
|
61
|
+
this.checkOutdent = function(state, line, input) {
|
62
|
+
return this.$outdent.checkOutdent(line, input);
|
63
|
+
};
|
64
|
+
|
65
|
+
this.autoOutdent = function(state, doc, row) {
|
66
|
+
this.$outdent.autoOutdent(doc, row);
|
67
|
+
};
|
68
|
+
|
69
|
+
}).call(Mode.prototype);
|
70
|
+
|
71
|
+
exports.Mode = Mode;
|
72
|
+
|
73
|
+
});
|
74
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
75
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
76
|
+
*
|
77
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
78
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
79
|
+
* the License. You may obtain a copy of the License at
|
80
|
+
* http://www.mozilla.org/MPL/
|
81
|
+
*
|
82
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
83
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
84
|
+
* for the specific language governing rights and limitations under the
|
85
|
+
* License.
|
86
|
+
*
|
87
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
88
|
+
*
|
89
|
+
* The Initial Developer of the Original Code is
|
90
|
+
* Ajax.org B.V.
|
91
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
92
|
+
* the Initial Developer. All Rights Reserved.
|
93
|
+
*
|
94
|
+
* Contributor(s):
|
95
|
+
* Kelley van Evert <kelley.vanevert@gmail.com>
|
96
|
+
*
|
97
|
+
* Alternatively, the contents of this file may be used under the terms of
|
98
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
99
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
100
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
101
|
+
* of those above. If you wish to allow use of your version of this file only
|
102
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
103
|
+
* use your version of this file under the terms of the MPL, indicate your
|
104
|
+
* decision by deleting the provisions above and replace them with the notice
|
105
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
106
|
+
* the provisions above, a recipient may use your version of this file under
|
107
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
108
|
+
*
|
109
|
+
* ***** END LICENSE BLOCK ***** */
|
110
|
+
|
111
|
+
ace.define('ace/mode/textile_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
112
|
+
"use strict";
|
113
|
+
|
114
|
+
var oop = require("../lib/oop");
|
115
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
116
|
+
|
117
|
+
var TextileHighlightRules = function() {
|
118
|
+
this.$rules = {
|
119
|
+
"start" : [
|
120
|
+
{
|
121
|
+
token : function(value) {
|
122
|
+
if (value.match(/^h\d$/))
|
123
|
+
return "markup.heading." + value.charAt(1);
|
124
|
+
else
|
125
|
+
return "markup.heading";
|
126
|
+
},
|
127
|
+
regex : "h1|h2|h3|h4|h5|h6|bq|p|bc|pre",
|
128
|
+
next : "blocktag"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
token : "keyword",
|
132
|
+
regex : "[\\*]+|[#]+"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
token : "text",
|
136
|
+
regex : ".+"
|
137
|
+
}
|
138
|
+
],
|
139
|
+
"blocktag" : [
|
140
|
+
{
|
141
|
+
token : "keyword",
|
142
|
+
regex : "\\. ",
|
143
|
+
next : "start"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
token : "keyword",
|
147
|
+
regex : "\\(",
|
148
|
+
next : "blocktagproperties"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
"blocktagproperties" : [
|
152
|
+
{
|
153
|
+
token : "keyword",
|
154
|
+
regex : "\\)",
|
155
|
+
next : "blocktag"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
token : "string",
|
159
|
+
regex : "[a-zA-Z0-9\\-_]+"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
token : "keyword",
|
163
|
+
regex : "#"
|
164
|
+
}
|
165
|
+
]
|
166
|
+
};
|
167
|
+
};
|
168
|
+
|
169
|
+
oop.inherits(TextileHighlightRules, TextHighlightRules);
|
170
|
+
|
171
|
+
exports.TextileHighlightRules = TextileHighlightRules;
|
172
|
+
|
173
|
+
});
|
174
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
175
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
176
|
+
*
|
177
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
178
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
179
|
+
* the License. You may obtain a copy of the License at
|
180
|
+
* http://www.mozilla.org/MPL/
|
181
|
+
*
|
182
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
183
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
184
|
+
* for the specific language governing rights and limitations under the
|
185
|
+
* License.
|
186
|
+
*
|
187
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
188
|
+
*
|
189
|
+
* The Initial Developer of the Original Code is
|
190
|
+
* Ajax.org B.V.
|
191
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
192
|
+
* the Initial Developer. All Rights Reserved.
|
193
|
+
*
|
194
|
+
* Contributor(s):
|
195
|
+
* Fabian Jakobs <fabian AT ajax DOT org>
|
196
|
+
*
|
197
|
+
* Alternatively, the contents of this file may be used under the terms of
|
198
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
199
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
200
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
201
|
+
* of those above. If you wish to allow use of your version of this file only
|
202
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
203
|
+
* use your version of this file under the terms of the MPL, indicate your
|
204
|
+
* decision by deleting the provisions above and replace them with the notice
|
205
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
206
|
+
* the provisions above, a recipient may use your version of this file under
|
207
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
208
|
+
*
|
209
|
+
* ***** END LICENSE BLOCK ***** */
|
210
|
+
|
211
|
+
ace.define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
|
212
|
+
"use strict";
|
213
|
+
|
214
|
+
var Range = require("../range").Range;
|
215
|
+
|
216
|
+
var MatchingBraceOutdent = function() {};
|
217
|
+
|
218
|
+
(function() {
|
219
|
+
|
220
|
+
this.checkOutdent = function(line, input) {
|
221
|
+
if (! /^\s+$/.test(line))
|
222
|
+
return false;
|
223
|
+
|
224
|
+
return /^\s*\}/.test(input);
|
225
|
+
};
|
226
|
+
|
227
|
+
this.autoOutdent = function(doc, row) {
|
228
|
+
var line = doc.getLine(row);
|
229
|
+
var match = line.match(/^(\s*\})/);
|
230
|
+
|
231
|
+
if (!match) return 0;
|
232
|
+
|
233
|
+
var column = match[1].length;
|
234
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
235
|
+
|
236
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
237
|
+
|
238
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
239
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
240
|
+
};
|
241
|
+
|
242
|
+
this.$getIndent = function(line) {
|
243
|
+
var match = line.match(/^(\s+)/);
|
244
|
+
if (match) {
|
245
|
+
return match[1];
|
246
|
+
}
|
247
|
+
|
248
|
+
return "";
|
249
|
+
};
|
250
|
+
|
251
|
+
}).call(MatchingBraceOutdent.prototype);
|
252
|
+
|
253
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
254
|
+
});
|
@@ -0,0 +1,254 @@
|
|
1
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
3
|
+
*
|
4
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
5
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
6
|
+
* the License. You may obtain a copy of the License at
|
7
|
+
* http://www.mozilla.org/MPL/
|
8
|
+
*
|
9
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
10
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
11
|
+
* for the specific language governing rights and limitations under the
|
12
|
+
* License.
|
13
|
+
*
|
14
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
15
|
+
*
|
16
|
+
* The Initial Developer of the Original Code is
|
17
|
+
* Ajax.org B.V.
|
18
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
19
|
+
* the Initial Developer. All Rights Reserved.
|
20
|
+
*
|
21
|
+
* Contributor(s):
|
22
|
+
* Kelley van Evert <kelley.vanevert@gmail.com>
|
23
|
+
*
|
24
|
+
* Alternatively, the contents of this file may be used under the terms of
|
25
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
26
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
27
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
28
|
+
* of those above. If you wish to allow use of your version of this file only
|
29
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
30
|
+
* use your version of this file under the terms of the MPL, indicate your
|
31
|
+
* decision by deleting the provisions above and replace them with the notice
|
32
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
33
|
+
* the provisions above, a recipient may use your version of this file under
|
34
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
35
|
+
*
|
36
|
+
* ***** END LICENSE BLOCK ***** */
|
37
|
+
|
38
|
+
define('ace/mode/textile', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/textile_highlight_rules', 'ace/mode/matching_brace_outdent'], function(require, exports, module) {
|
39
|
+
"use strict";
|
40
|
+
|
41
|
+
var oop = require("../lib/oop");
|
42
|
+
var TextMode = require("./text").Mode;
|
43
|
+
var Tokenizer = require("../tokenizer").Tokenizer;
|
44
|
+
var TextileHighlightRules = require("./textile_highlight_rules").TextileHighlightRules;
|
45
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
46
|
+
|
47
|
+
var Mode = function() {
|
48
|
+
this.$tokenizer = new Tokenizer(new TextileHighlightRules().getRules());
|
49
|
+
this.$outdent = new MatchingBraceOutdent();
|
50
|
+
};
|
51
|
+
oop.inherits(Mode, TextMode);
|
52
|
+
|
53
|
+
(function() {
|
54
|
+
this.getNextLineIndent = function(state, line, tab) {
|
55
|
+
if (state == "intag")
|
56
|
+
return tab;
|
57
|
+
|
58
|
+
return "";
|
59
|
+
};
|
60
|
+
|
61
|
+
this.checkOutdent = function(state, line, input) {
|
62
|
+
return this.$outdent.checkOutdent(line, input);
|
63
|
+
};
|
64
|
+
|
65
|
+
this.autoOutdent = function(state, doc, row) {
|
66
|
+
this.$outdent.autoOutdent(doc, row);
|
67
|
+
};
|
68
|
+
|
69
|
+
}).call(Mode.prototype);
|
70
|
+
|
71
|
+
exports.Mode = Mode;
|
72
|
+
|
73
|
+
});
|
74
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
75
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
76
|
+
*
|
77
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
78
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
79
|
+
* the License. You may obtain a copy of the License at
|
80
|
+
* http://www.mozilla.org/MPL/
|
81
|
+
*
|
82
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
83
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
84
|
+
* for the specific language governing rights and limitations under the
|
85
|
+
* License.
|
86
|
+
*
|
87
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
88
|
+
*
|
89
|
+
* The Initial Developer of the Original Code is
|
90
|
+
* Ajax.org B.V.
|
91
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
92
|
+
* the Initial Developer. All Rights Reserved.
|
93
|
+
*
|
94
|
+
* Contributor(s):
|
95
|
+
* Kelley van Evert <kelley.vanevert@gmail.com>
|
96
|
+
*
|
97
|
+
* Alternatively, the contents of this file may be used under the terms of
|
98
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
99
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
100
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
101
|
+
* of those above. If you wish to allow use of your version of this file only
|
102
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
103
|
+
* use your version of this file under the terms of the MPL, indicate your
|
104
|
+
* decision by deleting the provisions above and replace them with the notice
|
105
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
106
|
+
* the provisions above, a recipient may use your version of this file under
|
107
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
108
|
+
*
|
109
|
+
* ***** END LICENSE BLOCK ***** */
|
110
|
+
|
111
|
+
define('ace/mode/textile_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
112
|
+
"use strict";
|
113
|
+
|
114
|
+
var oop = require("../lib/oop");
|
115
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
116
|
+
|
117
|
+
var TextileHighlightRules = function() {
|
118
|
+
this.$rules = {
|
119
|
+
"start" : [
|
120
|
+
{
|
121
|
+
token : function(value) {
|
122
|
+
if (value.match(/^h\d$/))
|
123
|
+
return "markup.heading." + value.charAt(1);
|
124
|
+
else
|
125
|
+
return "markup.heading";
|
126
|
+
},
|
127
|
+
regex : "h1|h2|h3|h4|h5|h6|bq|p|bc|pre",
|
128
|
+
next : "blocktag"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
token : "keyword",
|
132
|
+
regex : "[\\*]+|[#]+"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
token : "text",
|
136
|
+
regex : ".+"
|
137
|
+
}
|
138
|
+
],
|
139
|
+
"blocktag" : [
|
140
|
+
{
|
141
|
+
token : "keyword",
|
142
|
+
regex : "\\. ",
|
143
|
+
next : "start"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
token : "keyword",
|
147
|
+
regex : "\\(",
|
148
|
+
next : "blocktagproperties"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
"blocktagproperties" : [
|
152
|
+
{
|
153
|
+
token : "keyword",
|
154
|
+
regex : "\\)",
|
155
|
+
next : "blocktag"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
token : "string",
|
159
|
+
regex : "[a-zA-Z0-9\\-_]+"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
token : "keyword",
|
163
|
+
regex : "#"
|
164
|
+
}
|
165
|
+
]
|
166
|
+
};
|
167
|
+
};
|
168
|
+
|
169
|
+
oop.inherits(TextileHighlightRules, TextHighlightRules);
|
170
|
+
|
171
|
+
exports.TextileHighlightRules = TextileHighlightRules;
|
172
|
+
|
173
|
+
});
|
174
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
175
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
176
|
+
*
|
177
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
178
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
179
|
+
* the License. You may obtain a copy of the License at
|
180
|
+
* http://www.mozilla.org/MPL/
|
181
|
+
*
|
182
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
183
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
184
|
+
* for the specific language governing rights and limitations under the
|
185
|
+
* License.
|
186
|
+
*
|
187
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
188
|
+
*
|
189
|
+
* The Initial Developer of the Original Code is
|
190
|
+
* Ajax.org B.V.
|
191
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
192
|
+
* the Initial Developer. All Rights Reserved.
|
193
|
+
*
|
194
|
+
* Contributor(s):
|
195
|
+
* Fabian Jakobs <fabian AT ajax DOT org>
|
196
|
+
*
|
197
|
+
* Alternatively, the contents of this file may be used under the terms of
|
198
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
199
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
200
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
201
|
+
* of those above. If you wish to allow use of your version of this file only
|
202
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
203
|
+
* use your version of this file under the terms of the MPL, indicate your
|
204
|
+
* decision by deleting the provisions above and replace them with the notice
|
205
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
206
|
+
* the provisions above, a recipient may use your version of this file under
|
207
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
208
|
+
*
|
209
|
+
* ***** END LICENSE BLOCK ***** */
|
210
|
+
|
211
|
+
define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
|
212
|
+
"use strict";
|
213
|
+
|
214
|
+
var Range = require("../range").Range;
|
215
|
+
|
216
|
+
var MatchingBraceOutdent = function() {};
|
217
|
+
|
218
|
+
(function() {
|
219
|
+
|
220
|
+
this.checkOutdent = function(line, input) {
|
221
|
+
if (! /^\s+$/.test(line))
|
222
|
+
return false;
|
223
|
+
|
224
|
+
return /^\s*\}/.test(input);
|
225
|
+
};
|
226
|
+
|
227
|
+
this.autoOutdent = function(doc, row) {
|
228
|
+
var line = doc.getLine(row);
|
229
|
+
var match = line.match(/^(\s*\})/);
|
230
|
+
|
231
|
+
if (!match) return 0;
|
232
|
+
|
233
|
+
var column = match[1].length;
|
234
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
235
|
+
|
236
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
237
|
+
|
238
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
239
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
240
|
+
};
|
241
|
+
|
242
|
+
this.$getIndent = function(line) {
|
243
|
+
var match = line.match(/^(\s+)/);
|
244
|
+
if (match) {
|
245
|
+
return match[1];
|
246
|
+
}
|
247
|
+
|
248
|
+
return "";
|
249
|
+
};
|
250
|
+
|
251
|
+
}).call(MatchingBraceOutdent.prototype);
|
252
|
+
|
253
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
254
|
+
});
|