ace-rails-ap 4.1.2 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ace/rails/version.rb +1 -1
- data/vendor/assets/javascripts/ace/ace.js +752 -261
- data/vendor/assets/javascripts/ace/ext-beautify.js +0 -0
- data/vendor/assets/javascripts/ace/ext-chromevox.js +0 -0
- data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +0 -0
- data/vendor/assets/javascripts/ace/ext-emmet.js +0 -0
- data/vendor/assets/javascripts/ace/ext-error_marker.js +0 -0
- data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +0 -0
- data/vendor/assets/javascripts/ace/ext-language_tools.js +19 -9
- data/vendor/assets/javascripts/ace/ext-linking.js +9 -0
- data/vendor/assets/javascripts/ace/ext-modelist.js +2 -0
- data/vendor/assets/javascripts/ace/ext-old_ie.js +0 -0
- data/vendor/assets/javascripts/ace/ext-searchbox.js +158 -66
- data/vendor/assets/javascripts/ace/ext-settings_menu.js +3 -0
- data/vendor/assets/javascripts/ace/ext-spellcheck.js +0 -0
- data/vendor/assets/javascripts/ace/ext-split.js +0 -0
- data/vendor/assets/javascripts/ace/ext-static_highlight.js +1 -1
- data/vendor/assets/javascripts/ace/ext-statusbar.js +0 -0
- data/vendor/assets/javascripts/ace/ext-textarea.js +1 -0
- data/vendor/assets/javascripts/ace/ext-themelist.js +1 -0
- data/vendor/assets/javascripts/ace/ext-whitespace.js +24 -3
- data/vendor/assets/javascripts/ace/keybinding-emacs.js +0 -0
- data/vendor/assets/javascripts/ace/keybinding-vim.js +12 -4
- data/vendor/assets/javascripts/ace/mode-abap.js +0 -0
- data/vendor/assets/javascripts/ace/mode-abc.js +0 -0
- data/vendor/assets/javascripts/ace/mode-actionscript.js +0 -0
- data/vendor/assets/javascripts/ace/mode-ada.js +0 -0
- data/vendor/assets/javascripts/ace/mode-apache_conf.js +0 -0
- data/vendor/assets/javascripts/ace/mode-applescript.js +0 -0
- data/vendor/assets/javascripts/ace/mode-asciidoc.js +0 -0
- data/vendor/assets/javascripts/ace/mode-assembly_x86.js +0 -0
- data/vendor/assets/javascripts/ace/mode-autohotkey.js +0 -0
- data/vendor/assets/javascripts/ace/mode-bash.js +247 -0
- data/vendor/assets/javascripts/ace/mode-batchfile.js +0 -0
- data/vendor/assets/javascripts/ace/mode-bro.js +0 -0
- data/vendor/assets/javascripts/ace/mode-c9search.js +0 -5
- data/vendor/assets/javascripts/ace/mode-c_cpp.js +2 -3
- data/vendor/assets/javascripts/ace/mode-cirru.js +0 -0
- data/vendor/assets/javascripts/ace/mode-clojure.js +0 -0
- data/vendor/assets/javascripts/ace/mode-cobol.js +0 -0
- data/vendor/assets/javascripts/ace/mode-coffee.js +0 -0
- data/vendor/assets/javascripts/ace/mode-coldfusion.js +132 -78
- data/vendor/assets/javascripts/ace/mode-csharp.js +3 -4
- data/vendor/assets/javascripts/ace/mode-css.js +95 -47
- data/vendor/assets/javascripts/ace/mode-curly.js +132 -78
- data/vendor/assets/javascripts/ace/mode-d.js +0 -0
- data/vendor/assets/javascripts/ace/mode-dart.js +5 -8
- data/vendor/assets/javascripts/ace/mode-diff.js +0 -0
- data/vendor/assets/javascripts/ace/mode-django.js +132 -83
- data/vendor/assets/javascripts/ace/mode-dockerfile.js +0 -0
- data/vendor/assets/javascripts/ace/mode-dot.js +2 -5
- data/vendor/assets/javascripts/ace/mode-drools.js +4 -6
- data/vendor/assets/javascripts/ace/mode-eiffel.js +0 -0
- data/vendor/assets/javascripts/ace/mode-ejs.js +137 -78
- data/vendor/assets/javascripts/ace/mode-elixir.js +0 -0
- data/vendor/assets/javascripts/ace/mode-elm.js +0 -0
- data/vendor/assets/javascripts/ace/mode-erlang.js +0 -0
- data/vendor/assets/javascripts/ace/mode-forth.js +0 -0
- data/vendor/assets/javascripts/ace/mode-fortran.js +0 -0
- data/vendor/assets/javascripts/ace/mode-ftl.js +122 -78
- data/vendor/assets/javascripts/ace/mode-gcode.js +0 -0
- data/vendor/assets/javascripts/ace/mode-gherkin.js +0 -0
- data/vendor/assets/javascripts/ace/mode-gitignore.js +0 -0
- data/vendor/assets/javascripts/ace/mode-glsl.js +2 -3
- data/vendor/assets/javascripts/ace/mode-gobstones.js +23 -17
- data/vendor/assets/javascripts/ace/mode-golang.js +0 -0
- data/vendor/assets/javascripts/ace/mode-graphqlschema.js +206 -0
- data/vendor/assets/javascripts/ace/mode-groovy.js +23 -17
- data/vendor/assets/javascripts/ace/mode-haml.js +247 -183
- data/vendor/assets/javascripts/ace/mode-handlebars.js +132 -78
- data/vendor/assets/javascripts/ace/mode-haskell.js +0 -0
- data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +0 -0
- data/vendor/assets/javascripts/ace/mode-haxe.js +2 -3
- data/vendor/assets/javascripts/ace/mode-hjson.js +0 -0
- data/vendor/assets/javascripts/ace/mode-html.js +132 -78
- data/vendor/assets/javascripts/ace/mode-html_elixir.js +132 -78
- data/vendor/assets/javascripts/ace/mode-html_ruby.js +137 -78
- data/vendor/assets/javascripts/ace/mode-ini.js +0 -0
- data/vendor/assets/javascripts/ace/mode-io.js +0 -0
- data/vendor/assets/javascripts/ace/mode-jack.js +0 -0
- data/vendor/assets/javascripts/ace/mode-jade.js +150 -86
- data/vendor/assets/javascripts/ace/mode-java.js +23 -17
- data/vendor/assets/javascripts/ace/mode-javascript.js +21 -14
- data/vendor/assets/javascripts/ace/mode-json.js +16 -8
- data/vendor/assets/javascripts/ace/mode-jsoniq.js +27 -11
- data/vendor/assets/javascripts/ace/mode-jsp.js +122 -78
- data/vendor/assets/javascripts/ace/mode-jsx.js +2 -3
- data/vendor/assets/javascripts/ace/mode-julia.js +0 -0
- data/vendor/assets/javascripts/ace/mode-kotlin.js +0 -0
- data/vendor/assets/javascripts/ace/mode-latex.js +3 -2
- data/vendor/assets/javascripts/ace/mode-lean.js +0 -0
- data/vendor/assets/javascripts/ace/mode-less.js +97 -50
- data/vendor/assets/javascripts/ace/mode-liquid.js +120 -75
- data/vendor/assets/javascripts/ace/mode-lisp.js +0 -0
- data/vendor/assets/javascripts/ace/mode-live_script.js +0 -0
- data/vendor/assets/javascripts/ace/mode-livescript.js +0 -0
- data/vendor/assets/javascripts/ace/mode-logiql.js +0 -0
- data/vendor/assets/javascripts/ace/mode-lsl.js +0 -0
- data/vendor/assets/javascripts/ace/mode-lua.js +4 -4
- data/vendor/assets/javascripts/ace/mode-luapage.js +136 -82
- data/vendor/assets/javascripts/ace/mode-lucene.js +0 -0
- data/vendor/assets/javascripts/ace/mode-makefile.js +0 -0
- data/vendor/assets/javascripts/ace/mode-markdown.js +133 -80
- data/vendor/assets/javascripts/ace/mode-mask.js +121 -77
- data/vendor/assets/javascripts/ace/mode-matlab.js +0 -0
- data/vendor/assets/javascripts/ace/mode-maze.js +0 -0
- data/vendor/assets/javascripts/ace/mode-mel.js +0 -0
- data/vendor/assets/javascripts/ace/mode-mips_assembler.js +0 -0
- data/vendor/assets/javascripts/ace/mode-mipsassembler.js +0 -0
- data/vendor/assets/javascripts/ace/mode-mushcode.js +0 -0
- data/vendor/assets/javascripts/ace/mode-mysql.js +0 -0
- data/vendor/assets/javascripts/ace/mode-nix.js +4 -6
- data/vendor/assets/javascripts/ace/mode-nsis.js +0 -0
- data/vendor/assets/javascripts/ace/mode-objectivec.js +3 -5
- data/vendor/assets/javascripts/ace/mode-ocaml.js +2 -3
- data/vendor/assets/javascripts/ace/mode-pascal.js +0 -0
- data/vendor/assets/javascripts/ace/mode-perl.js +0 -0
- data/vendor/assets/javascripts/ace/mode-pgsql.js +42 -31
- data/vendor/assets/javascripts/ace/mode-php.js +132 -78
- data/vendor/assets/javascripts/ace/mode-pig.js +303 -0
- data/vendor/assets/javascripts/ace/mode-plain_text.js +0 -0
- data/vendor/assets/javascripts/ace/mode-powershell.js +0 -0
- data/vendor/assets/javascripts/ace/mode-praat.js +0 -0
- data/vendor/assets/javascripts/ace/mode-prolog.js +0 -0
- data/vendor/assets/javascripts/ace/mode-properties.js +0 -0
- data/vendor/assets/javascripts/ace/mode-protobuf.js +6 -8
- data/vendor/assets/javascripts/ace/mode-python.js +0 -0
- data/vendor/assets/javascripts/ace/mode-r.js +0 -0
- data/vendor/assets/javascripts/ace/mode-razor.js +135 -82
- data/vendor/assets/javascripts/ace/mode-rdoc.js +0 -0
- data/vendor/assets/javascripts/ace/mode-rhtml.js +132 -78
- data/vendor/assets/javascripts/ace/mode-rst.js +0 -0
- data/vendor/assets/javascripts/ace/mode-ruby.js +5 -0
- data/vendor/assets/javascripts/ace/mode-rust.js +1 -0
- data/vendor/assets/javascripts/ace/mode-sass.js +27 -6
- data/vendor/assets/javascripts/ace/mode-scad.js +2 -3
- data/vendor/assets/javascripts/ace/mode-scala.js +23 -17
- data/vendor/assets/javascripts/ace/mode-scheme.js +0 -0
- data/vendor/assets/javascripts/ace/mode-scss.js +27 -6
- data/vendor/assets/javascripts/ace/mode-sh.js +0 -0
- data/vendor/assets/javascripts/ace/mode-sjs.js +21 -14
- data/vendor/assets/javascripts/ace/mode-smarty.js +132 -78
- data/vendor/assets/javascripts/ace/mode-snippets.js +0 -0
- data/vendor/assets/javascripts/ace/mode-soy_template.js +132 -78
- data/vendor/assets/javascripts/ace/mode-space.js +0 -0
- data/vendor/assets/javascripts/ace/mode-sparql.js +313 -0
- data/vendor/assets/javascripts/ace/mode-sql.js +3 -0
- data/vendor/assets/javascripts/ace/mode-sqlserver.js +0 -0
- data/vendor/assets/javascripts/ace/mode-stylus.js +97 -50
- data/vendor/assets/javascripts/ace/mode-svg.js +37 -31
- data/vendor/assets/javascripts/ace/mode-swift.js +0 -0
- data/vendor/assets/javascripts/ace/mode-swig.js +0 -0
- data/vendor/assets/javascripts/ace/mode-tcl.js +0 -0
- data/vendor/assets/javascripts/ace/mode-tex.js +0 -0
- data/vendor/assets/javascripts/ace/mode-text.js +0 -0
- data/vendor/assets/javascripts/ace/mode-textile.js +0 -0
- data/vendor/assets/javascripts/ace/mode-toml.js +0 -0
- data/vendor/assets/javascripts/ace/mode-tsx.js +21 -14
- data/vendor/assets/javascripts/ace/mode-turtle.js +289 -0
- data/vendor/assets/javascripts/ace/mode-twig.js +132 -78
- data/vendor/assets/javascripts/ace/mode-typescript.js +21 -14
- data/vendor/assets/javascripts/ace/mode-vala.js +0 -0
- data/vendor/assets/javascripts/ace/mode-vbscript.js +0 -0
- data/vendor/assets/javascripts/ace/mode-velocity.js +132 -78
- data/vendor/assets/javascripts/ace/mode-verilog.js +0 -0
- data/vendor/assets/javascripts/ace/mode-vhdl.js +0 -0
- data/vendor/assets/javascripts/ace/mode-wollok.js +21 -14
- data/vendor/assets/javascripts/ace/mode-xml.js +16 -17
- data/vendor/assets/javascripts/ace/mode-xquery.js +0 -0
- data/vendor/assets/javascripts/ace/mode-yaml.js +40 -8
- data/vendor/assets/javascripts/ace/snippets/abap.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/abc.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/actionscript.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/ada.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/apache_conf.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/applescript.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/asciidoc.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/autohotkey.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/batchfile.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/bro.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/c9search.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/c_cpp.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/cirru.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/clojure.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/cobol.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/coffee.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/coldfusion.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/csharp.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/css.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/curly.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/d.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/dart.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/diff.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/django.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/dockerfile.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/dot.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/drools.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/eiffel.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/ejs.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/elixir.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/elm.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/erlang.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/forth.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/fortran.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/ftl.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/gcode.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/gherkin.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/gitignore.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/glsl.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/gobstones.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/golang.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/graphqlschema.js +39 -0
- data/vendor/assets/javascripts/ace/snippets/groovy.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/haml.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/handlebars.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/haskell.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/haxe.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/hjson.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/html.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/html_elixir.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/html_ruby.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/ini.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/io.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/jack.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/jade.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/java.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/javascript.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/json.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/jsoniq.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/jsp.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/jsx.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/julia.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/kotlin.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/latex.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/lean.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/less.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/liquid.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/lisp.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/live_script.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/livescript.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/logiql.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/lsl.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/lua.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/luapage.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/lucene.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/makefile.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/markdown.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/mask.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/matlab.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/maze.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/mel.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/mushcode.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/mysql.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/nix.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/nsis.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/objectivec.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/ocaml.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/pascal.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/perl.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/pgsql.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/php.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/pig.js +7 -0
- data/vendor/assets/javascripts/ace/snippets/plain_text.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/powershell.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/praat.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/prolog.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/properties.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/protobuf.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/python.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/r.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/razor.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/rdoc.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/rhtml.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/rst.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/ruby.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/rust.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/sass.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/scad.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/scala.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/scheme.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/scss.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/sh.js +1 -1
- data/vendor/assets/javascripts/ace/snippets/sjs.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/smarty.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/snippets.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/soy_template.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/space.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/sparql.js +7 -0
- data/vendor/assets/javascripts/ace/snippets/sql.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/sqlserver.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/stylus.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/svg.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/swift.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/swig.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/tcl.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/tex.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/text.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/textile.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/toml.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/tsx.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/turtle.js +7 -0
- data/vendor/assets/javascripts/ace/snippets/twig.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/typescript.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/vala.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/vbscript.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/velocity.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/verilog.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/vhdl.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/wollok.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/xml.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/xquery.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/yaml.js +0 -0
- data/vendor/assets/javascripts/ace/theme-ambiance.js +0 -0
- data/vendor/assets/javascripts/ace/theme-chaos.js +0 -0
- data/vendor/assets/javascripts/ace/theme-chrome.js +0 -0
- data/vendor/assets/javascripts/ace/theme-clouds.js +0 -0
- data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +0 -0
- data/vendor/assets/javascripts/ace/theme-cobalt.js +0 -0
- data/vendor/assets/javascripts/ace/theme-crimson_editor.js +0 -0
- data/vendor/assets/javascripts/ace/theme-dawn.js +0 -0
- data/vendor/assets/javascripts/ace/theme-dreamweaver.js +0 -0
- data/vendor/assets/javascripts/ace/theme-eclipse.js +0 -0
- data/vendor/assets/javascripts/ace/theme-github.js +0 -0
- data/vendor/assets/javascripts/ace/theme-gob.js +112 -0
- data/vendor/assets/javascripts/ace/theme-gruvbox.js +82 -0
- data/vendor/assets/javascripts/ace/theme-idle_fingers.js +0 -0
- data/vendor/assets/javascripts/ace/theme-iplastic.js +0 -0
- data/vendor/assets/javascripts/ace/theme-katzenmilch.js +0 -0
- data/vendor/assets/javascripts/ace/theme-kr_theme.js +0 -0
- data/vendor/assets/javascripts/ace/theme-kuroir.js +0 -0
- data/vendor/assets/javascripts/ace/theme-merbivore.js +0 -0
- data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +0 -0
- data/vendor/assets/javascripts/ace/theme-mono_industrial.js +0 -0
- data/vendor/assets/javascripts/ace/theme-monokai.js +0 -0
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +0 -0
- data/vendor/assets/javascripts/ace/theme-solarized_dark.js +0 -0
- data/vendor/assets/javascripts/ace/theme-solarized_light.js +0 -0
- data/vendor/assets/javascripts/ace/theme-sqlserver.js +0 -0
- data/vendor/assets/javascripts/ace/theme-terminal.js +0 -0
- data/vendor/assets/javascripts/ace/theme-textmate.js +0 -0
- data/vendor/assets/javascripts/ace/theme-tomorrow.js +0 -0
- data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +0 -0
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +0 -0
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +0 -0
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +0 -0
- data/vendor/assets/javascripts/ace/theme-twilight.js +0 -0
- data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +0 -0
- data/vendor/assets/javascripts/ace/theme-xcode.js +0 -0
- data/vendor/assets/javascripts/ace/worker-coffee.js +0 -0
- data/vendor/assets/javascripts/ace/worker-css.js +0 -0
- data/vendor/assets/javascripts/ace/worker-html.js +0 -0
- data/vendor/assets/javascripts/ace/worker-javascript.js +0 -0
- data/vendor/assets/javascripts/ace/worker-json.js +0 -0
- data/vendor/assets/javascripts/ace/worker-lua.js +2 -2
- data/vendor/assets/javascripts/ace/worker-php.js +0 -0
- data/vendor/assets/javascripts/ace/worker-xml.js +0 -0
- data/vendor/assets/javascripts/ace/worker-xquery.js +0 -0
- metadata +14 -3
@@ -47,6 +47,9 @@ var SqlHighlightRules = function() {
|
|
47
47
|
}, {
|
48
48
|
token : "string", // ' string
|
49
49
|
regex : "'.*?'"
|
50
|
+
}, {
|
51
|
+
token : "string", // ` string (apache drill)
|
52
|
+
regex : "`.*?`"
|
50
53
|
}, {
|
51
54
|
token : "constant.numeric", // float
|
52
55
|
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
File without changes
|
@@ -7,10 +7,10 @@ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
7
7
|
var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
|
8
8
|
var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
|
9
9
|
var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero";
|
10
|
-
var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";
|
10
|
+
var supportConstantColor = exports.supportConstantColor = "aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen";
|
11
11
|
var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
|
12
12
|
|
13
|
-
var numRe = exports.numRe = "\\-?(?:(?:[0-9]+
|
13
|
+
var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
|
14
14
|
var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
|
15
15
|
var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
|
16
16
|
|
@@ -26,84 +26,82 @@ var CssHighlightRules = function() {
|
|
26
26
|
|
27
27
|
this.$rules = {
|
28
28
|
"start" : [{
|
29
|
-
|
30
|
-
regex : "\\/\\*",
|
31
|
-
push : "comment"
|
29
|
+
include : ["strings", "url", "comments"]
|
32
30
|
}, {
|
33
31
|
token: "paren.lparen",
|
34
32
|
regex: "\\{",
|
35
|
-
|
33
|
+
next: "ruleset"
|
34
|
+
}, {
|
35
|
+
token: "paren.rparen",
|
36
|
+
regex: "\\}"
|
36
37
|
}, {
|
37
38
|
token: "string",
|
38
|
-
regex: "
|
39
|
-
|
39
|
+
regex: "@",
|
40
|
+
next: "media"
|
40
41
|
}, {
|
41
42
|
token: "keyword",
|
42
43
|
regex: "#[a-z0-9-_]+"
|
44
|
+
}, {
|
45
|
+
token: "keyword",
|
46
|
+
regex: "%"
|
43
47
|
}, {
|
44
48
|
token: "variable",
|
45
49
|
regex: "\\.[a-z0-9-_]+"
|
46
50
|
}, {
|
47
51
|
token: "string",
|
48
52
|
regex: ":[a-z0-9-_]+"
|
53
|
+
}, {
|
54
|
+
token : "constant.numeric",
|
55
|
+
regex : numRe
|
49
56
|
}, {
|
50
57
|
token: "constant",
|
51
58
|
regex: "[a-z0-9-_]+"
|
52
59
|
}, {
|
53
60
|
caseInsensitive: true
|
54
61
|
}],
|
55
|
-
|
56
|
-
"media"
|
57
|
-
|
58
|
-
regex : "\\/\\*",
|
59
|
-
push : "comment"
|
62
|
+
|
63
|
+
"media": [{
|
64
|
+
include : ["strings", "url", "comments"]
|
60
65
|
}, {
|
61
66
|
token: "paren.lparen",
|
62
67
|
regex: "\\{",
|
63
|
-
|
68
|
+
next: "start"
|
64
69
|
}, {
|
65
|
-
token: "
|
70
|
+
token: "paren.rparen",
|
66
71
|
regex: "\\}",
|
67
|
-
next: "
|
68
|
-
}, {
|
69
|
-
token: "keyword",
|
70
|
-
regex: "#[a-z0-9-_]+"
|
71
|
-
}, {
|
72
|
-
token: "variable",
|
73
|
-
regex: "\\.[a-z0-9-_]+"
|
72
|
+
next: "start"
|
74
73
|
}, {
|
75
74
|
token: "string",
|
76
|
-
regex: "
|
77
|
-
|
78
|
-
token: "constant",
|
79
|
-
regex: "[a-z0-9-_]+"
|
75
|
+
regex: ";",
|
76
|
+
next: "start"
|
80
77
|
}, {
|
81
|
-
|
78
|
+
token: "keyword",
|
79
|
+
regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
|
80
|
+
+ "|page|font|keyframes|viewport|counter-style|font-feature-values"
|
81
|
+
+ "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
|
82
82
|
}],
|
83
83
|
|
84
|
-
"
|
85
|
-
token
|
86
|
-
regex
|
87
|
-
|
88
|
-
|
89
|
-
|
84
|
+
"comments" : [{
|
85
|
+
token: "comment", // multi line comment
|
86
|
+
regex: "\\/\\*",
|
87
|
+
push: [{
|
88
|
+
token : "comment",
|
89
|
+
regex : "\\*\\/",
|
90
|
+
next : "pop"
|
91
|
+
}, {
|
92
|
+
defaultToken : "comment"
|
93
|
+
}]
|
90
94
|
}],
|
91
95
|
|
92
|
-
"ruleset" : [
|
93
|
-
|
96
|
+
"ruleset" : [{
|
97
|
+
regex : "-(webkit|ms|moz|o)-",
|
98
|
+
token : "text"
|
99
|
+
}, {
|
94
100
|
token : "paren.rparen",
|
95
101
|
regex : "\\}",
|
96
|
-
next:
|
97
|
-
}, {
|
98
|
-
token : "comment", // multi line comment
|
99
|
-
regex : "\\/\\*",
|
100
|
-
push : "comment"
|
101
|
-
}, {
|
102
|
-
token : "string", // single line
|
103
|
-
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
102
|
+
next : "start"
|
104
103
|
}, {
|
105
|
-
|
106
|
-
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
104
|
+
include : ["strings", "url", "comments"]
|
107
105
|
}, {
|
108
106
|
token : ["constant.numeric", "keyword"],
|
109
107
|
regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
|
@@ -123,14 +121,64 @@ var CssHighlightRules = function() {
|
|
123
121
|
token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
124
122
|
regex : pseudoClasses
|
125
123
|
}, {
|
126
|
-
|
127
|
-
regex : "(url\\()(.*)(\\))"
|
124
|
+
include: "url"
|
128
125
|
}, {
|
129
126
|
token : keywordMapper,
|
130
127
|
regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
131
128
|
}, {
|
132
129
|
caseInsensitive: true
|
130
|
+
}],
|
131
|
+
|
132
|
+
url: [{
|
133
|
+
token : "support.function",
|
134
|
+
regex : "(?:url(:?-prefix)?|domain|regexp)\\(",
|
135
|
+
push: [{
|
136
|
+
token : "support.function",
|
137
|
+
regex : "\\)",
|
138
|
+
next : "pop"
|
139
|
+
}, {
|
140
|
+
defaultToken: "string"
|
141
|
+
}]
|
142
|
+
}],
|
143
|
+
|
144
|
+
strings: [{
|
145
|
+
token : "string.start",
|
146
|
+
regex : "'",
|
147
|
+
push : [{
|
148
|
+
token : "string.end",
|
149
|
+
regex : "'|$",
|
150
|
+
next: "pop"
|
151
|
+
}, {
|
152
|
+
include : "escapes"
|
153
|
+
}, {
|
154
|
+
token : "constant.language.escape",
|
155
|
+
regex : /\\$/,
|
156
|
+
consumeLineEnd: true
|
157
|
+
}, {
|
158
|
+
defaultToken: "string"
|
159
|
+
}]
|
160
|
+
}, {
|
161
|
+
token : "string.start",
|
162
|
+
regex : '"',
|
163
|
+
push : [{
|
164
|
+
token : "string.end",
|
165
|
+
regex : '"|$',
|
166
|
+
next: "pop"
|
167
|
+
}, {
|
168
|
+
include : "escapes"
|
169
|
+
}, {
|
170
|
+
token : "constant.language.escape",
|
171
|
+
regex : /\\$/,
|
172
|
+
consumeLineEnd: true
|
173
|
+
}, {
|
174
|
+
defaultToken: "string"
|
175
|
+
}]
|
176
|
+
}],
|
177
|
+
escapes: [{
|
178
|
+
token : "constant.language.escape",
|
179
|
+
regex : /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
|
133
180
|
}]
|
181
|
+
|
134
182
|
};
|
135
183
|
|
136
184
|
this.normalizeRules();
|
@@ -254,11 +302,10 @@ var StylusHighlightRules = function() {
|
|
254
302
|
"comment" : [
|
255
303
|
{
|
256
304
|
token : "comment", // closing comment
|
257
|
-
regex : "
|
305
|
+
regex : "\\*\\/",
|
258
306
|
next : "start"
|
259
307
|
}, {
|
260
|
-
|
261
|
-
regex : ".+"
|
308
|
+
defaultToken : "comment"
|
262
309
|
}
|
263
310
|
],
|
264
311
|
"qqstring" : [
|
@@ -10,15 +10,11 @@ var XmlHighlightRules = function(normalize) {
|
|
10
10
|
this.$rules = {
|
11
11
|
start : [
|
12
12
|
{token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
|
13
|
-
{
|
14
|
-
token : ["punctuation.xml-decl.xml", "keyword.xml-decl.xml"],
|
15
|
-
regex : "(<\\?)(xml)(?=[\\s])", next : "xml_decl", caseInsensitive: true
|
16
|
-
},
|
17
13
|
{
|
18
14
|
token : ["punctuation.instruction.xml", "keyword.instruction.xml"],
|
19
15
|
regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"
|
20
16
|
},
|
21
|
-
{token : "comment.xml", regex : "<\\!--", next : "comment"},
|
17
|
+
{token : "comment.start.xml", regex : "<\\!--", next : "comment"},
|
22
18
|
{
|
23
19
|
token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
|
24
20
|
regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true
|
@@ -30,9 +26,9 @@ var XmlHighlightRules = function(normalize) {
|
|
30
26
|
{defaultToken : "text.xml"}
|
31
27
|
],
|
32
28
|
|
33
|
-
|
29
|
+
processing_instruction : [{
|
34
30
|
token : "entity.other.attribute-name.decl-attribute-name.xml",
|
35
|
-
regex :
|
31
|
+
regex : tagRegex
|
36
32
|
}, {
|
37
33
|
token : "keyword.operator.decl-attribute-equals.xml",
|
38
34
|
regex : "="
|
@@ -46,11 +42,6 @@ var XmlHighlightRules = function(normalize) {
|
|
46
42
|
next : "start"
|
47
43
|
}],
|
48
44
|
|
49
|
-
processing_instruction : [
|
50
|
-
{token : "punctuation.instruction.xml", regex : "\\?>", next : "start"},
|
51
|
-
{defaultToken : "instruction.xml"}
|
52
|
-
],
|
53
|
-
|
54
45
|
doctype : [
|
55
46
|
{include : "whitespace"},
|
56
47
|
{include : "string"},
|
@@ -88,7 +79,7 @@ var XmlHighlightRules = function(normalize) {
|
|
88
79
|
],
|
89
80
|
|
90
81
|
comment : [
|
91
|
-
{token : "comment.xml", regex : "-->", next : "start"},
|
82
|
+
{token : "comment.end.xml", regex : "-->", next : "start"},
|
92
83
|
{defaultToken : "comment.xml"}
|
93
84
|
],
|
94
85
|
|
@@ -135,7 +126,7 @@ var XmlHighlightRules = function(normalize) {
|
|
135
126
|
|
136
127
|
attributes: [{
|
137
128
|
token : "entity.other.attribute-name.xml",
|
138
|
-
regex :
|
129
|
+
regex : tagRegex
|
139
130
|
}, {
|
140
131
|
token : "keyword.operator.attribute-equals.xml",
|
141
132
|
regex : "="
|
@@ -414,7 +405,7 @@ function is(token, type) {
|
|
414
405
|
var tag = this._getFirstTagInLine(session, row);
|
415
406
|
|
416
407
|
if (!tag)
|
417
|
-
return
|
408
|
+
return this.getCommentFoldWidget(session, row);
|
418
409
|
|
419
410
|
if (tag.closing || (!tag.tagName && tag.selfClosing))
|
420
411
|
return foldStyle == "markbeginend" ? "end" : "";
|
@@ -427,6 +418,12 @@ function is(token, type) {
|
|
427
418
|
|
428
419
|
return "start";
|
429
420
|
};
|
421
|
+
|
422
|
+
this.getCommentFoldWidget = function(session, row) {
|
423
|
+
if (/comment/.test(session.getState(row)) && /<!-/.test(session.getLine(row)))
|
424
|
+
return "start";
|
425
|
+
return "";
|
426
|
+
}
|
430
427
|
this._getFirstTagInLine = function(session, row) {
|
431
428
|
var tokens = session.getTokens(row);
|
432
429
|
var tag = new Tag();
|
@@ -545,8 +542,10 @@ function is(token, type) {
|
|
545
542
|
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
546
543
|
var firstTag = this._getFirstTagInLine(session, row);
|
547
544
|
|
548
|
-
if (!firstTag)
|
549
|
-
return
|
545
|
+
if (!firstTag) {
|
546
|
+
return this.getCommentFoldWidget(session, row)
|
547
|
+
&& session.getCommentFoldRange(row, session.getLine(row).length);
|
548
|
+
}
|
550
549
|
|
551
550
|
var isBackward = firstTag.closing || firstTag.selfClosing;
|
552
551
|
var stack = [];
|
@@ -772,11 +771,11 @@ var JavaScriptHighlightRules = function(options) {
|
|
772
771
|
regex : '"(?=.)',
|
773
772
|
next : "qqstring"
|
774
773
|
}, {
|
775
|
-
token : "constant.numeric", //
|
776
|
-
regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
|
774
|
+
token : "constant.numeric", // hexadecimal, octal and binary
|
775
|
+
regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
|
777
776
|
}, {
|
778
|
-
token : "constant.numeric", //
|
779
|
-
regex : /
|
777
|
+
token : "constant.numeric", // decimal integers and floats
|
778
|
+
regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
|
780
779
|
}, {
|
781
780
|
token : [
|
782
781
|
"storage.type", "punctuation.operator", "support.function",
|
@@ -825,6 +824,9 @@ var JavaScriptHighlightRules = function(options) {
|
|
825
824
|
],
|
826
825
|
regex : "(:)(\\s*)(function)(\\s*)(\\()",
|
827
826
|
next: "function_arguments"
|
827
|
+
}, {
|
828
|
+
token : "keyword",
|
829
|
+
regex : "from(?=\\s*('|\"))"
|
828
830
|
}, {
|
829
831
|
token : "keyword",
|
830
832
|
regex : "(?:" + kwBeforeRe + ")\\b",
|
@@ -842,6 +844,9 @@ var JavaScriptHighlightRules = function(options) {
|
|
842
844
|
token : "punctuation.operator",
|
843
845
|
regex : /[.](?![.])/,
|
844
846
|
next : "property"
|
847
|
+
}, {
|
848
|
+
token : "storage.type",
|
849
|
+
regex : /=>/
|
845
850
|
}, {
|
846
851
|
token : "keyword.operator",
|
847
852
|
regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
|
@@ -982,7 +987,7 @@ var JavaScriptHighlightRules = function(options) {
|
|
982
987
|
}, {
|
983
988
|
token : "string",
|
984
989
|
regex : "\\\\$",
|
985
|
-
|
990
|
+
consumeLineEnd : true
|
986
991
|
}, {
|
987
992
|
token : "string",
|
988
993
|
regex : '"|$',
|
@@ -998,7 +1003,7 @@ var JavaScriptHighlightRules = function(options) {
|
|
998
1003
|
}, {
|
999
1004
|
token : "string",
|
1000
1005
|
regex : "\\\\$",
|
1001
|
-
|
1006
|
+
consumeLineEnd : true
|
1002
1007
|
}, {
|
1003
1008
|
token : "string",
|
1004
1009
|
regex : "'|$",
|
@@ -1008,8 +1013,8 @@ var JavaScriptHighlightRules = function(options) {
|
|
1008
1013
|
}
|
1009
1014
|
]
|
1010
1015
|
};
|
1011
|
-
|
1012
|
-
|
1016
|
+
|
1017
|
+
|
1013
1018
|
if (!options || !options.noES6) {
|
1014
1019
|
this.$rules.no_regex.unshift({
|
1015
1020
|
regex: "[{}]", onMatch: function(val, state, stack) {
|
@@ -1044,14 +1049,14 @@ var JavaScriptHighlightRules = function(options) {
|
|
1044
1049
|
defaultToken: "string.quasi"
|
1045
1050
|
}]
|
1046
1051
|
});
|
1047
|
-
|
1052
|
+
|
1048
1053
|
if (!options || options.jsx != false)
|
1049
1054
|
JSX.call(this);
|
1050
1055
|
}
|
1051
|
-
|
1056
|
+
|
1052
1057
|
this.embedRules(DocCommentHighlightRules, "doc-",
|
1053
1058
|
[ DocCommentHighlightRules.getEndRule("no_regex") ]);
|
1054
|
-
|
1059
|
+
|
1055
1060
|
this.normalizeRules();
|
1056
1061
|
};
|
1057
1062
|
|
@@ -1102,8 +1107,8 @@ function JSX() {
|
|
1102
1107
|
{defaultToken: "string"}
|
1103
1108
|
];
|
1104
1109
|
this.$rules.jsxAttributes = [{
|
1105
|
-
token : "meta.tag.punctuation.tag-close.xml",
|
1106
|
-
regex : "/?>",
|
1110
|
+
token : "meta.tag.punctuation.tag-close.xml",
|
1111
|
+
regex : "/?>",
|
1107
1112
|
onMatch : function(value, currentState, stack) {
|
1108
1113
|
if (currentState == stack[0])
|
1109
1114
|
stack.shift();
|
@@ -1118,7 +1123,7 @@ function JSX() {
|
|
1118
1123
|
return [{type: this.token, value: value}];
|
1119
1124
|
},
|
1120
1125
|
nextState: "jsx"
|
1121
|
-
},
|
1126
|
+
},
|
1122
1127
|
jsxJsRule,
|
1123
1128
|
comments("jsxAttributes"),
|
1124
1129
|
{
|
@@ -1385,6 +1390,7 @@ oop.inherits(Mode, TextMode);
|
|
1385
1390
|
|
1386
1391
|
this.lineCommentStart = "//";
|
1387
1392
|
this.blockComment = {start: "/*", end: "*/"};
|
1393
|
+
this.$quotes = {'"': '"', "'": "'", "`": "`"};
|
1388
1394
|
|
1389
1395
|
this.getNextLineIndent = function(state, line, tab) {
|
1390
1396
|
var indent = this.$getIndent(line);
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -106,11 +106,11 @@ var JavaScriptHighlightRules = function(options) {
|
|
106
106
|
regex : '"(?=.)',
|
107
107
|
next : "qqstring"
|
108
108
|
}, {
|
109
|
-
token : "constant.numeric", //
|
110
|
-
regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
|
109
|
+
token : "constant.numeric", // hexadecimal, octal and binary
|
110
|
+
regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
|
111
111
|
}, {
|
112
|
-
token : "constant.numeric", //
|
113
|
-
regex : /
|
112
|
+
token : "constant.numeric", // decimal integers and floats
|
113
|
+
regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
|
114
114
|
}, {
|
115
115
|
token : [
|
116
116
|
"storage.type", "punctuation.operator", "support.function",
|
@@ -159,6 +159,9 @@ var JavaScriptHighlightRules = function(options) {
|
|
159
159
|
],
|
160
160
|
regex : "(:)(\\s*)(function)(\\s*)(\\()",
|
161
161
|
next: "function_arguments"
|
162
|
+
}, {
|
163
|
+
token : "keyword",
|
164
|
+
regex : "from(?=\\s*('|\"))"
|
162
165
|
}, {
|
163
166
|
token : "keyword",
|
164
167
|
regex : "(?:" + kwBeforeRe + ")\\b",
|
@@ -176,6 +179,9 @@ var JavaScriptHighlightRules = function(options) {
|
|
176
179
|
token : "punctuation.operator",
|
177
180
|
regex : /[.](?![.])/,
|
178
181
|
next : "property"
|
182
|
+
}, {
|
183
|
+
token : "storage.type",
|
184
|
+
regex : /=>/
|
179
185
|
}, {
|
180
186
|
token : "keyword.operator",
|
181
187
|
regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
|
@@ -316,7 +322,7 @@ var JavaScriptHighlightRules = function(options) {
|
|
316
322
|
}, {
|
317
323
|
token : "string",
|
318
324
|
regex : "\\\\$",
|
319
|
-
|
325
|
+
consumeLineEnd : true
|
320
326
|
}, {
|
321
327
|
token : "string",
|
322
328
|
regex : '"|$',
|
@@ -332,7 +338,7 @@ var JavaScriptHighlightRules = function(options) {
|
|
332
338
|
}, {
|
333
339
|
token : "string",
|
334
340
|
regex : "\\\\$",
|
335
|
-
|
341
|
+
consumeLineEnd : true
|
336
342
|
}, {
|
337
343
|
token : "string",
|
338
344
|
regex : "'|$",
|
@@ -342,8 +348,8 @@ var JavaScriptHighlightRules = function(options) {
|
|
342
348
|
}
|
343
349
|
]
|
344
350
|
};
|
345
|
-
|
346
|
-
|
351
|
+
|
352
|
+
|
347
353
|
if (!options || !options.noES6) {
|
348
354
|
this.$rules.no_regex.unshift({
|
349
355
|
regex: "[{}]", onMatch: function(val, state, stack) {
|
@@ -378,14 +384,14 @@ var JavaScriptHighlightRules = function(options) {
|
|
378
384
|
defaultToken: "string.quasi"
|
379
385
|
}]
|
380
386
|
});
|
381
|
-
|
387
|
+
|
382
388
|
if (!options || options.jsx != false)
|
383
389
|
JSX.call(this);
|
384
390
|
}
|
385
|
-
|
391
|
+
|
386
392
|
this.embedRules(DocCommentHighlightRules, "doc-",
|
387
393
|
[ DocCommentHighlightRules.getEndRule("no_regex") ]);
|
388
|
-
|
394
|
+
|
389
395
|
this.normalizeRules();
|
390
396
|
};
|
391
397
|
|
@@ -436,8 +442,8 @@ function JSX() {
|
|
436
442
|
{defaultToken: "string"}
|
437
443
|
];
|
438
444
|
this.$rules.jsxAttributes = [{
|
439
|
-
token : "meta.tag.punctuation.tag-close.xml",
|
440
|
-
regex : "/?>",
|
445
|
+
token : "meta.tag.punctuation.tag-close.xml",
|
446
|
+
regex : "/?>",
|
441
447
|
onMatch : function(value, currentState, stack) {
|
442
448
|
if (currentState == stack[0])
|
443
449
|
stack.shift();
|
@@ -452,7 +458,7 @@ function JSX() {
|
|
452
458
|
return [{type: this.token, value: value}];
|
453
459
|
},
|
454
460
|
nextState: "jsx"
|
455
|
-
},
|
461
|
+
},
|
456
462
|
jsxJsRule,
|
457
463
|
comments("jsxAttributes"),
|
458
464
|
{
|
@@ -719,6 +725,7 @@ oop.inherits(Mode, TextMode);
|
|
719
725
|
|
720
726
|
this.lineCommentStart = "//";
|
721
727
|
this.blockComment = {start: "/*", end: "*/"};
|
728
|
+
this.$quotes = {'"': '"', "'": "'", "`": "`"};
|
722
729
|
|
723
730
|
this.getNextLineIndent = function(state, line, tab) {
|
724
731
|
var indent = this.$getIndent(line);
|