ace-rails-ap 4.1.3 → 4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitmodules +1 -1
- data/Gemfile +2 -3
- data/ace-rails-ap.gemspec +0 -2
- data/lib/ace/rails/version.rb +1 -1
- data/update.sh +1 -1
- data/vendor/assets/javascripts/ace/ace.js +5192 -3414
- data/vendor/assets/javascripts/ace/ext-beautify.js +281 -288
- data/vendor/assets/javascripts/ace/ext-code_lens.js +238 -0
- data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +6 -3
- data/vendor/assets/javascripts/ace/ext-emmet.js +353 -246
- data/vendor/assets/javascripts/ace/ext-error_marker.js +6 -3
- data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +61 -38
- data/vendor/assets/javascripts/ace/ext-language_tools.js +532 -343
- data/vendor/assets/javascripts/ace/ext-linking.js +8 -5
- data/vendor/assets/javascripts/ace/ext-modelist.js +46 -12
- data/vendor/assets/javascripts/ace/ext-options.js +793 -0
- data/vendor/assets/javascripts/ace/ext-prompt.js +2783 -0
- data/vendor/assets/javascripts/ace/ext-rtl.js +122 -0
- data/vendor/assets/javascripts/ace/ext-searchbox.js +45 -40
- data/vendor/assets/javascripts/ace/ext-settings_menu.js +520 -369
- data/vendor/assets/javascripts/ace/ext-spellcheck.js +6 -4
- data/vendor/assets/javascripts/ace/ext-split.js +7 -46
- data/vendor/assets/javascripts/ace/ext-static_highlight.js +90 -22
- data/vendor/assets/javascripts/ace/ext-statusbar.js +9 -6
- data/vendor/assets/javascripts/ace/ext-textarea.js +21 -18
- data/vendor/assets/javascripts/ace/ext-themelist.js +10 -6
- data/vendor/assets/javascripts/ace/ext-whitespace.js +13 -6
- data/vendor/assets/javascripts/ace/keybinding-emacs.js +49 -61
- data/vendor/assets/javascripts/ace/keybinding-sublime.js +422 -0
- data/vendor/assets/javascripts/ace/keybinding-vim.js +620 -287
- data/vendor/assets/javascripts/ace/keybinding-vscode.js +262 -0
- data/vendor/assets/javascripts/ace/mode-abap.js +10 -3
- data/vendor/assets/javascripts/ace/mode-abc.js +14 -4
- data/vendor/assets/javascripts/ace/mode-actionscript.js +13 -5
- data/vendor/assets/javascripts/ace/mode-ada.js +54 -4
- data/vendor/assets/javascripts/ace/mode-alda.js +311 -0
- data/vendor/assets/javascripts/ace/mode-apache_conf.js +12 -5
- data/vendor/assets/javascripts/ace/mode-apex.js +457 -0
- data/vendor/assets/javascripts/ace/mode-applescript.js +11 -4
- data/vendor/assets/javascripts/ace/mode-aql.js +102 -0
- data/vendor/assets/javascripts/ace/mode-asciidoc.js +9 -2
- data/vendor/assets/javascripts/ace/mode-asl.js +422 -0
- data/vendor/assets/javascripts/ace/mode-assembly_x86.js +11 -4
- data/vendor/assets/javascripts/ace/mode-autohotkey.js +17 -8
- data/vendor/assets/javascripts/ace/mode-batchfile.js +12 -5
- data/vendor/assets/javascripts/ace/mode-c9search.js +9 -3
- data/vendor/assets/javascripts/ace/mode-c_cpp.js +23 -7
- data/vendor/assets/javascripts/ace/mode-cirru.js +11 -4
- data/vendor/assets/javascripts/ace/mode-clojure.js +9 -1
- data/vendor/assets/javascripts/ace/mode-cobol.js +8 -1
- data/vendor/assets/javascripts/ace/mode-coffee.js +12 -4
- data/vendor/assets/javascripts/ace/mode-coldfusion.js +163 -134
- data/vendor/assets/javascripts/ace/mode-crystal.js +642 -0
- data/vendor/assets/javascripts/ace/mode-csharp.js +13 -6
- data/vendor/assets/javascripts/ace/mode-csound_document.js +4036 -0
- data/vendor/assets/javascripts/ace/mode-csound_orchestra.js +2966 -0
- data/vendor/assets/javascripts/ace/mode-csound_score.js +462 -0
- data/vendor/assets/javascripts/ace/mode-csp.js +59 -0
- data/vendor/assets/javascripts/ace/mode-css.js +48 -27
- data/vendor/assets/javascripts/ace/mode-curly.js +162 -133
- data/vendor/assets/javascripts/ace/mode-d.js +12 -5
- data/vendor/assets/javascripts/ace/mode-dart.js +46 -20
- data/vendor/assets/javascripts/ace/mode-diff.js +11 -3
- data/vendor/assets/javascripts/ace/mode-django.js +164 -134
- data/vendor/assets/javascripts/ace/mode-dockerfile.js +12 -4
- data/vendor/assets/javascripts/ace/mode-dot.js +11 -4
- data/vendor/assets/javascripts/ace/mode-drools.js +46 -5
- data/vendor/assets/javascripts/ace/mode-edifact.js +166 -0
- data/vendor/assets/javascripts/ace/mode-eiffel.js +8 -1
- data/vendor/assets/javascripts/ace/mode-ejs.js +832 -298
- data/vendor/assets/javascripts/ace/mode-elixir.js +11 -4
- data/vendor/assets/javascripts/ace/mode-elm.js +10 -3
- data/vendor/assets/javascripts/ace/mode-erlang.js +13 -5
- data/vendor/assets/javascripts/ace/mode-forth.js +12 -5
- data/vendor/assets/javascripts/ace/mode-fortran.js +10 -3
- data/vendor/assets/javascripts/ace/mode-fsharp.js +316 -0
- data/vendor/assets/javascripts/ace/{mode-mipsassembler.js → mode-fsl.js} +91 -28
- data/vendor/assets/javascripts/ace/mode-ftl.js +23 -12
- data/vendor/assets/javascripts/ace/mode-gcode.js +8 -1
- data/vendor/assets/javascripts/ace/mode-gherkin.js +9 -4
- data/vendor/assets/javascripts/ace/mode-gitignore.js +8 -1
- data/vendor/assets/javascripts/ace/mode-glsl.js +24 -8
- data/vendor/assets/javascripts/ace/mode-gobstones.js +267 -99
- data/vendor/assets/javascripts/ace/mode-golang.js +11 -4
- data/vendor/assets/javascripts/ace/mode-graphqlschema.js +11 -3
- data/vendor/assets/javascripts/ace/mode-groovy.js +14 -5
- data/vendor/assets/javascripts/ace/mode-haml.js +442 -116
- data/vendor/assets/javascripts/ace/mode-handlebars.js +162 -133
- data/vendor/assets/javascripts/ace/mode-haskell.js +14 -6
- data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +8 -1
- data/vendor/assets/javascripts/ace/mode-haxe.js +11 -4
- data/vendor/assets/javascripts/ace/mode-hjson.js +13 -6
- data/vendor/assets/javascripts/ace/mode-html.js +162 -133
- data/vendor/assets/javascripts/ace/mode-html_elixir.js +165 -136
- data/vendor/assets/javascripts/ace/mode-html_ruby.js +832 -298
- data/vendor/assets/javascripts/ace/mode-ini.js +8 -1
- data/vendor/assets/javascripts/ace/mode-io.js +14 -12
- data/vendor/assets/javascripts/ace/mode-jack.js +10 -3
- data/vendor/assets/javascripts/ace/mode-jade.js +272 -376
- data/vendor/assets/javascripts/ace/mode-java.js +110 -7
- data/vendor/assets/javascripts/ace/mode-javascript.js +14 -5
- data/vendor/assets/javascripts/ace/mode-json.js +13 -3
- data/vendor/assets/javascripts/ace/mode-json5.js +360 -0
- data/vendor/assets/javascripts/ace/mode-jsoniq.js +25 -12
- data/vendor/assets/javascripts/ace/mode-jsp.js +60 -15
- data/vendor/assets/javascripts/ace/mode-jssm.js +325 -0
- data/vendor/assets/javascripts/ace/mode-jsx.js +11 -4
- data/vendor/assets/javascripts/ace/mode-julia.js +12 -5
- data/vendor/assets/javascripts/ace/mode-kotlin.js +18 -7
- data/vendor/assets/javascripts/ace/mode-latex.js +87 -15
- data/vendor/assets/javascripts/ace/mode-less.js +47 -27
- data/vendor/assets/javascripts/ace/mode-liquid.js +2030 -472
- data/vendor/assets/javascripts/ace/mode-lisp.js +9 -2
- data/vendor/assets/javascripts/ace/mode-livescript.js +10 -2
- data/vendor/assets/javascripts/ace/mode-logiql.js +10 -3
- data/vendor/assets/javascripts/ace/mode-logtalk.js +352 -0
- data/vendor/assets/javascripts/ace/mode-lsl.js +11 -3
- data/vendor/assets/javascripts/ace/mode-lua.js +40 -12
- data/vendor/assets/javascripts/ace/mode-luapage.js +194 -144
- data/vendor/assets/javascripts/ace/mode-lucene.js +106 -22
- data/vendor/assets/javascripts/ace/mode-makefile.js +11 -3
- data/vendor/assets/javascripts/ace/mode-markdown.js +530 -201
- data/vendor/assets/javascripts/ace/mode-mask.js +101 -84
- data/vendor/assets/javascripts/ace/mode-matlab.js +8 -1
- data/vendor/assets/javascripts/ace/mode-maze.js +11 -3
- data/vendor/assets/javascripts/ace/mode-mediawiki.js +592 -0
- data/vendor/assets/javascripts/ace/mode-mel.js +11 -4
- data/vendor/assets/javascripts/ace/mode-mixal.js +122 -0
- data/vendor/assets/javascripts/ace/mode-mushcode.js +9 -2
- data/vendor/assets/javascripts/ace/mode-mysql.js +11 -4
- data/vendor/assets/javascripts/ace/mode-nginx.js +298 -0
- data/vendor/assets/javascripts/ace/mode-nim.js +363 -0
- data/vendor/assets/javascripts/ace/mode-nix.js +23 -7
- data/vendor/assets/javascripts/ace/mode-nsis.js +15 -8
- data/vendor/assets/javascripts/ace/mode-nunjucks.js +2698 -0
- data/vendor/assets/javascripts/ace/mode-objectivec.js +23 -8
- data/vendor/assets/javascripts/ace/mode-ocaml.js +8 -1
- data/vendor/assets/javascripts/ace/mode-pascal.js +92 -67
- data/vendor/assets/javascripts/ace/mode-perl.js +11 -3
- data/vendor/assets/javascripts/ace/mode-perl6.js +593 -0
- data/vendor/assets/javascripts/ace/mode-pgsql.js +314 -71
- data/vendor/assets/javascripts/ace/mode-php.js +1042 -995
- data/vendor/assets/javascripts/ace/mode-php_laravel_blade.js +13104 -0
- data/vendor/assets/javascripts/ace/mode-pig.js +13 -6
- data/vendor/assets/javascripts/ace/mode-plain_text.js +8 -1
- data/vendor/assets/javascripts/ace/mode-powershell.js +10 -3
- data/vendor/assets/javascripts/ace/mode-praat.js +17 -7
- data/vendor/assets/javascripts/ace/mode-prisma.js +489 -0
- data/vendor/assets/javascripts/ace/mode-prolog.js +12 -5
- data/vendor/assets/javascripts/ace/mode-properties.js +8 -1
- data/vendor/assets/javascripts/ace/mode-protobuf.js +23 -7
- data/vendor/assets/javascripts/ace/mode-puppet.js +368 -0
- data/vendor/assets/javascripts/ace/mode-python.js +306 -63
- data/vendor/assets/javascripts/ace/mode-qml.js +381 -0
- data/vendor/assets/javascripts/ace/mode-r.js +15 -4
- data/vendor/assets/javascripts/ace/mode-razor.js +166 -136
- data/vendor/assets/javascripts/ace/mode-rdoc.js +41 -3
- data/vendor/assets/javascripts/ace/mode-red.js +450 -0
- data/vendor/assets/javascripts/ace/mode-redshift.js +360 -0
- data/vendor/assets/javascripts/ace/mode-rhtml.js +162 -133
- data/vendor/assets/javascripts/ace/mode-rst.js +9 -1
- data/vendor/assets/javascripts/ace/mode-ruby.js +678 -166
- data/vendor/assets/javascripts/ace/mode-rust.js +16 -7
- data/vendor/assets/javascripts/ace/mode-sass.js +211 -116
- data/vendor/assets/javascripts/ace/mode-scad.js +11 -4
- data/vendor/assets/javascripts/ace/mode-scala.js +14 -5
- data/vendor/assets/javascripts/ace/mode-scheme.js +9 -2
- data/vendor/assets/javascripts/ace/mode-scss.js +412 -125
- data/vendor/assets/javascripts/ace/mode-sh.js +12 -4
- data/vendor/assets/javascripts/ace/mode-sjs.js +16 -7
- data/vendor/assets/javascripts/ace/mode-slim.js +5240 -0
- data/vendor/assets/javascripts/ace/mode-smarty.js +164 -135
- data/vendor/assets/javascripts/ace/mode-snippets.js +24 -16
- data/vendor/assets/javascripts/ace/mode-soy_template.js +164 -135
- data/vendor/assets/javascripts/ace/mode-space.js +8 -1
- data/vendor/assets/javascripts/ace/mode-sparql.js +13 -6
- data/vendor/assets/javascripts/ace/mode-sql.js +10 -2
- data/vendor/assets/javascripts/ace/mode-sqlserver.js +13 -5
- data/vendor/assets/javascripts/ace/mode-stylus.js +20 -10
- data/vendor/assets/javascripts/ace/mode-svg.js +27 -13
- data/vendor/assets/javascripts/ace/mode-swift.js +21 -8
- data/vendor/assets/javascripts/ace/mode-tcl.js +14 -3
- data/vendor/assets/javascripts/ace/mode-terraform.js +400 -0
- data/vendor/assets/javascripts/ace/mode-tex.js +9 -1
- data/vendor/assets/javascripts/ace/mode-text.js +8 -0
- data/vendor/assets/javascripts/ace/mode-textile.js +9 -1
- data/vendor/assets/javascripts/ace/mode-toml.js +9 -2
- data/vendor/assets/javascripts/ace/mode-tsx.js +28 -31
- data/vendor/assets/javascripts/ace/mode-turtle.js +13 -6
- data/vendor/assets/javascripts/ace/mode-twig.js +163 -134
- data/vendor/assets/javascripts/ace/mode-typescript.js +28 -31
- data/vendor/assets/javascripts/ace/mode-vala.js +14 -6
- data/vendor/assets/javascripts/ace/mode-vbscript.js +453 -17
- data/vendor/assets/javascripts/ace/mode-velocity.js +163 -133
- data/vendor/assets/javascripts/ace/mode-verilog.js +19 -5
- data/vendor/assets/javascripts/ace/mode-vhdl.js +13 -7
- data/vendor/assets/javascripts/ace/mode-visualforce.js +2640 -0
- data/vendor/assets/javascripts/ace/mode-wollok.js +17 -8
- data/vendor/assets/javascripts/ace/mode-xml.js +21 -9
- data/vendor/assets/javascripts/ace/mode-xquery.js +25 -12
- data/vendor/assets/javascripts/ace/mode-yaml.js +59 -18
- data/vendor/assets/javascripts/ace/mode-zeek.js +539 -0
- data/vendor/assets/javascripts/ace/snippets/abap.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/abc.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/actionscript.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/ada.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/alda.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/apache_conf.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/apex.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/applescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/aql.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/asciidoc.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/asl.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/autohotkey.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/batchfile.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/c9search.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/c_cpp.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/cirru.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/clojure.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/cobol.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/coffee.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/coldfusion.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/crystal.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/csharp.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/csound_document.js +24 -0
- data/vendor/assets/javascripts/ace/snippets/csound_orchestra.js +61 -0
- data/vendor/assets/javascripts/ace/snippets/csound_score.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/csp.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/css.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/curly.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/d.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/dart.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/diff.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/django.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/dockerfile.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/dot.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/drools.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/edifact.js +254 -0
- data/vendor/assets/javascripts/ace/snippets/eiffel.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ejs.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/elixir.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/elm.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/erlang.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/forth.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/fortran.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/fsharp.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/fsl.js +14 -0
- data/vendor/assets/javascripts/ace/snippets/ftl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gcode.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gherkin.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gitignore.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/glsl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gobstones.js +1701 -24
- data/vendor/assets/javascripts/ace/snippets/golang.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/graphqlschema.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/groovy.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haml.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/handlebars.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haskell.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haxe.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/hjson.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/html.js +36 -2
- data/vendor/assets/javascripts/ace/snippets/html_elixir.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/html_ruby.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ini.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/io.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jack.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/jade.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/java.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/javascript.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/json.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/json5.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/jsoniq.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jsp.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jssm.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/jsx.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/julia.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/kotlin.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/latex.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/less.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/liquid.js +890 -2
- data/vendor/assets/javascripts/ace/snippets/lisp.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/livescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/logiql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/logtalk.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/lsl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/lua.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/luapage.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/lucene.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/makefile.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/markdown.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/mask.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/matlab.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/maze.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/mediawiki.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/mel.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/mixal.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/mushcode.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/mysql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nginx.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/nim.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/nix.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nsis.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nunjucks.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/objectivec.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ocaml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/pascal.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/perl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/perl6.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/pgsql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/php.js +49 -36
- data/vendor/assets/javascripts/ace/snippets/php_laravel_blade.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/pig.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/plain_text.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/powershell.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/praat.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/prisma.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/prolog.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/properties.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/protobuf.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/puppet.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/python.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/qml.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/r.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/razor.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/rdoc.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/red.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/redshift.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/rhtml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/rst.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/ruby.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/rust.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sass.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scad.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scala.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scheme.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scss.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sh.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/sjs.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/slim.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/smarty.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/snippets.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/soy_template.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/space.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sparql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sql.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/sqlserver.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/stylus.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/svg.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/swift.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/tcl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/terraform.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/tex.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/text.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/textile.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/toml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/tsx.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/turtle.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/twig.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/typescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/vala.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/vbscript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/velocity.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/verilog.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/vhdl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/visualforce.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/wollok.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/xml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/xquery.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/yaml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/zeek.js +9 -0
- data/vendor/assets/javascripts/ace/theme-ambiance.js +11 -8
- data/vendor/assets/javascripts/ace/theme-chaos.js +9 -2
- data/vendor/assets/javascripts/ace/theme-chrome.js +8 -1
- data/vendor/assets/javascripts/ace/theme-clouds.js +8 -1
- data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +8 -1
- data/vendor/assets/javascripts/ace/theme-cobalt.js +8 -1
- data/vendor/assets/javascripts/ace/theme-crimson_editor.js +8 -1
- data/vendor/assets/javascripts/ace/theme-dawn.js +8 -1
- data/vendor/assets/javascripts/ace/theme-dracula.js +135 -0
- data/vendor/assets/javascripts/ace/theme-dreamweaver.js +8 -1
- data/vendor/assets/javascripts/ace/theme-eclipse.js +8 -1
- data/vendor/assets/javascripts/ace/theme-github.js +8 -1
- data/vendor/assets/javascripts/ace/theme-gob.js +8 -1
- data/vendor/assets/javascripts/ace/theme-gruvbox.js +8 -1
- data/vendor/assets/javascripts/ace/theme-idle_fingers.js +8 -1
- data/vendor/assets/javascripts/ace/theme-iplastic.js +8 -1
- data/vendor/assets/javascripts/ace/theme-katzenmilch.js +8 -1
- data/vendor/assets/javascripts/ace/theme-kr_theme.js +8 -1
- data/vendor/assets/javascripts/ace/theme-kuroir.js +8 -1
- data/vendor/assets/javascripts/ace/theme-merbivore.js +8 -1
- data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +8 -1
- data/vendor/assets/javascripts/ace/theme-mono_industrial.js +8 -1
- data/vendor/assets/javascripts/ace/theme-monokai.js +8 -1
- data/vendor/assets/javascripts/ace/theme-nord_dark.js +102 -0
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +8 -1
- data/vendor/assets/javascripts/ace/theme-solarized_dark.js +8 -1
- data/vendor/assets/javascripts/ace/theme-solarized_light.js +9 -2
- data/vendor/assets/javascripts/ace/theme-sqlserver.js +8 -1
- data/vendor/assets/javascripts/ace/theme-terminal.js +8 -1
- data/vendor/assets/javascripts/ace/theme-textmate.js +9 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +8 -1
- data/vendor/assets/javascripts/ace/theme-twilight.js +8 -1
- data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +8 -1
- data/vendor/assets/javascripts/ace/theme-xcode.js +8 -1
- data/vendor/assets/javascripts/ace/worker-base.js +1421 -0
- data/vendor/assets/javascripts/ace/worker-coffee.js +55 -742
- data/vendor/assets/javascripts/ace/worker-css.js +66 -739
- data/vendor/assets/javascripts/ace/worker-html.js +55 -738
- data/vendor/assets/javascripts/ace/worker-javascript.js +6693 -4209
- data/vendor/assets/javascripts/ace/worker-json.js +56 -737
- data/vendor/assets/javascripts/ace/worker-lua.js +56 -738
- data/vendor/assets/javascripts/ace/worker-php.js +897 -1512
- data/vendor/assets/javascripts/ace/worker-xml.js +129 -808
- data/vendor/assets/javascripts/ace/worker-xquery.js +54 -737
- metadata +74 -19
- data/vendor/assets/javascripts/ace/ext-chromevox.js +0 -540
- data/vendor/assets/javascripts/ace/ext-old_ie.js +0 -502
- data/vendor/assets/javascripts/ace/mode-bash.js +0 -247
- data/vendor/assets/javascripts/ace/mode-bro.js +0 -327
- data/vendor/assets/javascripts/ace/mode-lean.js +0 -281
- data/vendor/assets/javascripts/ace/mode-live_script.js +0 -481
- data/vendor/assets/javascripts/ace/mode-mips_assembler.js +0 -235
- data/vendor/assets/javascripts/ace/mode-swig.js +0 -1099
- data/vendor/assets/javascripts/ace/snippets/bro.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/lean.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/live_script.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/swig.js +0 -7
@@ -1,281 +0,0 @@
|
|
1
|
-
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var oop = require("../lib/oop");
|
5
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
6
|
-
|
7
|
-
var DocCommentHighlightRules = function() {
|
8
|
-
this.$rules = {
|
9
|
-
"start" : [ {
|
10
|
-
token : "comment.doc.tag",
|
11
|
-
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
12
|
-
},
|
13
|
-
DocCommentHighlightRules.getTagRule(),
|
14
|
-
{
|
15
|
-
defaultToken : "comment.doc",
|
16
|
-
caseInsensitive: true
|
17
|
-
}]
|
18
|
-
};
|
19
|
-
};
|
20
|
-
|
21
|
-
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
22
|
-
|
23
|
-
DocCommentHighlightRules.getTagRule = function(start) {
|
24
|
-
return {
|
25
|
-
token : "comment.doc.tag.storage.type",
|
26
|
-
regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
27
|
-
};
|
28
|
-
}
|
29
|
-
|
30
|
-
DocCommentHighlightRules.getStartRule = function(start) {
|
31
|
-
return {
|
32
|
-
token : "comment.doc", // doc comment
|
33
|
-
regex : "\\/\\*(?=\\*)",
|
34
|
-
next : start
|
35
|
-
};
|
36
|
-
};
|
37
|
-
|
38
|
-
DocCommentHighlightRules.getEndRule = function (start) {
|
39
|
-
return {
|
40
|
-
token : "comment.doc", // closing comment
|
41
|
-
regex : "\\*\\/",
|
42
|
-
next : start
|
43
|
-
};
|
44
|
-
};
|
45
|
-
|
46
|
-
|
47
|
-
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
48
|
-
|
49
|
-
});
|
50
|
-
|
51
|
-
define("ace/mode/lean_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
52
|
-
"use strict";
|
53
|
-
|
54
|
-
var oop = require("../lib/oop");
|
55
|
-
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
56
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
57
|
-
|
58
|
-
var leanHighlightRules = function() {
|
59
|
-
|
60
|
-
var keywordControls = (
|
61
|
-
[ "add_rewrite", "alias", "as", "assume", "attribute",
|
62
|
-
"begin", "by", "calc", "calc_refl", "calc_subst", "calc_trans", "check",
|
63
|
-
"classes", "coercions", "conjecture", "constants", "context",
|
64
|
-
"corollary", "else", "end", "environment", "eval", "example",
|
65
|
-
"exists", "exit", "export", "exposing", "extends", "fields", "find_decl",
|
66
|
-
"forall", "from", "fun", "have", "help", "hiding", "if",
|
67
|
-
"import", "in", "infix", "infixl", "infixr", "instances",
|
68
|
-
"let", "local", "match", "namespace", "notation", "obtain", "obtains",
|
69
|
-
"omit", "opaque", "open", "options", "parameter", "parameters", "postfix",
|
70
|
-
"precedence", "prefix", "premise", "premises", "print", "private", "proof",
|
71
|
-
"protected", "qed", "raw", "renaming", "section", "set_option",
|
72
|
-
"show", "tactic_hint", "take", "then", "universe",
|
73
|
-
"universes", "using", "variable", "variables", "with"].join("|")
|
74
|
-
);
|
75
|
-
|
76
|
-
var nameProviders = (
|
77
|
-
["inductive", "structure", "record", "theorem", "axiom",
|
78
|
-
"axioms", "lemma", "hypothesis", "definition", "constant"].join("|")
|
79
|
-
);
|
80
|
-
|
81
|
-
var storageType = (
|
82
|
-
["Prop", "Type", "Type'", "Type₊", "Type₁", "Type₂", "Type₃"].join("|")
|
83
|
-
);
|
84
|
-
|
85
|
-
var storageModifiers = (
|
86
|
-
"\\[(" +
|
87
|
-
["abbreviations", "all-transparent", "begin-end-hints", "class", "classes", "coercion",
|
88
|
-
"coercions", "declarations", "decls", "instance", "irreducible",
|
89
|
-
"multiple-instances", "notation", "notations", "parsing-only", "persistent",
|
90
|
-
"reduce-hints", "reducible", "tactic-hints", "visible", "wf", "whnf"
|
91
|
-
].join("|") +
|
92
|
-
")\\]"
|
93
|
-
);
|
94
|
-
|
95
|
-
var keywordOperators = (
|
96
|
-
[].join("|")
|
97
|
-
);
|
98
|
-
|
99
|
-
var keywordMapper = this.$keywords = this.createKeywordMapper({
|
100
|
-
"keyword.control" : keywordControls,
|
101
|
-
"storage.type" : storageType,
|
102
|
-
"keyword.operator" : keywordOperators,
|
103
|
-
"variable.language": "sorry"
|
104
|
-
}, "identifier");
|
105
|
-
|
106
|
-
var identifierRe = "[A-Za-z_\u03b1-\u03ba\u03bc-\u03fb\u1f00-\u1ffe\u2100-\u214f][A-Za-z0-9_'\u03b1-\u03ba\u03bc-\u03fb\u1f00-\u1ffe\u2070-\u2079\u207f-\u2089\u2090-\u209c\u2100-\u214f]*";
|
107
|
-
var operatorRe = new RegExp(["#", "@", "->", "∼", "↔", "/", "==", "=", ":=", "<->",
|
108
|
-
"/\\", "\\/", "∧", "∨", "≠", "<", ">", "≤", "≥", "¬",
|
109
|
-
"<=", ">=", "⁻¹", "⬝", "▸", "\\+", "\\*", "-", "/",
|
110
|
-
"λ", "→", "∃", "∀", ":="].join("|"));
|
111
|
-
|
112
|
-
this.$rules = {
|
113
|
-
"start" : [
|
114
|
-
{
|
115
|
-
token : "comment", // single line comment "--"
|
116
|
-
regex : "--.*$"
|
117
|
-
},
|
118
|
-
DocCommentHighlightRules.getStartRule("doc-start"),
|
119
|
-
{
|
120
|
-
token : "comment", // multi line comment "/-"
|
121
|
-
regex : "\\/-",
|
122
|
-
next : "comment"
|
123
|
-
}, {
|
124
|
-
stateName: "qqstring",
|
125
|
-
token : "string.start", regex : '"', next : [
|
126
|
-
{token : "string.end", regex : '"', next : "start"},
|
127
|
-
{token : "constant.language.escape", regex : /\\[n"\\]/},
|
128
|
-
{defaultToken: "string"}
|
129
|
-
]
|
130
|
-
}, {
|
131
|
-
token : "keyword.control", regex : nameProviders, next : [
|
132
|
-
{token : "variable.language", regex : identifierRe, next : "start"} ]
|
133
|
-
}, {
|
134
|
-
token : "constant.numeric", // hex
|
135
|
-
regex : "0[xX][0-9a-fA-F]+(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
|
136
|
-
}, {
|
137
|
-
token : "constant.numeric", // float
|
138
|
-
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
|
139
|
-
}, {
|
140
|
-
token : "storage.modifier",
|
141
|
-
regex : storageModifiers
|
142
|
-
}, {
|
143
|
-
token : keywordMapper,
|
144
|
-
regex : identifierRe
|
145
|
-
}, {
|
146
|
-
token : "operator",
|
147
|
-
regex : operatorRe
|
148
|
-
}, {
|
149
|
-
token : "punctuation.operator",
|
150
|
-
regex : "\\?|\\:|\\,|\\;|\\."
|
151
|
-
}, {
|
152
|
-
token : "paren.lparen",
|
153
|
-
regex : "[[({]"
|
154
|
-
}, {
|
155
|
-
token : "paren.rparen",
|
156
|
-
regex : "[\\])}]"
|
157
|
-
}, {
|
158
|
-
token : "text",
|
159
|
-
regex : "\\s+"
|
160
|
-
}
|
161
|
-
],
|
162
|
-
"comment" : [ {token: "comment", regex: "-/", next: "start"},
|
163
|
-
{defaultToken: "comment"} ]
|
164
|
-
};
|
165
|
-
|
166
|
-
this.embedRules(DocCommentHighlightRules, "doc-",
|
167
|
-
[ DocCommentHighlightRules.getEndRule("start") ]);
|
168
|
-
this.normalizeRules();
|
169
|
-
};
|
170
|
-
|
171
|
-
oop.inherits(leanHighlightRules, TextHighlightRules);
|
172
|
-
|
173
|
-
exports.leanHighlightRules = leanHighlightRules;
|
174
|
-
});
|
175
|
-
|
176
|
-
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
177
|
-
"use strict";
|
178
|
-
|
179
|
-
var Range = require("../range").Range;
|
180
|
-
|
181
|
-
var MatchingBraceOutdent = function() {};
|
182
|
-
|
183
|
-
(function() {
|
184
|
-
|
185
|
-
this.checkOutdent = function(line, input) {
|
186
|
-
if (! /^\s+$/.test(line))
|
187
|
-
return false;
|
188
|
-
|
189
|
-
return /^\s*\}/.test(input);
|
190
|
-
};
|
191
|
-
|
192
|
-
this.autoOutdent = function(doc, row) {
|
193
|
-
var line = doc.getLine(row);
|
194
|
-
var match = line.match(/^(\s*\})/);
|
195
|
-
|
196
|
-
if (!match) return 0;
|
197
|
-
|
198
|
-
var column = match[1].length;
|
199
|
-
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
200
|
-
|
201
|
-
if (!openBracePos || openBracePos.row == row) return 0;
|
202
|
-
|
203
|
-
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
204
|
-
doc.replace(new Range(row, 0, row, column-1), indent);
|
205
|
-
};
|
206
|
-
|
207
|
-
this.$getIndent = function(line) {
|
208
|
-
return line.match(/^\s*/)[0];
|
209
|
-
};
|
210
|
-
|
211
|
-
}).call(MatchingBraceOutdent.prototype);
|
212
|
-
|
213
|
-
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
214
|
-
});
|
215
|
-
|
216
|
-
define("ace/mode/lean",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/lean_highlight_rules","ace/mode/matching_brace_outdent","ace/range"], function(require, exports, module) {
|
217
|
-
"use strict";
|
218
|
-
|
219
|
-
var oop = require("../lib/oop");
|
220
|
-
var TextMode = require("./text").Mode;
|
221
|
-
var leanHighlightRules = require("./lean_highlight_rules").leanHighlightRules;
|
222
|
-
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
223
|
-
var Range = require("../range").Range;
|
224
|
-
|
225
|
-
var Mode = function() {
|
226
|
-
this.HighlightRules = leanHighlightRules;
|
227
|
-
|
228
|
-
this.$outdent = new MatchingBraceOutdent();
|
229
|
-
};
|
230
|
-
oop.inherits(Mode, TextMode);
|
231
|
-
|
232
|
-
(function() {
|
233
|
-
|
234
|
-
this.lineCommentStart = "--";
|
235
|
-
this.blockComment = {start: "/-", end: "-/"};
|
236
|
-
|
237
|
-
this.getNextLineIndent = function(state, line, tab) {
|
238
|
-
var indent = this.$getIndent(line);
|
239
|
-
|
240
|
-
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
|
241
|
-
var tokens = tokenizedLine.tokens;
|
242
|
-
var endState = tokenizedLine.state;
|
243
|
-
|
244
|
-
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
245
|
-
return indent;
|
246
|
-
}
|
247
|
-
|
248
|
-
if (state == "start") {
|
249
|
-
var match = line.match(/^.*[\{\(\[]\s*$/);
|
250
|
-
if (match) {
|
251
|
-
indent += tab;
|
252
|
-
}
|
253
|
-
} else if (state == "doc-start") {
|
254
|
-
if (endState == "start") {
|
255
|
-
return "";
|
256
|
-
}
|
257
|
-
var match = line.match(/^\s*(\/?)\*/);
|
258
|
-
if (match) {
|
259
|
-
if (match[1]) {
|
260
|
-
indent += " ";
|
261
|
-
}
|
262
|
-
indent += "- ";
|
263
|
-
}
|
264
|
-
}
|
265
|
-
|
266
|
-
return indent;
|
267
|
-
};
|
268
|
-
|
269
|
-
this.checkOutdent = function(state, line, input) {
|
270
|
-
return this.$outdent.checkOutdent(line, input);
|
271
|
-
};
|
272
|
-
|
273
|
-
this.autoOutdent = function(state, doc, row) {
|
274
|
-
this.$outdent.autoOutdent(doc, row);
|
275
|
-
};
|
276
|
-
|
277
|
-
this.$id = "ace/mode/lean";
|
278
|
-
}).call(Mode.prototype);
|
279
|
-
|
280
|
-
exports.Mode = Mode;
|
281
|
-
});
|
@@ -1,481 +0,0 @@
|
|
1
|
-
define("ace/mode/live_script_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var oop = require("../lib/oop");
|
5
|
-
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
6
|
-
|
7
|
-
var LiveScriptHighlightRules = function() {
|
8
|
-
|
9
|
-
this.$rules = { start:
|
10
|
-
[ { token: 'punctuation.definition.comment.livescript',
|
11
|
-
regex: '\\/\\*',
|
12
|
-
push:
|
13
|
-
[ { token: 'punctuation.definition.comment.livescript',
|
14
|
-
regex: '\\*\\/',
|
15
|
-
next: 'pop' },
|
16
|
-
{ token: 'storage.type.annotation.livescriptscript',
|
17
|
-
regex: '@\\w*' },
|
18
|
-
{ defaultToken: 'comment.block.livescript' } ] },
|
19
|
-
{ token:
|
20
|
-
[ 'punctuation.definition.comment.livescript',
|
21
|
-
'comment.line.number-sign.livescript' ],
|
22
|
-
regex: '(#)(?!\\{)(.*$)' },
|
23
|
-
{ token:
|
24
|
-
[ 'variable.parameter.function.livescript',
|
25
|
-
'meta.inline.function.livescript',
|
26
|
-
'storage.type.function.livescript',
|
27
|
-
'meta.inline.function.livescript',
|
28
|
-
'variable.parameter.function.livescript',
|
29
|
-
'meta.inline.function.livescript',
|
30
|
-
'storage.type.function.livescript' ],
|
31
|
-
regex: '(\\s*\\!?\\(\\s*[^()]*?\\))(\\s*)(!?[~-]{1,2}>)|(\\s*\\!?)(\\(?[^()]*?\\)?)(\\s*)(<[~-]{1,2}!?)',
|
32
|
-
comment: 'match stuff like: a -> … ' },
|
33
|
-
{ token:
|
34
|
-
[ 'keyword.operator.new.livescript',
|
35
|
-
'meta.class.instance.constructor',
|
36
|
-
'entity.name.type.instance.livescript' ],
|
37
|
-
regex: '(new)(\\s+)(\\w+(?:\\.\\w*)*)' },
|
38
|
-
{ token: 'keyword.illegal.livescript',
|
39
|
-
regex: '\\bp(?:ackage|r(?:ivate|otected)|ublic)|interface|enum|static|yield\\b' },
|
40
|
-
{ token: 'punctuation.definition.string.begin.livescript',
|
41
|
-
regex: '\'\'\'',
|
42
|
-
push:
|
43
|
-
[ { token: 'punctuation.definition.string.end.livescript',
|
44
|
-
regex: '\'\'\'',
|
45
|
-
next: 'pop' },
|
46
|
-
{ defaultToken: 'string.quoted.heredoc.livescript' } ] },
|
47
|
-
{ token: 'punctuation.definition.string.begin.livescript',
|
48
|
-
regex: '"""',
|
49
|
-
push:
|
50
|
-
[ { token: 'punctuation.definition.string.end.livescript',
|
51
|
-
regex: '"""',
|
52
|
-
next: 'pop' },
|
53
|
-
{ token: 'constant.character.escape.livescript',
|
54
|
-
regex: '\\\\.' },
|
55
|
-
{ include: '#interpolated_livescript' },
|
56
|
-
{ defaultToken: 'string.quoted.double.heredoc.livescript' } ] },
|
57
|
-
{ token: 'punctuation.definition.string.begin.livescript',
|
58
|
-
regex: '``',
|
59
|
-
push:
|
60
|
-
[ { token: 'punctuation.definition.string.end.livescript',
|
61
|
-
regex: '``',
|
62
|
-
next: 'pop' },
|
63
|
-
{ token: 'constant.character.escape.livescript',
|
64
|
-
regex: '\\\\(?:x[\\da-fA-F]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)' },
|
65
|
-
{ defaultToken: 'string.quoted.script.livescript' } ] },
|
66
|
-
{ token: 'string.array-literal.livescript',
|
67
|
-
regex: '<\\[',
|
68
|
-
push:
|
69
|
-
[ { token: 'string.array-literal.livescript',
|
70
|
-
regex: '\\]>',
|
71
|
-
next: 'pop' },
|
72
|
-
{ defaultToken: 'string.array-literal.livescript' } ] },
|
73
|
-
{ token: 'string.regexp.livescript',
|
74
|
-
regex: '/{2}(?![\\s=/*+{}?]).*?[^\\\\]/[igmy]{0,4}(?![a-zA-Z0-9])/{2}' },
|
75
|
-
{ token: 'string.regexp.livescript',
|
76
|
-
regex: '/{2}$',
|
77
|
-
push:
|
78
|
-
[ { token: 'string.regexp.livescript',
|
79
|
-
regex: '/{2}[imgy]{0,4}',
|
80
|
-
next: 'pop' },
|
81
|
-
{ include: '#embedded_spaced_comment' },
|
82
|
-
{ include: '#interpolated_livescript' },
|
83
|
-
{ defaultToken: 'string.regexp.livescript' } ] },
|
84
|
-
{ token: 'string.regexp.livescript',
|
85
|
-
regex: '/{2}',
|
86
|
-
push:
|
87
|
-
[ { token: 'string.regexp.livescript',
|
88
|
-
regex: '/{2}[imgy]{0,4}',
|
89
|
-
next: 'pop' },
|
90
|
-
{ token: 'constant.character.escape.livescript',
|
91
|
-
regex: '\\\\(?:x[\\da-fA-F]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)' },
|
92
|
-
{ include: '#interpolated_livescript' },
|
93
|
-
{ defaultToken: 'string.regexp.livescript' } ] },
|
94
|
-
{ token: 'string.regexp.livescript',
|
95
|
-
regex: '/(?![\\s=/*+{}?]).*?[^\\\\]/[igmy]{0,4}(?![a-zA-Z0-9])' },
|
96
|
-
{ token: 'keyword.control.livescript',
|
97
|
-
regex: '\\b(?<![\\.\\$\\-])(?:t(?:h(?:is|row|en)|ry|ypeof!?|il|o)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction|rom|allthrough)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith|hen)|o(?:f|r|therwise)|return|break|let|var|loop|match|by)(?!\\-|\\s*:)\\b',
|
98
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
99
|
-
originalRegex: '(?x)\n\t\t\t\t\\b(?<![\\.\\$\\-])(?:\n\t\t t(?:h(?:is|row|en)|ry|ypeof!?|il|o)\n\t\t |c(?:on(?:tinue|st)|a(?:se|tch)|lass)\n\t\t |i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])\n\t\t |d(?:e(?:fault|lete|bugger)|o)\n\t\t |f(?:or(?:\\s+own)?|inally|unction|rom|allthrough)\n\t\t |s(?:uper|witch)\n\t\t |e(?:lse|x(?:tends|port)|val)\n\t\t |a(?:nd|rguments)\n\t\t |n(?:ew|ot)\n\t\t |un(?:less|til)\n\t\t |w(?:hile|ith|hen)\n\t\t |o(?:f|r|therwise)\n\t\t |return|break|let|var|loop\n\t\t |match\n\t\t |by\n\t\t\t\t)(?!\\-|\\s*:)\\b\n\t\t\t' },
|
100
|
-
{ token: 'keyword.operator.livescript',
|
101
|
-
regex: '\\b(?<![\\.\\$\\-])(?:instanceof|new|delete|typeof|and|or|is|isnt|not)(?!\\-|\\s*:)\\b',
|
102
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
103
|
-
originalRegex: '(?x)\n\t\t\t\t\\b(?<![\\.\\$\\-])(\n\t\t\t\t\tinstanceof|new|delete|typeof|and|or|is|isnt|not\n\t\t\t\t)(?!\\-|\\s*:)\\b\n\t\t\t' },
|
104
|
-
{ token: 'keyword.operator.livescript',
|
105
|
-
regex: 'and=|or=|%|&|\\^|\\*|\\/|(?<![a-zA-Z$_])(?:\\-)?\\-(?!\\-?>)|\\+\\+|\\+|~(?!~?>)|==|=|!=|<=|>=|<<=|>>=|>>>=|<>|<(?!\\[)|(?<!\\])>|(?<!\\w)!(?!(?:[~\\-]+)?>)|&&|\\.\\.(?:\\.)?|\\s\\.\\s|\\?|\\||\\|\\||\\:|\\*=|(?<!\\()/=|%=|\\+=|\\-=|\\.=|&=|\\(\\.|\\.\\)|\\^=',
|
106
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
107
|
-
originalRegex: '(?x)\n\t\t\t\tand=|or=|%|&|\\^|\\*|\\/|(?<![a-zA-Z$_])(\\-)?\\-(?!\\-?>)|\\+\\+|\\+|\n\t\t\t\t~(?!~?>)|==|=|!=|<=|>=|<<=|>>=|\n\t\t\t\t>>>=|<>|<(?!\\[)|(?<!\\])>|(?<!\\w)!(?!([~\\-]+)?>)|&&|\\.\\.(\\.)?|\\s\\.\\s|\\?|\\||\\|\\||\\:|\\*=|(?<!\\()/=|%=|\\+=|\\-=|\\.=|&=|\\(\\.|\\.\\)|\n\t\t\t\t\\^=\n\t\t\t' },
|
108
|
-
{ token:
|
109
|
-
[ 'variable.assignment.livescript',
|
110
|
-
'variable.assignment.livescript',
|
111
|
-
'variable.assignment.livescript',
|
112
|
-
'punctuation.separator.key-value',
|
113
|
-
'keyword.operator.livescript',
|
114
|
-
'variable.assignment.livescript' ],
|
115
|
-
regex: '([a-zA-Z\\$_])((?:[\\w$.-])*)(\\s*)(?!\\::)(?:(:)|(=))(\\s*)(?!(?:\\s*!?\\s*\\(.*\\))?\\s*!?[~-]{1,2}>)' },
|
116
|
-
{ token: 'keyword.operator.livescript',
|
117
|
-
regex: '(?<=\\s|^)[\\[\\{](?=.*?[\\]\\}]\\s+[:=])',
|
118
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
119
|
-
originalRegex: '(?<=\\s|^)([\\[\\{])(?=.*?[\\]\\}]\\s+[:=])',
|
120
|
-
push:
|
121
|
-
[ { token: 'keyword.operator.livescript',
|
122
|
-
regex: '[\\]\\}]\\s*[:=]',
|
123
|
-
next: 'pop' },
|
124
|
-
{ include: '#variable_name' },
|
125
|
-
{ include: '#instance_variable' },
|
126
|
-
{ include: '#single_quoted_string' },
|
127
|
-
{ include: '#double_quoted_string' },
|
128
|
-
{ include: '#numeric' },
|
129
|
-
{ defaultToken: 'meta.variable.assignment.destructured.livescript' } ] },
|
130
|
-
{ token:
|
131
|
-
[ 'meta.function.livescript',
|
132
|
-
'entity.name.function.livescript',
|
133
|
-
'entity.name.function.livescript',
|
134
|
-
'entity.name.function.livescript',
|
135
|
-
'entity.name.function.livescript',
|
136
|
-
'variable.parameter.function.livescript',
|
137
|
-
'entity.name.function.livescript',
|
138
|
-
'storage.type.function.livescript' ],
|
139
|
-
regex: '(\\s*)(?=[a-zA-Z\\$_])([a-zA-Z\\$_])((?:[\\w$.:-])*)(\\s*)([:=])((?:\\s*!?\\s*\\(.*\\))?)(\\s*)(!?[~-]{1,2}>)' },
|
140
|
-
{ token: 'storage.type.function.livescript',
|
141
|
-
regex: '!?[~-]{1,2}>' },
|
142
|
-
{ token: 'constant.language.boolean.true.livescript',
|
143
|
-
regex: '\\b(?<!\\.)(?:true|on|yes)(?!\\s*[:=])\\b',
|
144
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
145
|
-
originalRegex: '\\b(?<!\\.)(true|on|yes)(?!\\s*[:=])\\b' },
|
146
|
-
{ token: 'constant.language.boolean.false.livescript',
|
147
|
-
regex: '\\b(?<!\\.)(?:false|off|no)(?!\\s*[:=])\\b',
|
148
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
149
|
-
originalRegex: '\\b(?<!\\.)(false|off|no)(?!\\s*[:=])\\b' },
|
150
|
-
{ token: 'constant.language.null.livescript',
|
151
|
-
regex: '\\b(?<!\\.)(?:null|void)(?!\\s*[:=])\\b',
|
152
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
153
|
-
originalRegex: '\\b(?<!\\.)(null|void)(?!\\s*[:=])\\b' },
|
154
|
-
{ token: 'variable.language.livescript',
|
155
|
-
regex: '\\b(?<!\\.)(?:super|this|extends)(?!\\s*[:=])\\b',
|
156
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
157
|
-
originalRegex: '\\b(?<!\\.)(super|this|extends)(?!\\s*[:=])\\b' },
|
158
|
-
{ token:
|
159
|
-
[ 'storage.type.class.livescript',
|
160
|
-
'meta.class.livescript',
|
161
|
-
'entity.name.type.class.livescript',
|
162
|
-
'meta.class.livescript',
|
163
|
-
'keyword.control.inheritance.livescript',
|
164
|
-
'meta.class.livescript',
|
165
|
-
'entity.other.inherited-class.livescript' ],
|
166
|
-
regex: '(class\\b)(\\s+)((?:@?[a-zA-Z$_][\\w$.-]*)?)(?:(\\s+)(extends)(\\s+)(@?[a-zA-Z$_][\\w$.-]*))?' },
|
167
|
-
{ token: 'keyword.other.livescript',
|
168
|
-
regex: '\\b(?:debugger|\\\\)\\b' },
|
169
|
-
{ token: 'support.class.livescript',
|
170
|
-
regex: '\\b(?:Array|ArrayBuffer|Blob|Boolean|Date|document|event|Function|Int(?:8|16|32|64)Array|Math|Map|Number|Object|Proxy|RegExp|Set|String|WeakMap|window|Uint(?:8|16|32|64)Array|XMLHttpRequest)\\b' },
|
171
|
-
{ token: 'entity.name.type.object.livescript',
|
172
|
-
regex: '\\bconsole\\b' },
|
173
|
-
{ token: 'support.function.console.livescript',
|
174
|
-
regex: '(?<=console\\.)(?:debug|warn|info|log|error|time(?:End|-end)|assert)\\b',
|
175
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
176
|
-
originalRegex: '((?<=console\\.)(debug|warn|info|log|error|time(End|-end)|assert))\\b' },
|
177
|
-
{ token: 'support.function.livescript',
|
178
|
-
regex: '\\b(?:decodeURI(?:Component)?|encodeURI(?:Component)?|eval|parse(?:Float|Int)|require)\\b' },
|
179
|
-
{ token: 'support.function.prelude.livescript',
|
180
|
-
regex: '(?<![.-])\\b(?:map|filter|reject|partition|find|each|head|tail|last|initial|empty|values|keys|length|cons|append|join|reverse|fold(?:l|r)?1?|unfoldr|and(?:List|-list)|or(?:List|-list)|any|all|unique|sum|product|mean|compact|concat(?:Map|-map)?|maximum|minimum|scan(?:l|r)?1?|replicate|slice|apply|split(?:At|-at)?|take(?:While|-while)?|drop(?:While|-while)?|span|first|break(?:It|-it)|list(?:ToObj|-to-obj)|obj(?:ToFunc|-to-func)|pairs(?:ToObj|-to-obj)|obj(?:ToPairs|-to-pairs|ToLists|-to-lists)|zip(?:All|-all)?(?:With|-with)?|compose|curry|partial|flip|fix|sort(?:With|-with|By|-by)?|group(?:By|-by)|break(?:List|-list|Str|-str)|difference|intersection|union|average|flatten|chars|unchars|repeat|lines|unlines|words|unwords|max|min|negate|abs|signum|quot|rem|div|mod|recip|pi|tau|exp|sqrt|ln|pow|sin|cos|tan|asin|acos|atan|atan2|truncate|round|ceiling|floor|is(?:It|-it)NaN|even|odd|gcd|lcm|disabled__id)\\b(?![.-])',
|
181
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
182
|
-
originalRegex: '(?x)(?<![.-])\\b(\n\t\t\t\tmap|filter|reject|partition|find|each|head|tail|last|initial|empty|\n\t\t\t\tvalues|keys|length|cons|append|join|reverse|fold(l|r)?1?|unfoldr|\n\t\t\t\tand(List|-list)|or(List|-list)|any|all|unique|sum|product|mean|compact|\n\t\t\t\tconcat(Map|-map)?|maximum|minimum|scan(l|r)?1?|replicate|slice|apply|\n\t\t\t\tsplit(At|-at)?|take(While|-while)?|drop(While|-while)?|span|first|\n\t\t\t\tbreak(It|-it)|list(ToObj|-to-obj)|obj(ToFunc|-to-func)|\n\t\t\t\tpairs(ToObj|-to-obj)|obj(ToPairs|-to-pairs|ToLists|-to-lists)|\n\t\t\t\tzip(All|-all)?(With|-with)?|compose|curry|partial|flip|fix|\n\t\t\t\tsort(With|-with|By|-by)?|group(By|-by)|break(List|-list|Str|-str)|\n\t\t\t\tdifference|intersection|union|average|flatten|chars|unchars|repeat|\n\t\t\t\tlines|unlines|words|unwords|max|min|negate|abs|signum|quot|rem|div|mod|\n\t\t\t\trecip|pi|tau|exp|sqrt|ln|pow|sin|cos|tan|asin|acos|atan|atan2|truncate|\n\t\t\t\tround|ceiling|floor|is(It|-it)NaN|even|odd|gcd|lcm|disabled__id\n\t\t\t)\\b(?![.-])',
|
183
|
-
comment: 'Generated by DOM query from http://gkz.github.com/prelude-ls/:\n\t [].slice\n\t .call(document.querySelectorAll(".nav-pills li a"))\n\t .map(function(_) {return _.innerText})\n\t .filter(function(_) {return _.trim() !== \'})\n\t .slice(2)\n\t .join("|")\n \t\t' },
|
184
|
-
{ token: 'support.function.semireserved.livescript',
|
185
|
-
regex: '(?<![.-])\\b(?:that|it|e)\\b',
|
186
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
187
|
-
originalRegex: '(?x)(?<![.-])\\b(that|it|e)\\b' },
|
188
|
-
{ token: 'support.function.method.array.livescript',
|
189
|
-
regex: '(?<=(?:\\.|\\]|\\)))(?:apply|call|concat|every|filter|for(?:Each|-each)|from|has(?:Own|-own)(?:Property|-property)|index(?:Of|-of)|is(?:Prototype|-prototype)(?:Of|-of)|join|last(?:Index|-index)(?:Of|-of)|map|of|pop|property(?:Is|-is)(?:Enumerable|-enumerable)|push|reduce(?:Right|-right)?|reverse|shift|slice|some|sort|splice|to(?:Locale|-locale)?(?:String|-string)|unshift|valueOf)\\b(?!-)',
|
190
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
191
|
-
originalRegex: '(?x)((?<=(\\.|\\]|\\)))(\n\t\t\t\tapply|call|concat|every|filter|for(Each|-each)|\n\t\t\t\tfrom|has(Own|-own)(Property|-property)|index(Of|-of)|\n\t\t\t\tis(Prototype|-prototype)(Of|-of)|join|last(Index|-index)(Of|-of)|\n\t\t\t\tmap|of|pop|property(Is|-is)(Enumerable|-enumerable)|push|\n\t\t\t\treduce(Right|-right)?|reverse|shift|slice|some|sort|\n\t\t\t\tsplice|to(Locale|-locale)?(String|-string)|unshift|valueOf\n\t\t\t))\\b(?!-) ' },
|
192
|
-
{ token: 'support.function.static.array.livescript',
|
193
|
-
regex: '(?<=Array\\.)isArray\\b',
|
194
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
195
|
-
originalRegex: '(?x)((?<=Array\\.)(\n\t\t\t\tisArray\n\t\t\t))\\b' },
|
196
|
-
{ token: 'support.function.static.object.livescript',
|
197
|
-
regex: '(?<=Object\\.)(?:create|define(?:Propert|-propert)(?:ies|y)|freeze|get(?:Own|-own)(?:Property|-property)(?:Descriptors?|Names)|get(?:Property|-property)(?:Descriptor|Names)|getPrototypeOf|is(?:(?:Extensible|-extensible)|(?:Frozen|-frozen)|(?:Sealed|-sealed))?|keys|prevent(?:Extensions|-extensions)|seal)\\b',
|
198
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
199
|
-
originalRegex: '(?x)((?<=Object\\.)(\n\t\t\t\tcreate|define(Propert|-propert)(ies|y)|freeze|\n\t\t\t\tget(Own|-own)(Property|-property)(Descriptors?|Names)|\n\t\t\t\tget(Property|-property)(Descriptor|Names)|getPrototypeOf|\n\t\t\t\tis((Extensible|-extensible)|(Frozen|-frozen)|(Sealed|-sealed))?|\n\t\t\t\tkeys|prevent(Extensions|-extensions)|seal\n\t\t\t))\\b' },
|
200
|
-
{ token: 'support.function.static.math.livescript',
|
201
|
-
regex: '(?<=Math\\.)(?:abs|acos|acosh|asin|asinh|atan|atan2|atanh|ceil|cos|cosh|exp|expm1|floor|hypot|log|log10|log1p|log2|max|min|pow|random|round|sign|sin|sinh|sqrt|tan|tanh|trunc)\\b',
|
202
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
203
|
-
originalRegex: '(?x)((?<=Math\\.)(\n\t\t\t\tabs|acos|acosh|asin|asinh|atan|atan2|atanh|ceil|cos|cosh|exp|expm1|floor|\n\t\t\t\thypot|log|log10|log1p|log2|max|min|pow|random|round|sign|sin|sinh|sqrt|\n\t\t\t\ttan|tanh|trunc\n\t\t\t))\\b' },
|
204
|
-
{ token: 'support.function.static.number.livescript',
|
205
|
-
regex: '(?<=Number\\.)(?:is(?:Finite|Integer|NaN)|to(?:Integer|-integer))\\b',
|
206
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
207
|
-
originalRegex: '(?x)((?<=Number\\.)(\n\t\t\t\tis(Finite|Integer|NaN)|to(Integer|-integer)\n\t\t\t))\\b' },
|
208
|
-
{ token: 'constant.language.livescript',
|
209
|
-
regex: '\\b(?:Infinity|NaN|undefined)\\b' },
|
210
|
-
{ token: 'punctuation.terminator.statement.livescript',
|
211
|
-
regex: '\\;' },
|
212
|
-
{ token: 'meta.delimiter.object.comma.livescript',
|
213
|
-
regex: ',[ |\\t]*' },
|
214
|
-
{ token: 'meta.delimiter.method.period.livescript',
|
215
|
-
regex: '\\.' },
|
216
|
-
{ token: 'meta.brace.curly.livescript', regex: '\\{|\\}' },
|
217
|
-
{ token: 'meta.brace.round.livescript', regex: '\\(|\\)' },
|
218
|
-
{ token: 'meta.brace.square.livescript', regex: '\\[|\\]\\s*' },
|
219
|
-
{ include: '#instance_variable' },
|
220
|
-
{ include: '#backslash_string' },
|
221
|
-
{ include: '#single_quoted_string' },
|
222
|
-
{ include: '#double_quoted_string' },
|
223
|
-
{ include: '#numeric' } ],
|
224
|
-
'#backslash_string':
|
225
|
-
[ { token: 'string.quoted.single.livescript',
|
226
|
-
regex: '\\\\(?:[\\\\)\\s,\\};\\]])?',
|
227
|
-
push:
|
228
|
-
[ { token: 'punctuation.definition.string.end.livescript',
|
229
|
-
regex: '[\\\\)\\s,\\};\\]]',
|
230
|
-
next: 'pop' },
|
231
|
-
{ defaultToken: 'string.quoted.single.livescript' } ] } ],
|
232
|
-
'#double_quoted_string':
|
233
|
-
[ { token: 'punctuation.definition.string.begin.livescript',
|
234
|
-
regex: '"',
|
235
|
-
push:
|
236
|
-
[ { token: 'punctuation.definition.string.end.livescript',
|
237
|
-
regex: '"',
|
238
|
-
next: 'pop' },
|
239
|
-
{ token: 'constant.character.escape.livescript',
|
240
|
-
regex: '\\\\(?:x[\\da-fA-F]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)' },
|
241
|
-
{ include: '#interpolated_livescript' },
|
242
|
-
{ defaultToken: 'string.quoted.double.livescript' } ] } ],
|
243
|
-
'#embedded_comment':
|
244
|
-
[ { token:
|
245
|
-
[ 'punctuation.definition.comment.livescript',
|
246
|
-
'comment.line.number-sign.livescript' ],
|
247
|
-
regex: '(?<!\\\\)(#)(.*$)',
|
248
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
249
|
-
originalRegex: '(?<!\\\\)(#).*$\\n' } ],
|
250
|
-
'#embedded_spaced_comment':
|
251
|
-
[ { token:
|
252
|
-
[ 'punctuation.definition.comment.livescript',
|
253
|
-
'comment.line.number-sign.livescript' ],
|
254
|
-
regex: '(?<!\\\\)(#\\s)(.*$)',
|
255
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
256
|
-
originalRegex: '(?<!\\\\)(#\\s).*$\\n' } ],
|
257
|
-
'#constructor_variable':
|
258
|
-
[ { token: 'variable.other.readwrite.constructor.livescript',
|
259
|
-
regex: '[a-zA-Z$_][\\w$-]*@{2}(?:[a-zA-Z$_][\\w$-]*)?' } ],
|
260
|
-
'#instance_variable':
|
261
|
-
[ { token: 'variable.other.readwrite.instance.livescript',
|
262
|
-
regex: '(?<!\\S)@(?:[a-zA-Z$_][\\w$-]*)?',
|
263
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
264
|
-
originalRegex: '(?<!\\S)(@)([a-zA-Z$_][\\w$-]*)?' } ],
|
265
|
-
'#interpolated_livescript':
|
266
|
-
[ { todo:
|
267
|
-
{ token: 'punctuation.section.embedded.livescript',
|
268
|
-
regex: '\\#\\{',
|
269
|
-
push:
|
270
|
-
[ { token: 'punctuation.section.embedded.livescript',
|
271
|
-
regex: '\\}',
|
272
|
-
next: 'pop' },
|
273
|
-
{ include: '$self' },
|
274
|
-
{ defaultToken: 'source.livescript.embedded.source' } ] } },
|
275
|
-
{ todo:
|
276
|
-
{ token: 'source.livescript.embedded.source.simple',
|
277
|
-
regex: '\\#',
|
278
|
-
push:
|
279
|
-
[ { token: 'source.livescript.embedded.source.simple',
|
280
|
-
regex: '',
|
281
|
-
next: 'pop' },
|
282
|
-
{ include: '$self' },
|
283
|
-
{ defaultToken: 'source.livescript.embedded.source.simple' } ] } } ],
|
284
|
-
'#numeric':
|
285
|
-
[ { token: 'constant.numeric.livescript',
|
286
|
-
regex: '(?<![\\$@a-zA-Z_])(?:[0-9]+r[0-9_]+|(?:16r|0[xX])[0-9a-fA-F_]+|[0-9]+(?:\\.[0-9_]+)?(?:e[+\\-]?[0-9_]+)?[_a-zA-Z]*)',
|
287
|
-
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
288
|
-
originalRegex: '(?<![\\$@a-zA-Z_])(([0-9]+r[0-9_]+)|((16r|0[xX])[0-9a-fA-F_]+)|([0-9]+(\\.[0-9_]+)?(e[+\\-]?[0-9_]+)?)[_a-zA-Z]*)' } ],
|
289
|
-
'#single_quoted_string':
|
290
|
-
[ { token: 'punctuation.definition.string.begin.livescript',
|
291
|
-
regex: '\'',
|
292
|
-
push:
|
293
|
-
[ { token: 'punctuation.definition.string.end.livescript',
|
294
|
-
regex: '\'',
|
295
|
-
next: 'pop' },
|
296
|
-
{ token: 'constant.character.escape.livescript',
|
297
|
-
regex: '\\\\(?:x[\\da-fA-F]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)' },
|
298
|
-
{ defaultToken: 'string.quoted.single.livescript' } ] } ],
|
299
|
-
'#variable_name':
|
300
|
-
[ { token: 'variable.assignment.livescript',
|
301
|
-
regex: '[a-zA-Z\\$_][\\w$-]*(?:\\.\\w+)*(?!\\-)' } ] }
|
302
|
-
|
303
|
-
this.normalizeRules();
|
304
|
-
};
|
305
|
-
|
306
|
-
LiveScriptHighlightRules.metaData = { comment: 'LiveScript Syntax: version 1',
|
307
|
-
fileTypes: [ 'ls', 'Slakefile', 'ls.erb' ],
|
308
|
-
firstLineMatch: '^#!.*\\bls',
|
309
|
-
foldingStartMarker: '^\\s*class\\s+\\S.*$|.*(->|=>)\\s*$|.*[\\[{]\\s*$',
|
310
|
-
foldingStopMarker: '^\\s*$|^\\s*[}\\]]\\s*$',
|
311
|
-
keyEquivalent: '^~C',
|
312
|
-
name: 'LiveScript',
|
313
|
-
scopeName: 'source.livescript' }
|
314
|
-
|
315
|
-
|
316
|
-
oop.inherits(LiveScriptHighlightRules, TextHighlightRules);
|
317
|
-
|
318
|
-
exports.LiveScriptHighlightRules = LiveScriptHighlightRules;
|
319
|
-
});
|
320
|
-
|
321
|
-
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
322
|
-
"use strict";
|
323
|
-
|
324
|
-
var oop = require("../../lib/oop");
|
325
|
-
var Range = require("../../range").Range;
|
326
|
-
var BaseFoldMode = require("./fold_mode").FoldMode;
|
327
|
-
|
328
|
-
var FoldMode = exports.FoldMode = function(commentRegex) {
|
329
|
-
if (commentRegex) {
|
330
|
-
this.foldingStartMarker = new RegExp(
|
331
|
-
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
332
|
-
);
|
333
|
-
this.foldingStopMarker = new RegExp(
|
334
|
-
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
335
|
-
);
|
336
|
-
}
|
337
|
-
};
|
338
|
-
oop.inherits(FoldMode, BaseFoldMode);
|
339
|
-
|
340
|
-
(function() {
|
341
|
-
|
342
|
-
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
343
|
-
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
344
|
-
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
345
|
-
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
346
|
-
this.startRegionRe = /^\s*(\/\*|\/\/)#region\b/;
|
347
|
-
this._getFoldWidgetBase = this.getFoldWidget;
|
348
|
-
this.getFoldWidget = function(session, foldStyle, row) {
|
349
|
-
var line = session.getLine(row);
|
350
|
-
|
351
|
-
if (this.singleLineBlockCommentRe.test(line)) {
|
352
|
-
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
353
|
-
return "";
|
354
|
-
}
|
355
|
-
|
356
|
-
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
357
|
-
|
358
|
-
if (!fw && this.startRegionRe.test(line))
|
359
|
-
return "start"; // lineCommentRegionStart
|
360
|
-
|
361
|
-
return fw;
|
362
|
-
};
|
363
|
-
|
364
|
-
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
365
|
-
var line = session.getLine(row);
|
366
|
-
|
367
|
-
if (this.startRegionRe.test(line))
|
368
|
-
return this.getCommentRegionBlock(session, line, row);
|
369
|
-
|
370
|
-
var match = line.match(this.foldingStartMarker);
|
371
|
-
if (match) {
|
372
|
-
var i = match.index;
|
373
|
-
|
374
|
-
if (match[1])
|
375
|
-
return this.openingBracketBlock(session, match[1], row, i);
|
376
|
-
|
377
|
-
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
378
|
-
|
379
|
-
if (range && !range.isMultiLine()) {
|
380
|
-
if (forceMultiline) {
|
381
|
-
range = this.getSectionRange(session, row);
|
382
|
-
} else if (foldStyle != "all")
|
383
|
-
range = null;
|
384
|
-
}
|
385
|
-
|
386
|
-
return range;
|
387
|
-
}
|
388
|
-
|
389
|
-
if (foldStyle === "markbegin")
|
390
|
-
return;
|
391
|
-
|
392
|
-
var match = line.match(this.foldingStopMarker);
|
393
|
-
if (match) {
|
394
|
-
var i = match.index + match[0].length;
|
395
|
-
|
396
|
-
if (match[1])
|
397
|
-
return this.closingBracketBlock(session, match[1], row, i);
|
398
|
-
|
399
|
-
return session.getCommentFoldRange(row, i, -1);
|
400
|
-
}
|
401
|
-
};
|
402
|
-
|
403
|
-
this.getSectionRange = function(session, row) {
|
404
|
-
var line = session.getLine(row);
|
405
|
-
var startIndent = line.search(/\S/);
|
406
|
-
var startRow = row;
|
407
|
-
var startColumn = line.length;
|
408
|
-
row = row + 1;
|
409
|
-
var endRow = row;
|
410
|
-
var maxRow = session.getLength();
|
411
|
-
while (++row < maxRow) {
|
412
|
-
line = session.getLine(row);
|
413
|
-
var indent = line.search(/\S/);
|
414
|
-
if (indent === -1)
|
415
|
-
continue;
|
416
|
-
if (startIndent > indent)
|
417
|
-
break;
|
418
|
-
var subRange = this.getFoldWidgetRange(session, "all", row);
|
419
|
-
|
420
|
-
if (subRange) {
|
421
|
-
if (subRange.start.row <= startRow) {
|
422
|
-
break;
|
423
|
-
} else if (subRange.isMultiLine()) {
|
424
|
-
row = subRange.end.row;
|
425
|
-
} else if (startIndent == indent) {
|
426
|
-
break;
|
427
|
-
}
|
428
|
-
}
|
429
|
-
endRow = row;
|
430
|
-
}
|
431
|
-
|
432
|
-
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
433
|
-
};
|
434
|
-
|
435
|
-
this.getCommentRegionBlock = function(session, line, row) {
|
436
|
-
var startColumn = line.search(/\s*$/);
|
437
|
-
var maxRow = session.getLength();
|
438
|
-
var startRow = row;
|
439
|
-
|
440
|
-
var re = /^\s*(?:\/\*|\/\/)#(end)?region\b/;
|
441
|
-
var depth = 1;
|
442
|
-
while (++row < maxRow) {
|
443
|
-
line = session.getLine(row);
|
444
|
-
var m = re.exec(line);
|
445
|
-
if (!m) continue;
|
446
|
-
if (m[1]) depth--;
|
447
|
-
else depth++;
|
448
|
-
|
449
|
-
if (!depth) break;
|
450
|
-
}
|
451
|
-
|
452
|
-
var endRow = row;
|
453
|
-
if (endRow > startRow) {
|
454
|
-
return new Range(startRow, startColumn, endRow, line.length);
|
455
|
-
}
|
456
|
-
};
|
457
|
-
|
458
|
-
}).call(FoldMode.prototype);
|
459
|
-
|
460
|
-
});
|
461
|
-
|
462
|
-
define("ace/mode/live_script",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/live_script_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
|
463
|
-
"use strict";
|
464
|
-
|
465
|
-
var oop = require("../lib/oop");
|
466
|
-
var TextMode = require("./text").Mode;
|
467
|
-
var LiveScriptHighlightRules = require("./live_script_highlight_rules").LiveScriptHighlightRules;
|
468
|
-
var FoldMode = require("./folding/cstyle").FoldMode;
|
469
|
-
|
470
|
-
var Mode = function() {
|
471
|
-
this.HighlightRules = LiveScriptHighlightRules;
|
472
|
-
this.foldingRules = new FoldMode();
|
473
|
-
};
|
474
|
-
oop.inherits(Mode, TextMode);
|
475
|
-
|
476
|
-
(function() {
|
477
|
-
this.$id = "ace/mode/live_script"
|
478
|
-
}).call(Mode.prototype);
|
479
|
-
|
480
|
-
exports.Mode = Mode;
|
481
|
-
});
|