aced_rails 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +9 -0
- data/README.md +29 -31
- data/aced_rails.gemspec +2 -2
- data/lib/aced_rails/config.rb +18 -18
- data/lib/aced_rails/helpers.rb +2 -3
- data/lib/aced_rails/version.rb +1 -1
- data/lib/generators/aced_rails/templates/aced_rails.rb +24 -16
- data/vendor/assets/javascripts/ace/ace.js +2 -1
- data/vendor/assets/javascripts/ace/ext-searchbox.js +1 -0
- data/vendor/assets/javascripts/ace/ext-spellcheck.js +1 -0
- data/vendor/assets/javascripts/ace/ext-static_highlight.js +1 -0
- data/vendor/assets/javascripts/ace/ext-textarea.js +1 -0
- data/vendor/assets/javascripts/ace/keybinding-emacs.js +1 -1
- data/vendor/assets/javascripts/ace/keybinding-vim.js +1 -1
- data/vendor/assets/javascripts/ace/mode-abap.js +1 -0
- data/vendor/assets/javascripts/ace/mode-asciidoc.js +1 -0
- data/vendor/assets/javascripts/ace/mode-c9search.js +1 -0
- data/vendor/assets/javascripts/ace/mode-c_cpp.js +1 -1
- data/vendor/assets/javascripts/ace/mode-clojure.js +1 -1
- data/vendor/assets/javascripts/ace/mode-coffee.js +1 -1
- data/vendor/assets/javascripts/ace/mode-coldfusion.js +1 -1
- data/vendor/assets/javascripts/ace/mode-csharp.js +1 -1
- data/vendor/assets/javascripts/ace/mode-css.js +1 -1
- data/vendor/assets/javascripts/ace/mode-curly.js +1 -0
- data/vendor/assets/javascripts/ace/mode-dart.js +1 -0
- data/vendor/assets/javascripts/ace/mode-diff.js +1 -0
- data/vendor/assets/javascripts/ace/mode-django.js +1 -0
- data/vendor/assets/javascripts/ace/mode-dot.js +1 -0
- data/vendor/assets/javascripts/ace/mode-glsl.js +1 -0
- data/vendor/assets/javascripts/ace/mode-golang.js +1 -0
- data/vendor/assets/javascripts/ace/mode-groovy.js +1 -1
- data/vendor/assets/javascripts/ace/mode-haml.js +1 -0
- data/vendor/assets/javascripts/ace/mode-haxe.js +1 -1
- data/vendor/assets/javascripts/ace/mode-html.js +1 -1
- data/vendor/assets/javascripts/ace/mode-jade.js +1 -0
- data/vendor/assets/javascripts/ace/mode-java.js +1 -1
- data/vendor/assets/javascripts/ace/mode-javascript.js +1 -1
- data/vendor/assets/javascripts/ace/mode-json.js +1 -1
- data/vendor/assets/javascripts/ace/mode-jsp.js +1 -0
- data/vendor/assets/javascripts/ace/mode-jsx.js +1 -0
- data/vendor/assets/javascripts/ace/mode-latex.js +1 -1
- data/vendor/assets/javascripts/ace/mode-less.js +1 -0
- data/vendor/assets/javascripts/ace/mode-liquid.js +1 -0
- data/vendor/assets/javascripts/ace/mode-lisp.js +1 -0
- data/vendor/assets/javascripts/ace/mode-livescript.js +1 -0
- data/vendor/assets/javascripts/ace/mode-lua.js +1 -1
- data/vendor/assets/javascripts/ace/mode-luapage.js +1 -0
- data/vendor/assets/javascripts/ace/mode-lucene.js +1 -0
- data/vendor/assets/javascripts/ace/mode-makefile.js +1 -0
- data/vendor/assets/javascripts/ace/mode-markdown.js +1 -1
- data/vendor/assets/javascripts/ace/mode-objectivec.js +1 -0
- data/vendor/assets/javascripts/ace/mode-ocaml.js +1 -1
- data/vendor/assets/javascripts/ace/mode-perl.js +1 -1
- data/vendor/assets/javascripts/ace/mode-pgsql.js +1 -1
- data/vendor/assets/javascripts/ace/mode-php.js +1 -1
- data/vendor/assets/javascripts/ace/mode-powershell.js +1 -1
- data/vendor/assets/javascripts/ace/mode-python.js +1 -1
- data/vendor/assets/javascripts/ace/mode-r.js +1 -0
- data/vendor/assets/javascripts/ace/mode-rdoc.js +1 -0
- data/vendor/assets/javascripts/ace/mode-rhtml.js +1 -0
- data/vendor/assets/javascripts/ace/mode-ruby.js +1 -1
- data/vendor/assets/javascripts/ace/mode-scad.js +1 -1
- data/vendor/assets/javascripts/ace/mode-scala.js +1 -1
- data/vendor/assets/javascripts/ace/mode-scheme.js +1 -0
- data/vendor/assets/javascripts/ace/mode-scss.js +1 -1
- data/vendor/assets/javascripts/ace/mode-sh.js +1 -1
- data/vendor/assets/javascripts/ace/mode-sql.js +1 -1
- data/vendor/assets/javascripts/ace/mode-stylus.js +1 -0
- data/vendor/assets/javascripts/ace/mode-svg.js +1 -1
- data/vendor/assets/javascripts/ace/mode-tcl.js +1 -0
- data/vendor/assets/javascripts/ace/mode-tex.js +1 -0
- data/vendor/assets/javascripts/ace/mode-textile.js +1 -1
- data/vendor/assets/javascripts/ace/mode-tm_snippet.js +1 -0
- data/vendor/assets/javascripts/ace/mode-typescript.js +1 -0
- data/vendor/assets/javascripts/ace/mode-vbscript.js +1 -0
- data/vendor/assets/javascripts/ace/mode-xml.js +1 -1
- data/vendor/assets/javascripts/ace/mode-xquery.js +1 -1
- data/vendor/assets/javascripts/ace/mode-yaml.js +1 -0
- data/vendor/assets/javascripts/ace/theme-ambiance.js +1 -0
- data/vendor/assets/javascripts/ace/theme-chaos.js +1 -0
- data/vendor/assets/javascripts/ace/theme-chrome.js +1 -1
- data/vendor/assets/javascripts/ace/theme-clouds.js +1 -1
- data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +1 -1
- data/vendor/assets/javascripts/ace/theme-cobalt.js +1 -1
- data/vendor/assets/javascripts/ace/theme-crimson_editor.js +1 -1
- data/vendor/assets/javascripts/ace/theme-dawn.js +1 -1
- data/vendor/assets/javascripts/ace/theme-dreamweaver.js +1 -1
- data/vendor/assets/javascripts/ace/theme-eclipse.js +1 -1
- data/vendor/assets/javascripts/ace/theme-github.js +1 -0
- data/vendor/assets/javascripts/ace/theme-idle_fingers.js +1 -1
- data/vendor/assets/javascripts/ace/theme-kr.js +1 -0
- data/vendor/assets/javascripts/ace/theme-merbivore.js +1 -1
- data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +1 -1
- data/vendor/assets/javascripts/ace/theme-mono_industrial.js +1 -1
- data/vendor/assets/javascripts/ace/theme-monokai.js +1 -1
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +1 -1
- data/vendor/assets/javascripts/ace/theme-solarized_dark.js +1 -1
- data/vendor/assets/javascripts/ace/theme-solarized_light.js +1 -1
- data/vendor/assets/javascripts/ace/theme-textmate.js +1 -0
- data/vendor/assets/javascripts/ace/theme-tomorrow.js +1 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +1 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +1 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +1 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +1 -1
- data/vendor/assets/javascripts/ace/theme-twilight.js +1 -1
- data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +1 -1
- data/vendor/assets/javascripts/ace/theme-xcode.js +1 -0
- data/vendor/assets/javascripts/ace/worker-coffee.js +1 -7456
- data/vendor/assets/javascripts/ace/worker-css.js +1 -11693
- data/vendor/assets/javascripts/ace/worker-javascript.js +1 -10305
- data/vendor/assets/javascripts/ace/worker-json.js +1 -3062
- data/vendor/assets/javascripts/ace/worker-php.js +1 -0
- data/vendor/assets/javascripts/ace/worker-xquery.js +1 -0
- data/vendor/assets/javascripts/aced-rails.js.coffee +58 -0
- metadata +60 -205
- data/vendor/assets/javascripts/ace/ace-compat-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/ace-compat-uncompressed-noconflict.js +0 -480
- data/vendor/assets/javascripts/ace/ace-compat-uncompressed.js +0 -480
- data/vendor/assets/javascripts/ace/ace-compat.js +0 -1
- data/vendor/assets/javascripts/ace/ace-noconflict.js +0 -10
- data/vendor/assets/javascripts/ace/ace-uncompressed-noconflict.js +0 -15241
- data/vendor/assets/javascripts/ace/ace-uncompressed.js +0 -15241
- data/vendor/assets/javascripts/ace/keybinding-emacs-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/keybinding-emacs-uncompressed-noconflict.js +0 -150
- data/vendor/assets/javascripts/ace/keybinding-emacs-uncompressed.js +0 -150
- data/vendor/assets/javascripts/ace/keybinding-vim-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/keybinding-vim-uncompressed-noconflict.js +0 -138
- data/vendor/assets/javascripts/ace/keybinding-vim-uncompressed.js +0 -138
- data/vendor/assets/javascripts/ace/mode-c_cpp-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-c_cpp-uncompressed-noconflict.js +0 -918
- data/vendor/assets/javascripts/ace/mode-c_cpp-uncompressed.js +0 -918
- data/vendor/assets/javascripts/ace/mode-clojure-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-clojure-uncompressed-noconflict.js +0 -422
- data/vendor/assets/javascripts/ace/mode-clojure-uncompressed.js +0 -422
- data/vendor/assets/javascripts/ace/mode-coffee-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-coffee-uncompressed-noconflict.js +0 -605
- data/vendor/assets/javascripts/ace/mode-coffee-uncompressed.js +0 -605
- data/vendor/assets/javascripts/ace/mode-coldfusion-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-coldfusion-uncompressed-noconflict.js +0 -2391
- data/vendor/assets/javascripts/ace/mode-coldfusion-uncompressed.js +0 -2391
- data/vendor/assets/javascripts/ace/mode-csharp-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-csharp-uncompressed-noconflict.js +0 -768
- data/vendor/assets/javascripts/ace/mode-csharp-uncompressed.js +0 -768
- data/vendor/assets/javascripts/ace/mode-css-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-css-uncompressed-noconflict.js +0 -676
- data/vendor/assets/javascripts/ace/mode-css-uncompressed.js +0 -676
- data/vendor/assets/javascripts/ace/mode-groovy-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-groovy-uncompressed-noconflict.js +0 -1298
- data/vendor/assets/javascripts/ace/mode-groovy-uncompressed.js +0 -1298
- data/vendor/assets/javascripts/ace/mode-haxe-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-haxe-uncompressed-noconflict.js +0 -768
- data/vendor/assets/javascripts/ace/mode-haxe-uncompressed.js +0 -768
- data/vendor/assets/javascripts/ace/mode-html-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-html-uncompressed-noconflict.js +0 -2407
- data/vendor/assets/javascripts/ace/mode-html-uncompressed.js +0 -2407
- data/vendor/assets/javascripts/ace/mode-java-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-java-uncompressed-noconflict.js +0 -1300
- data/vendor/assets/javascripts/ace/mode-java-uncompressed.js +0 -1300
- data/vendor/assets/javascripts/ace/mode-javascript-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-javascript-uncompressed-noconflict.js +0 -1131
- data/vendor/assets/javascripts/ace/mode-javascript-uncompressed.js +0 -1131
- data/vendor/assets/javascripts/ace/mode-json-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-json-uncompressed-noconflict.js +0 -696
- data/vendor/assets/javascripts/ace/mode-json-uncompressed.js +0 -696
- data/vendor/assets/javascripts/ace/mode-latex-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-latex-uncompressed-noconflict.js +0 -95
- data/vendor/assets/javascripts/ace/mode-latex-uncompressed.js +0 -95
- data/vendor/assets/javascripts/ace/mode-lua-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-lua-uncompressed-noconflict.js +0 -523
- data/vendor/assets/javascripts/ace/mode-lua-uncompressed.js +0 -523
- data/vendor/assets/javascripts/ace/mode-markdown-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-markdown-uncompressed-noconflict.js +0 -2849
- data/vendor/assets/javascripts/ace/mode-markdown-uncompressed.js +0 -2849
- data/vendor/assets/javascripts/ace/mode-ocaml-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-ocaml-uncompressed-noconflict.js +0 -539
- data/vendor/assets/javascripts/ace/mode-ocaml-uncompressed.js +0 -539
- data/vendor/assets/javascripts/ace/mode-perl-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-perl-uncompressed-noconflict.js +0 -573
- data/vendor/assets/javascripts/ace/mode-perl-uncompressed.js +0 -573
- data/vendor/assets/javascripts/ace/mode-pgsql-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-pgsql-uncompressed-noconflict.js +0 -1107
- data/vendor/assets/javascripts/ace/mode-pgsql-uncompressed.js +0 -1107
- data/vendor/assets/javascripts/ace/mode-php-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-php-uncompressed-noconflict.js +0 -1884
- data/vendor/assets/javascripts/ace/mode-php-uncompressed.js +0 -1884
- data/vendor/assets/javascripts/ace/mode-powershell-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-powershell-uncompressed-noconflict.js +0 -706
- data/vendor/assets/javascripts/ace/mode-powershell-uncompressed.js +0 -706
- data/vendor/assets/javascripts/ace/mode-python-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-python-uncompressed-noconflict.js +0 -506
- data/vendor/assets/javascripts/ace/mode-python-uncompressed.js +0 -506
- data/vendor/assets/javascripts/ace/mode-ruby-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-ruby-uncompressed-noconflict.js +0 -391
- data/vendor/assets/javascripts/ace/mode-ruby-uncompressed.js +0 -391
- data/vendor/assets/javascripts/ace/mode-scad-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-scad-uncompressed-noconflict.js +0 -906
- data/vendor/assets/javascripts/ace/mode-scad-uncompressed.js +0 -906
- data/vendor/assets/javascripts/ace/mode-scala-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-scala-uncompressed-noconflict.js +0 -1300
- data/vendor/assets/javascripts/ace/mode-scala-uncompressed.js +0 -1300
- data/vendor/assets/javascripts/ace/mode-scss-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-scss-uncompressed-noconflict.js +0 -678
- data/vendor/assets/javascripts/ace/mode-scss-uncompressed.js +0 -678
- data/vendor/assets/javascripts/ace/mode-sh-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-sh-uncompressed-noconflict.js +0 -281
- data/vendor/assets/javascripts/ace/mode-sh-uncompressed.js +0 -281
- data/vendor/assets/javascripts/ace/mode-sql-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-sql-uncompressed-noconflict.js +0 -159
- data/vendor/assets/javascripts/ace/mode-sql-uncompressed.js +0 -159
- data/vendor/assets/javascripts/ace/mode-svg-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-svg-uncompressed-noconflict.js +0 -2034
- data/vendor/assets/javascripts/ace/mode-svg-uncompressed.js +0 -2034
- data/vendor/assets/javascripts/ace/mode-text-noconflict.js +0 -0
- data/vendor/assets/javascripts/ace/mode-text-uncompressed-noconflict.js +0 -0
- data/vendor/assets/javascripts/ace/mode-text-uncompressed.js +0 -0
- data/vendor/assets/javascripts/ace/mode-textile-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-textile-uncompressed-noconflict.js +0 -254
- data/vendor/assets/javascripts/ace/mode-textile-uncompressed.js +0 -254
- data/vendor/assets/javascripts/ace/mode-xml-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-xml-uncompressed-noconflict.js +0 -1001
- data/vendor/assets/javascripts/ace/mode-xml-uncompressed.js +0 -1001
- data/vendor/assets/javascripts/ace/mode-xquery-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/mode-xquery-uncompressed-noconflict.js +0 -538
- data/vendor/assets/javascripts/ace/mode-xquery-uncompressed.js +0 -538
- data/vendor/assets/javascripts/ace/theme-chrome-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-chrome-uncompressed-noconflict.js +0 -212
- data/vendor/assets/javascripts/ace/theme-chrome-uncompressed.js +0 -212
- data/vendor/assets/javascripts/ace/theme-clouds-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-clouds-uncompressed-noconflict.js +0 -155
- data/vendor/assets/javascripts/ace/theme-clouds-uncompressed.js +0 -155
- data/vendor/assets/javascripts/ace/theme-clouds_midnight-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-clouds_midnight-uncompressed-noconflict.js +0 -156
- data/vendor/assets/javascripts/ace/theme-clouds_midnight-uncompressed.js +0 -156
- data/vendor/assets/javascripts/ace/theme-cobalt-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-cobalt-uncompressed-noconflict.js +0 -174
- data/vendor/assets/javascripts/ace/theme-cobalt-uncompressed.js +0 -174
- data/vendor/assets/javascripts/ace/theme-crimson_editor-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-crimson_editor-uncompressed-noconflict.js +0 -198
- data/vendor/assets/javascripts/ace/theme-crimson_editor-uncompressed.js +0 -198
- data/vendor/assets/javascripts/ace/theme-dawn-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-dawn-uncompressed-noconflict.js +0 -178
- data/vendor/assets/javascripts/ace/theme-dawn-uncompressed.js +0 -178
- data/vendor/assets/javascripts/ace/theme-dreamweaver-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-dreamweaver-uncompressed-noconflict.js +0 -227
- data/vendor/assets/javascripts/ace/theme-dreamweaver-uncompressed.js +0 -227
- data/vendor/assets/javascripts/ace/theme-eclipse-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-eclipse-uncompressed-noconflict.js +0 -147
- data/vendor/assets/javascripts/ace/theme-eclipse-uncompressed.js +0 -147
- data/vendor/assets/javascripts/ace/theme-idle_fingers-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-idle_fingers-uncompressed-noconflict.js +0 -166
- data/vendor/assets/javascripts/ace/theme-idle_fingers-uncompressed.js +0 -166
- data/vendor/assets/javascripts/ace/theme-kr_theme-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-kr_theme-uncompressed-noconflict.js +0 -169
- data/vendor/assets/javascripts/ace/theme-kr_theme-uncompressed.js +0 -169
- data/vendor/assets/javascripts/ace/theme-kr_theme.js +0 -1
- data/vendor/assets/javascripts/ace/theme-merbivore-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-merbivore-uncompressed-noconflict.js +0 -169
- data/vendor/assets/javascripts/ace/theme-merbivore-uncompressed.js +0 -169
- data/vendor/assets/javascripts/ace/theme-merbivore_soft-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-merbivore_soft-uncompressed-noconflict.js +0 -175
- data/vendor/assets/javascripts/ace/theme-merbivore_soft-uncompressed.js +0 -175
- data/vendor/assets/javascripts/ace/theme-mono_industrial-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-mono_industrial-uncompressed-noconflict.js +0 -177
- data/vendor/assets/javascripts/ace/theme-mono_industrial-uncompressed.js +0 -177
- data/vendor/assets/javascripts/ace/theme-monokai-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-monokai-uncompressed-noconflict.js +0 -183
- data/vendor/assets/javascripts/ace/theme-monokai-uncompressed.js +0 -183
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark-uncompressed-noconflict.js +0 -179
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark-uncompressed.js +0 -179
- data/vendor/assets/javascripts/ace/theme-solarized_dark-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-solarized_dark-uncompressed-noconflict.js +0 -168
- data/vendor/assets/javascripts/ace/theme-solarized_dark-uncompressed.js +0 -168
- data/vendor/assets/javascripts/ace/theme-solarized_light-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-solarized_light-uncompressed-noconflict.js +0 -167
- data/vendor/assets/javascripts/ace/theme-solarized_light-uncompressed.js +0 -167
- data/vendor/assets/javascripts/ace/theme-textmate-noconflict.js +0 -0
- data/vendor/assets/javascripts/ace/theme-textmate-uncompressed-noconflict.js +0 -0
- data/vendor/assets/javascripts/ace/theme-textmate-uncompressed.js +0 -0
- data/vendor/assets/javascripts/ace/theme-tomorrow-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow-uncompressed-noconflict.js +0 -201
- data/vendor/assets/javascripts/ace/theme-tomorrow-uncompressed.js +0 -201
- data/vendor/assets/javascripts/ace/theme-tomorrow_night-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night-uncompressed-noconflict.js +0 -201
- data/vendor/assets/javascripts/ace/theme-tomorrow_night-uncompressed.js +0 -201
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue-uncompressed-noconflict.js +0 -201
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue-uncompressed.js +0 -201
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright-uncompressed-noconflict.js +0 -201
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright-uncompressed.js +0 -201
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties-uncompressed-noconflict.js +0 -197
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties-uncompressed.js +0 -197
- data/vendor/assets/javascripts/ace/theme-twilight-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-twilight-uncompressed-noconflict.js +0 -191
- data/vendor/assets/javascripts/ace/theme-twilight-uncompressed.js +0 -191
- data/vendor/assets/javascripts/ace/theme-vibrant_ink-noconflict.js +0 -1
- data/vendor/assets/javascripts/ace/theme-vibrant_ink-uncompressed-noconflict.js +0 -170
- data/vendor/assets/javascripts/ace/theme-vibrant_ink-uncompressed.js +0 -170
- data/vendor/assets/javascripts/aced-api.js.coffee +0 -116
- data/vendor/assets/javascripts/jquery.random.js +0 -31
@@ -1,523 +0,0 @@
|
|
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
|
-
* Fabian Jakobs <fabian AT ajax DOT org>
|
23
|
-
* Colin Gourlay <colin DOT j DOT gourlay AT gmail DOT com>
|
24
|
-
* Lee Gao
|
25
|
-
*
|
26
|
-
* Alternatively, the contents of this file may be used under the terms of
|
27
|
-
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
28
|
-
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
29
|
-
* in which case the provisions of the GPL or the LGPL are applicable instead
|
30
|
-
* of those above. If you wish to allow use of your version of this file only
|
31
|
-
* under the terms of either the GPL or the LGPL, and not to allow others to
|
32
|
-
* use your version of this file under the terms of the MPL, indicate your
|
33
|
-
* decision by deleting the provisions above and replace them with the notice
|
34
|
-
* and other provisions required by the GPL or the LGPL. If you do not delete
|
35
|
-
* the provisions above, a recipient may use your version of this file under
|
36
|
-
* the terms of any one of the MPL, the GPL or the LGPL.
|
37
|
-
*
|
38
|
-
* ***** END LICENSE BLOCK ***** */
|
39
|
-
|
40
|
-
define('ace/mode/lua', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/lua_highlight_rules'], function(require, exports, module) {
|
41
|
-
"use strict";
|
42
|
-
|
43
|
-
var oop = require("../lib/oop");
|
44
|
-
var TextMode = require("./text").Mode;
|
45
|
-
var Tokenizer = require("../tokenizer").Tokenizer;
|
46
|
-
var LuaHighlightRules = require("./lua_highlight_rules").LuaHighlightRules;
|
47
|
-
|
48
|
-
var Mode = function() {
|
49
|
-
this.$tokenizer = new Tokenizer(new LuaHighlightRules().getRules());
|
50
|
-
};
|
51
|
-
oop.inherits(Mode, TextMode);
|
52
|
-
|
53
|
-
(function() {
|
54
|
-
this.getNextLineIndent = function(state, line, tab) {
|
55
|
-
var indent = this.$getIndent(line);
|
56
|
-
|
57
|
-
var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
|
58
|
-
var tokens = tokenizedLine.tokens;
|
59
|
-
|
60
|
-
var chunks = ["function", "then", "do", "repeat"];
|
61
|
-
|
62
|
-
if (state == "start") {
|
63
|
-
var match = line.match(/^.*[\{\(\[]\s*$/);
|
64
|
-
if (match) {
|
65
|
-
indent += tab;
|
66
|
-
} else {
|
67
|
-
for (var i in tokens){
|
68
|
-
var token = tokens[i];
|
69
|
-
if (token.type != "keyword") continue;
|
70
|
-
var chunk_i = chunks.indexOf(token.value);
|
71
|
-
if (chunk_i != -1){
|
72
|
-
indent += tab;
|
73
|
-
break;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
return indent;
|
80
|
-
};
|
81
|
-
|
82
|
-
}).call(Mode.prototype);
|
83
|
-
|
84
|
-
exports.Mode = Mode;
|
85
|
-
});
|
86
|
-
|
87
|
-
|
88
|
-
/* ***** BEGIN LICENSE BLOCK *****
|
89
|
-
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
90
|
-
*
|
91
|
-
* The contents of this file are subject to the Mozilla Public License Version
|
92
|
-
* 1.1 (the "License"); you may not use this file except in compliance with
|
93
|
-
* the License. You may obtain a copy of the License at
|
94
|
-
* http://www.mozilla.org/MPL/
|
95
|
-
*
|
96
|
-
* Software distributed under the License is distributed on an "AS IS" basis,
|
97
|
-
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
98
|
-
* for the specific language governing rights and limitations under the
|
99
|
-
* License.
|
100
|
-
*
|
101
|
-
* The Original Code is Ajax.org Code Editor (ACE).
|
102
|
-
*
|
103
|
-
* The Initial Developer of the Original Code is
|
104
|
-
* Ajax.org B.V.
|
105
|
-
* Portions created by the Initial Developer are Copyright (C) 2010
|
106
|
-
* the Initial Developer. All Rights Reserved.
|
107
|
-
*
|
108
|
-
* Contributor(s):
|
109
|
-
* Fabian Jakobs <fabian AT ajax DOT org>
|
110
|
-
* Colin Gourlay <colin DOT j DOT gourlay AT gmail DOT com>
|
111
|
-
* Lee Gao
|
112
|
-
*
|
113
|
-
* Alternatively, the contents of this file may be used under the terms of
|
114
|
-
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
115
|
-
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
116
|
-
* in which case the provisions of the GPL or the LGPL are applicable instead
|
117
|
-
* of those above. If you wish to allow use of your version of this file only
|
118
|
-
* under the terms of either the GPL or the LGPL, and not to allow others to
|
119
|
-
* use your version of this file under the terms of the MPL, indicate your
|
120
|
-
* decision by deleting the provisions above and replace them with the notice
|
121
|
-
* and other provisions required by the GPL or the LGPL. If you do not delete
|
122
|
-
* the provisions above, a recipient may use your version of this file under
|
123
|
-
* the terms of any one of the MPL, the GPL or the LGPL.
|
124
|
-
*
|
125
|
-
* ***** END LICENSE BLOCK ***** */
|
126
|
-
|
127
|
-
define('ace/mode/lua_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
|
128
|
-
"use strict";
|
129
|
-
|
130
|
-
var oop = require("../lib/oop");
|
131
|
-
var lang = require("../lib/lang");
|
132
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
133
|
-
|
134
|
-
var LuaHighlightRules = function() {
|
135
|
-
|
136
|
-
var keywords = lang.arrayToMap(
|
137
|
-
("break|do|else|elseif|end|for|function|if|in|local|repeat|"+
|
138
|
-
"return|then|until|while|or|and|not").split("|")
|
139
|
-
);
|
140
|
-
|
141
|
-
var builtinConstants = lang.arrayToMap(
|
142
|
-
("true|false|nil|_G|_VERSION").split("|")
|
143
|
-
);
|
144
|
-
|
145
|
-
var builtinFunctions = lang.arrayToMap(
|
146
|
-
("string|xpcall|package|tostring|print|os|unpack|require|"+
|
147
|
-
"getfenv|setmetatable|next|assert|tonumber|io|rawequal|"+
|
148
|
-
"collectgarbage|getmetatable|module|rawset|math|debug|"+
|
149
|
-
"pcall|table|newproxy|type|coroutine|_G|select|gcinfo|"+
|
150
|
-
"pairs|rawget|loadstring|ipairs|_VERSION|dofile|setfenv|"+
|
151
|
-
"load|error|loadfile|"+
|
152
|
-
|
153
|
-
"sub|upper|len|gfind|rep|find|match|char|dump|gmatch|"+
|
154
|
-
"reverse|byte|format|gsub|lower|preload|loadlib|loaded|"+
|
155
|
-
"loaders|cpath|config|path|seeall|exit|setlocale|date|"+
|
156
|
-
"getenv|difftime|remove|time|clock|tmpname|rename|execute|"+
|
157
|
-
"lines|write|close|flush|open|output|type|read|stderr|"+
|
158
|
-
"stdin|input|stdout|popen|tmpfile|log|max|acos|huge|"+
|
159
|
-
"ldexp|pi|cos|tanh|pow|deg|tan|cosh|sinh|random|randomseed|"+
|
160
|
-
"frexp|ceil|floor|rad|abs|sqrt|modf|asin|min|mod|fmod|log10|"+
|
161
|
-
"atan2|exp|sin|atan|getupvalue|debug|sethook|getmetatable|"+
|
162
|
-
"gethook|setmetatable|setlocal|traceback|setfenv|getinfo|"+
|
163
|
-
"setupvalue|getlocal|getregistry|getfenv|setn|insert|getn|"+
|
164
|
-
"foreachi|maxn|foreach|concat|sort|remove|resume|yield|"+
|
165
|
-
"status|wrap|create|running").split("|")
|
166
|
-
);
|
167
|
-
|
168
|
-
var stdLibaries = lang.arrayToMap(
|
169
|
-
("string|package|os|io|math|debug|table|coroutine").split("|")
|
170
|
-
);
|
171
|
-
|
172
|
-
var metatableMethods = lang.arrayToMap(
|
173
|
-
("__add|__sub|__mod|__unm|__concat|__lt|__index|__call|__gc|__metatable|"+
|
174
|
-
"__mul|__div|__pow|__len|__eq|__le|__newindex|__tostring|__mode|__tonumber").split("|")
|
175
|
-
);
|
176
|
-
|
177
|
-
var futureReserved = lang.arrayToMap(
|
178
|
-
("").split("|")
|
179
|
-
);
|
180
|
-
|
181
|
-
var deprecatedIn5152 = lang.arrayToMap(
|
182
|
-
("setn|foreach|foreachi|gcinfo|log10|maxn").split("|")
|
183
|
-
);
|
184
|
-
|
185
|
-
var strPre = "";
|
186
|
-
|
187
|
-
var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
|
188
|
-
var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
|
189
|
-
var integer = "(?:" + decimalInteger + "|" + hexInteger + ")";
|
190
|
-
|
191
|
-
var fraction = "(?:\\.\\d+)";
|
192
|
-
var intPart = "(?:\\d+)";
|
193
|
-
var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
|
194
|
-
var floatNumber = "(?:" + pointFloat + ")";
|
195
|
-
|
196
|
-
var comment_stack = [];
|
197
|
-
|
198
|
-
this.$rules = {
|
199
|
-
"start" :
|
200
|
-
|
201
|
-
|
202
|
-
// bracketed comments
|
203
|
-
[{
|
204
|
-
token : "comment", // --[[ comment
|
205
|
-
regex : strPre + '\\-\\-\\[\\[.*\\]\\]'
|
206
|
-
}, {
|
207
|
-
token : "comment", // --[=[ comment
|
208
|
-
regex : strPre + '\\-\\-\\[\\=\\[.*\\]\\=\\]'
|
209
|
-
}, {
|
210
|
-
token : "comment", // --[==[ comment
|
211
|
-
regex : strPre + '\\-\\-\\[\\={2}\\[.*\\]\\={2}\\]'
|
212
|
-
}, {
|
213
|
-
token : "comment", // --[===[ comment
|
214
|
-
regex : strPre + '\\-\\-\\[\\={3}\\[.*\\]\\={3}\\]'
|
215
|
-
}, {
|
216
|
-
token : "comment", // --[====[ comment
|
217
|
-
regex : strPre + '\\-\\-\\[\\={4}\\[.*\\]\\={4}\\]'
|
218
|
-
}, {
|
219
|
-
token : "comment", // --[====+[ comment
|
220
|
-
regex : strPre + '\\-\\-\\[\\={5}\\=*\\[.*\\]\\={5}\\=*\\]'
|
221
|
-
},
|
222
|
-
|
223
|
-
// multiline bracketed comments
|
224
|
-
{
|
225
|
-
token : "comment", // --[[ comment
|
226
|
-
regex : strPre + '\\-\\-\\[\\[.*$',
|
227
|
-
merge : true,
|
228
|
-
next : "qcomment"
|
229
|
-
}, {
|
230
|
-
token : "comment", // --[=[ comment
|
231
|
-
regex : strPre + '\\-\\-\\[\\=\\[.*$',
|
232
|
-
merge : true,
|
233
|
-
next : "qcomment1"
|
234
|
-
}, {
|
235
|
-
token : "comment", // --[==[ comment
|
236
|
-
regex : strPre + '\\-\\-\\[\\={2}\\[.*$',
|
237
|
-
merge : true,
|
238
|
-
next : "qcomment2"
|
239
|
-
}, {
|
240
|
-
token : "comment", // --[===[ comment
|
241
|
-
regex : strPre + '\\-\\-\\[\\={3}\\[.*$',
|
242
|
-
merge : true,
|
243
|
-
next : "qcomment3"
|
244
|
-
}, {
|
245
|
-
token : "comment", // --[====[ comment
|
246
|
-
regex : strPre + '\\-\\-\\[\\={4}\\[.*$',
|
247
|
-
merge : true,
|
248
|
-
next : "qcomment4"
|
249
|
-
}, {
|
250
|
-
token : function(value){ // --[====+[ comment
|
251
|
-
// WARNING: EXTREMELY SLOW, but this is the only way to circumvent the
|
252
|
-
// limits imposed by the current automaton.
|
253
|
-
// I've never personally seen any practical code where 5 or more '='s are
|
254
|
-
// used for string or commenting, so this will rarely be invoked.
|
255
|
-
var pattern = /\-\-\[(\=+)\[/, match;
|
256
|
-
// you can never be too paranoid ;)
|
257
|
-
if ((match = pattern.exec(value)) != null && (match = match[1]) != undefined)
|
258
|
-
comment_stack.push(match.length);
|
259
|
-
|
260
|
-
return "comment";
|
261
|
-
},
|
262
|
-
regex : strPre + '\\-\\-\\[\\={5}\\=*\\[.*$',
|
263
|
-
merge : true,
|
264
|
-
next : "qcomment5"
|
265
|
-
},
|
266
|
-
|
267
|
-
// single line comments
|
268
|
-
{
|
269
|
-
token : "comment",
|
270
|
-
regex : "\\-\\-.*$"
|
271
|
-
},
|
272
|
-
|
273
|
-
// bracketed strings
|
274
|
-
{
|
275
|
-
token : "string", // [[ string
|
276
|
-
regex : strPre + '\\[\\[.*\\]\\]'
|
277
|
-
}, {
|
278
|
-
token : "string", // [=[ string
|
279
|
-
regex : strPre + '\\[\\=\\[.*\\]\\=\\]'
|
280
|
-
}, {
|
281
|
-
token : "string", // [==[ string
|
282
|
-
regex : strPre + '\\[\\={2}\\[.*\\]\\={2}\\]'
|
283
|
-
}, {
|
284
|
-
token : "string", // [===[ string
|
285
|
-
regex : strPre + '\\[\\={3}\\[.*\\]\\={3}\\]'
|
286
|
-
}, {
|
287
|
-
token : "string", // [====[ string
|
288
|
-
regex : strPre + '\\[\\={4}\\[.*\\]\\={4}\\]'
|
289
|
-
}, {
|
290
|
-
token : "string", // [====+[ string
|
291
|
-
regex : strPre + '\\[\\={5}\\=*\\[.*\\]\\={5}\\=*\\]'
|
292
|
-
},
|
293
|
-
|
294
|
-
// multiline bracketed strings
|
295
|
-
{
|
296
|
-
token : "string", // [[ string
|
297
|
-
regex : strPre + '\\[\\[.*$',
|
298
|
-
merge : true,
|
299
|
-
next : "qstring"
|
300
|
-
}, {
|
301
|
-
token : "string", // [=[ string
|
302
|
-
regex : strPre + '\\[\\=\\[.*$',
|
303
|
-
merge : true,
|
304
|
-
next : "qstring1"
|
305
|
-
}, {
|
306
|
-
token : "string", // [==[ string
|
307
|
-
regex : strPre + '\\[\\={2}\\[.*$',
|
308
|
-
merge : true,
|
309
|
-
next : "qstring2"
|
310
|
-
}, {
|
311
|
-
token : "string", // [===[ string
|
312
|
-
regex : strPre + '\\[\\={3}\\[.*$',
|
313
|
-
merge : true,
|
314
|
-
next : "qstring3"
|
315
|
-
}, {
|
316
|
-
token : "string", // [====[ string
|
317
|
-
regex : strPre + '\\[\\={4}\\[.*$',
|
318
|
-
merge : true,
|
319
|
-
next : "qstring4"
|
320
|
-
}, {
|
321
|
-
token : function(value){ // --[====+[ string
|
322
|
-
// WARNING: EXTREMELY SLOW, see above.
|
323
|
-
var pattern = /\[(\=+)\[/, match;
|
324
|
-
if ((match = pattern.exec(value)) != null && (match = match[1]) != undefined)
|
325
|
-
comment_stack.push(match.length);
|
326
|
-
|
327
|
-
return "string";
|
328
|
-
},
|
329
|
-
regex : strPre + '\\[\\={5}\\=*\\[.*$',
|
330
|
-
merge : true,
|
331
|
-
next : "qstring5"
|
332
|
-
},
|
333
|
-
|
334
|
-
{
|
335
|
-
token : "string", // " string
|
336
|
-
regex : strPre + '"(?:[^\\\\]|\\\\.)*?"'
|
337
|
-
}, {
|
338
|
-
token : "string", // ' string
|
339
|
-
regex : strPre + "'(?:[^\\\\]|\\\\.)*?'"
|
340
|
-
}, {
|
341
|
-
token : "constant.numeric", // float
|
342
|
-
regex : floatNumber
|
343
|
-
}, {
|
344
|
-
token : "constant.numeric", // integer
|
345
|
-
regex : integer + "\\b"
|
346
|
-
}, {
|
347
|
-
token : function(value) {
|
348
|
-
if (keywords.hasOwnProperty(value))
|
349
|
-
return "keyword";
|
350
|
-
else if (builtinConstants.hasOwnProperty(value))
|
351
|
-
return "constant.language";
|
352
|
-
else if (futureReserved.hasOwnProperty(value))
|
353
|
-
return "invalid.illegal";
|
354
|
-
else if (stdLibaries.hasOwnProperty(value))
|
355
|
-
return "constant.library";
|
356
|
-
else if (deprecatedIn5152.hasOwnProperty(value))
|
357
|
-
return "invalid.deprecated";
|
358
|
-
else if (builtinFunctions.hasOwnProperty(value))
|
359
|
-
return "support.function";
|
360
|
-
else if (metatableMethods.hasOwnProperty(value))
|
361
|
-
return "support.function";
|
362
|
-
else
|
363
|
-
return "identifier";
|
364
|
-
},
|
365
|
-
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
366
|
-
}, {
|
367
|
-
token : "keyword.operator",
|
368
|
-
regex : "\\+|\\-|\\*|\\/|%|\\#|\\^|~|<|>|<=|=>|==|~=|=|\\:|\\.\\.\\.|\\.\\."
|
369
|
-
}, {
|
370
|
-
token : "paren.lparen",
|
371
|
-
regex : "[\\[\\(\\{]"
|
372
|
-
}, {
|
373
|
-
token : "paren.rparen",
|
374
|
-
regex : "[\\]\\)\\}]"
|
375
|
-
}, {
|
376
|
-
token : "text",
|
377
|
-
regex : "\\s+"
|
378
|
-
} ],
|
379
|
-
|
380
|
-
"qcomment": [ {
|
381
|
-
token : "comment",
|
382
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\]",
|
383
|
-
next : "start"
|
384
|
-
}, {
|
385
|
-
token : "comment",
|
386
|
-
merge : true,
|
387
|
-
regex : '.+'
|
388
|
-
} ],
|
389
|
-
"qcomment1": [ {
|
390
|
-
token : "comment",
|
391
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\=\\]",
|
392
|
-
next : "start"
|
393
|
-
}, {
|
394
|
-
token : "comment",
|
395
|
-
merge : true,
|
396
|
-
regex : '.+'
|
397
|
-
} ],
|
398
|
-
"qcomment2": [ {
|
399
|
-
token : "comment",
|
400
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={2}\\]",
|
401
|
-
next : "start"
|
402
|
-
}, {
|
403
|
-
token : "comment",
|
404
|
-
merge : true,
|
405
|
-
regex : '.+'
|
406
|
-
} ],
|
407
|
-
"qcomment3": [ {
|
408
|
-
token : "comment",
|
409
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={3}\\]",
|
410
|
-
next : "start"
|
411
|
-
}, {
|
412
|
-
token : "comment",
|
413
|
-
merge : true,
|
414
|
-
regex : '.+'
|
415
|
-
} ],
|
416
|
-
"qcomment4": [ {
|
417
|
-
token : "comment",
|
418
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={4}\\]",
|
419
|
-
next : "start"
|
420
|
-
}, {
|
421
|
-
token : "comment",
|
422
|
-
merge : true,
|
423
|
-
regex : '.+'
|
424
|
-
} ],
|
425
|
-
"qcomment5": [ {
|
426
|
-
token : function(value){
|
427
|
-
// very hackish, mutates the qcomment5 field on the fly.
|
428
|
-
var pattern = /\](\=+)\]/, rule = this.rules.qcomment5[0], match;
|
429
|
-
rule.next = "start";
|
430
|
-
if ((match = pattern.exec(value)) != null && (match = match[1]) != undefined){
|
431
|
-
var found = match.length, expected;
|
432
|
-
if ((expected = comment_stack.pop()) != found){
|
433
|
-
comment_stack.push(expected);
|
434
|
-
rule.next = "qcomment5";
|
435
|
-
}
|
436
|
-
}
|
437
|
-
|
438
|
-
return "comment";
|
439
|
-
},
|
440
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={5}\\=*\\]",
|
441
|
-
next : "start"
|
442
|
-
}, {
|
443
|
-
token : "comment",
|
444
|
-
merge : true,
|
445
|
-
regex : '.+'
|
446
|
-
} ],
|
447
|
-
|
448
|
-
"qstring": [ {
|
449
|
-
token : "string",
|
450
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\]",
|
451
|
-
next : "start"
|
452
|
-
}, {
|
453
|
-
token : "string",
|
454
|
-
merge : true,
|
455
|
-
regex : '.+'
|
456
|
-
} ],
|
457
|
-
"qstring1": [ {
|
458
|
-
token : "string",
|
459
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\=\\]",
|
460
|
-
next : "start"
|
461
|
-
}, {
|
462
|
-
token : "string",
|
463
|
-
merge : true,
|
464
|
-
regex : '.+'
|
465
|
-
} ],
|
466
|
-
"qstring2": [ {
|
467
|
-
token : "string",
|
468
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={2}\\]",
|
469
|
-
next : "start"
|
470
|
-
}, {
|
471
|
-
token : "string",
|
472
|
-
merge : true,
|
473
|
-
regex : '.+'
|
474
|
-
} ],
|
475
|
-
"qstring3": [ {
|
476
|
-
token : "string",
|
477
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={3}\\]",
|
478
|
-
next : "start"
|
479
|
-
}, {
|
480
|
-
token : "string",
|
481
|
-
merge : true,
|
482
|
-
regex : '.+'
|
483
|
-
} ],
|
484
|
-
"qstring4": [ {
|
485
|
-
token : "string",
|
486
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={4}\\]",
|
487
|
-
next : "start"
|
488
|
-
}, {
|
489
|
-
token : "string",
|
490
|
-
merge : true,
|
491
|
-
regex : '.+'
|
492
|
-
} ],
|
493
|
-
"qstring5": [ {
|
494
|
-
token : function(value){
|
495
|
-
// very hackish, mutates the qstring5 field on the fly.
|
496
|
-
var pattern = /\](\=+)\]/, rule = this.rules.qstring5[0], match;
|
497
|
-
rule.next = "start";
|
498
|
-
if ((match = pattern.exec(value)) != null && (match = match[1]) != undefined){
|
499
|
-
var found = match.length, expected;
|
500
|
-
if ((expected = comment_stack.pop()) != found){
|
501
|
-
comment_stack.push(expected);
|
502
|
-
rule.next = "qstring5";
|
503
|
-
}
|
504
|
-
}
|
505
|
-
|
506
|
-
return "string";
|
507
|
-
},
|
508
|
-
regex : "(?:[^\\\\]|\\\\.)*?\\]\\={5}\\=*\\]",
|
509
|
-
next : "start"
|
510
|
-
}, {
|
511
|
-
token : "string",
|
512
|
-
merge : true,
|
513
|
-
regex : '.+'
|
514
|
-
} ]
|
515
|
-
|
516
|
-
};
|
517
|
-
|
518
|
-
}
|
519
|
-
|
520
|
-
oop.inherits(LuaHighlightRules, TextHighlightRules);
|
521
|
-
|
522
|
-
exports.LuaHighlightRules = LuaHighlightRules;
|
523
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript","ace/mode/xml","ace/mode/html","ace/tokenizer","ace/mode/markdown_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("./javascript").Mode,g=a("./xml").Mode,h=a("./html").Mode,i=a("../tokenizer").Tokenizer,j=a("./markdown_highlight_rules").MarkdownHighlightRules,k=function(){var a=new j;this.$tokenizer=new i(a.getRules()),this.$embeds=a.getEmbeds(),this.createModeDelegates({"js-":f,"xml-":g,"html-":h})};d.inherits(k,e),function(){this.getNextLineIndent=function(a,b,c){if(a=="listblock"){var d=/^((?:.+)?)([-+*][ ]+)/.exec(b);return d?(new Array(d[1].length+1)).join(" ")+d[2]:""}return this.$getIndent(b)}}.call(k.prototype),b.Mode=k}),ace.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}),ace.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:"\\/\\/.*$"},(new 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","variable.parameter","paren.rparen"],regex:"("+k+")(\\.)(prototype)(\\.)("+k+")(\\s*)(=)(\\s*)(function)?(\\s*)(\\()(.*?)(\\))"},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator","text"],regex:"("+k+")(\\.)(prototype)(\\.)("+k+")(\\s*)(=)(\\s*)"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen","variable.parameter","paren.rparen"],regex:"("+k+")(\\.)("+k+")(\\s*)(=)(\\s*)(function)?(\\s*)(\\()(.*?)(\\))"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen","variable.parameter","paren.rparen"],regex:"("+k+")(\\s*)(=)(\\s*)(function)?(\\s*)(\\()(.*?)(\\))"},{token:["storage.type","text","entity.name.function","text","paren.lparen","variable.parameter","paren.rparen"],regex:"(function)(\\s+)("+k+")(\\s*)(\\()(.*?)(\\))"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen","variable.parameter","paren.rparen"],regex:"("+k+")(\\s*)(:)(\\s*)(function)?(\\s*)(\\()(.*?)(\\))"},{token:["text","text","storage.type","text","paren.lparen","variable.parameter","paren.rparen"],regex:"(:)(\\s*)(function)?(\\s*)(\\()([^)]*)(\\))"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"keyword",regex:"(?:"+c+")\\b",next:"regex_allowed"},{token:"support.function",regex:"\\b(?:s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\\b(?=\\()"},{token:"support.function.dom",regex:"\\b(?: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:"support.function.constant",regex:"\\b(?: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:["punctuation.operator","support.function.firebug"],regex:"(\\.)(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:[{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:"constant.language.escape",regex:l},{token:"string",regex:'[^"\\\\]+'},{token:"string",regex:'"',next:"start"}],qstring:[{token:"constant.language.escape",regex:l},{token:"string",regex:"[^'\\\\]+"},{token:"string",regex:"'",next:"start"}]},this.embedRules(g,"doc-",[(new g).getEndRule("start")])};d.inherits(i,h),b.JavaScriptHighlightRules=i}),ace.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}),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}),ace.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}),ace.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)}),ace.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)}),ace.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}),ace.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}),ace.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))}}),ace.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}),ace.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)}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/tokenizer","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("./javascript").Mode,g=a("./css").Mode,h=a("../tokenizer").Tokenizer,i=a("./html_highlight_rules").HtmlHighlightRules,j=a("./behaviour/xml").XmlBehaviour,k=a("./folding/html").FoldMode,l=function(){var a=new i;this.$tokenizer=new h(a.getRules()),this.$behaviour=new j,this.$embeds=a.getEmbeds(),this.createModeDelegates({"js-":f,"css-":g}),this.foldingRules=new k};d.inherits(l,e),function(){this.toggleCommentLines=function(a,b,c,d){return 0},this.getNextLineIndent=function(a,b,c){return this.$getIndent(b)},this.checkOutdent=function(a,b,c){return!1}}.call(l.prototype),b.Mode=l}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","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("./css_highlight_rules").CssHighlightRules,h=a("./matching_brace_outdent").MatchingBraceOutdent,i=a("../worker/worker_client").WorkerClient,j=a("./folding/cstyle").FoldMode,k=function(){this.$tokenizer=new f((new g).getRules(),"i"),this.$outdent=new h,this.foldingRules=new j};d.inherits(k,e),function(){this.foldingRules="cStyle",this.getNextLineIndent=function(a,b,c){var d=this.$getIndent(b),e=this.$tokenizer.getLineTokens(b,a).tokens;if(e.length&&e[e.length-1].type=="comment")return d;var f=b.match(/^.*\{\s*$/);return f&&(d+=c),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 i(["ace"],"worker-css.js","ace/mode/css_worker","Worker");return b.attachToDocument(a.getDocument()),b.on("csslint",function(b){var c=[];b.data.forEach(function(a){c.push({row:a.line-1,column:a.col-1,text:a.message,type:a.type,lint:a})}),a.setAnnotations(c)}),b}}.call(k.prototype),b.Mode=k}),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("../lib/lang"),f=a("./text_highlight_rules").TextHighlightRules,g=function(){var a=e.arrayToMap("-moz-appearance|-moz-box-sizing|-webkit-box-sizing|-moz-outline-radius|-moz-transform|-webkit-transform|appearance|azimuth|background-attachment|background-color|background-image|background-origin|background-position|background-repeat|background|border-bottom-color|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-style|border-left-width|border-left|border-right-color|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-style|border-top-width|border-top|border-width|border|bottom|box-sizing|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|-moz-border-radius|opacity|orphans|outline-color|outline-offset|outline-radius|outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|pointer-events|position|quotes|resize|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|stress|table-layout|text-align|text-decoration|text-indent|text-shadow|text-transform|top|transform|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-spacing|z-index".split("|")),b=e.arrayToMap("rgb|rgba|url|attr|counter|counters".split("|")),c=e.arrayToMap("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|left|lighter|line-edge|line-through|line|list-item|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|super|sw-resize|table-footer-group|table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|zero".split("|")),d=e.arrayToMap("aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow".split("|")),f=e.arrayToMap("arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace".split("|")),g="\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))",h=[{token:"comment",merge:!0,regex:"\\/\\*",next:"ruleset_comment"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:["constant.numeric","keyword"],regex:"("+g+")(em|ex|px|ch|cm|mm|in|pt|pc|deg|rad|dpi|grad|ms|s|hz|khz|%)"},{token:["constant.numeric"],regex:"([0-9]+)"},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:function(e){return a.hasOwnProperty(e.toLowerCase())?"support.type":b.hasOwnProperty(e.toLowerCase())?"support.function":c.hasOwnProperty(e.toLowerCase())?"support.constant":d.hasOwnProperty(e.toLowerCase())?"support.constant.color":f.hasOwnProperty(e.toLowerCase())?"support.constant.fonts":"text"},regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"}],i=e.copyArray(h);i.unshift({token:"paren.rparen",regex:"\\}",next:"start"});var j=e.copyArray(h);j.unshift({token:"paren.rparen",regex:"\\}",next:"media"});var k=[{token:"comment",merge:!0,regex:".+"}],l=e.copyArray(k);l.unshift({token:"comment",regex:".*?\\*\\/",next:"start"});var m=e.copyArray(k);m.unshift({token:"comment",regex:".*?\\*\\/",next:"media"});var n=e.copyArray(k);n.unshift({token:"comment",regex:".*?\\*\\/",next:"ruleset"}),this.$rules={start:[{token:"comment",merge:!0,regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"string",regex:"@.*?{",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant",regex:"[a-z0-9-_]+"}],media:[{token:"comment",merge:!0,regex:"\\/\\*",next:"media_comment"},{token:"paren.lparen",regex:"\\{",next:"media_ruleset"},{token:"string",regex:"\\}",next:"start"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant",regex:"[a-z0-9-_]+"}],comment:l,ruleset:i,ruleset_comment:n,media_ruleset:j,media_comment:m}};d.inherits(g,f),b.CssHighlightRules=g}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_util","ace/mode/text_highlight_rules"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./css_highlight_rules").CssHighlightRules,f=a("./javascript_highlight_rules").JavaScriptHighlightRules,g=a("./xml_util"),h=a("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"text",merge:!0,regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:"xml_pe",regex:"<\\?.*?\\?>"},{token:"comment",merge:!0,regex:"<\\!--",next:"comment"},{token:"meta.tag",regex:"<(?=s*script\\b)",next:"script"},{token:"meta.tag",regex:"<(?=s*style\\b)",next:"style"},{token:"meta.tag",regex:"<\\/?",next:"tag"},{token:"text",regex:"\\s+"},{token:"text",regex:"[^<]+"}],cdata:[{token:"text",regex:"\\]\\]>",next:"start"},{token:"text",merge:!0,regex:"\\s+"},{token:"text",merge:!0,regex:".+"}],comment:[{token:"comment",regex:".*?-->",next:"start"},{token:"comment",merge:!0,regex:".+"}]},g.tag(this.$rules,"tag","start"),g.tag(this.$rules,"style","css-start"),g.tag(this.$rules,"script","js-start"),this.embedRules(f,"js-",[{token:"comment",regex:"\\/\\/.*(?=<\\/script>)",next:"tag"},{token:"meta.tag",regex:"<\\/(?=script)",next:"tag"}]),this.embedRules(e,"css-",[{token:"meta.tag",regex:"<\\/(?=style)",next:"tag"}])};d.inherits(i,h),b.HtmlHighlightRules=i}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","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("./mixed").FoldMode,f=a("./xml").FoldMode,g=a("./cstyle").FoldMode,h=b.FoldMode=function(){e.call(this,new f({area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1,li:1,dt:1,dd:1,p:1,rt:1,rp:1,optgroup:1,option:1,colgroup:1,td:1,th:1}),{"js-":new g,"css-":new g})};d.inherits(h,e)}),ace.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)}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules","ace/mode/html_highlight_rules","ace/mode/css_highlight_rules"],function(a,b,c){function j(a,b){return{token:"support.function",regex:"^```"+a+"\\s*$",next:b+"start"}}"use strict";var d=a("../lib/oop"),e=a("./text_highlight_rules").TextHighlightRules,f=a("./javascript_highlight_rules").JavaScriptHighlightRules,g=a("./xml_highlight_rules").XmlHighlightRules,h=a("./html_highlight_rules").HtmlHighlightRules,i=a("./css_highlight_rules").CssHighlightRules,k=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{token:"support.function",regex:"(`+)([^\\r]*?[^`])(\\1)"},{token:"support.function",regex:"^[ ]{4}.+"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.1",regex:"^\\-+(?=\\s*$)"},{token:function(a){return"markup.heading."+a.length},regex:"^#{1,6}"},j("javascript","js-"),j("xml","xml-"),j("html","html-"),j("css","css-"),{token:"support.function",regex:"^```[a-zA-Z]+\\s*$",next:"githubblock"},{token:"string",regex:"^>[ ].+$",next:"blockquote"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?\\s*)$'},{token:["text","string","text","constant","text"],regex:"(\\[)((?:[[^\\]]*\\]|[^\\[\\]])*)(\\][ ]?(?:\\n[ ]*)?\\[)(.*?)(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:'(\\[)(\\[[^\\]]*\\]|[^\\[\\]]*)(\\]\\([ \\t]*)(<?(?:(?:[^\\(]*?\\([^\\)]*?\\)\\S*?)|(?:.*?))>?)((?:[ \t]*"(?:.*?)"[ \\t]*)?)(\\))'},{token:"constant",regex:"^[ ]{0,2}(?:[ ]?\\*[ ]?){3,}\\s*$"},{token:"constant",regex:"^[ ]{0,2}(?:[ ]?\\-[ ]?){3,}\\s*$"},{token:"constant",regex:"^[ ]{0,2}(?:[ ]?\\_[ ]?){3,}\\s*$"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock"},{token:"string",regex:"([*]{2}|[_]{2}(?=\\S))([^\\r]*?\\S[*_]*)(\\1)"},{token:"string",regex:"([*]|[_](?=\\S))([^\\r]*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:"(<)((?:https?|ftp|dict):[^'\">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)"},{token:"text",regex:"[^\\*_%$`\\[#<>]+"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:".+"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string",regex:".+"}],githubblock:[{token:"support.function",regex:"^```",next:"start"},{token:"support.function",regex:".+"}]},this.embedRules(f,"js-",[{token:"support.function",regex:"^```",next:"start"}]),this.embedRules(h,"html-",[{token:"support.function",regex:"^```",next:"start"}]),this.embedRules(i,"css-",[{token:"support.function",regex:"^```",next:"start"}]),this.embedRules(g,"xml-",[{token:"support.function",regex:"^```",next:"start"}])};d.inherits(k,e),b.MarkdownHighlightRules=k})
|