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
@@ -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);
|
@@ -24,11 +24,15 @@ var JsonHighlightRules = function() {
|
|
24
24
|
token : "constant.language.boolean",
|
25
25
|
regex : "(?:true|false)\\b"
|
26
26
|
}, {
|
27
|
-
token : "
|
27
|
+
token : "text", // single quoted strings are not allowed
|
28
28
|
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
29
29
|
}, {
|
30
|
-
token : "
|
30
|
+
token : "comment", // comments are not allowed, but who cares?
|
31
31
|
regex : "\\/\\/.*$"
|
32
|
+
}, {
|
33
|
+
token : "comment.start", // comments are not allowed, but who cares?
|
34
|
+
regex : "\\/\\*",
|
35
|
+
next : "comment"
|
32
36
|
}, {
|
33
37
|
token : "paren.lparen",
|
34
38
|
regex : "[[({]"
|
@@ -46,15 +50,19 @@ var JsonHighlightRules = function() {
|
|
46
50
|
regex : /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/
|
47
51
|
}, {
|
48
52
|
token : "string",
|
49
|
-
regex : '
|
50
|
-
}, {
|
51
|
-
token : "string",
|
52
|
-
regex : '"',
|
53
|
+
regex : '"|$',
|
53
54
|
next : "start"
|
54
55
|
}, {
|
55
|
-
|
56
|
-
|
56
|
+
defaultToken : "string"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"comment" : [
|
60
|
+
{
|
61
|
+
token : "comment.end", // comments are not allowed, but who cares?
|
62
|
+
regex : "\\*\\/",
|
57
63
|
next : "start"
|
64
|
+
}, {
|
65
|
+
defaultToken: "comment"
|
58
66
|
}
|
59
67
|
]
|
60
68
|
};
|
@@ -1,6 +1,28 @@
|
|
1
1
|
define("ace/mode/xquery/jsoniq_lexer",["require","exports","module"], function(require, exports, module) {
|
2
|
-
module.exports = (function
|
3
|
-
|
2
|
+
module.exports = (function outer (modules, cache, entry) {
|
3
|
+
var previousRequire = typeof require == "function" && require;
|
4
|
+
function newRequire(name, jumped){
|
5
|
+
if(!cache[name]) {
|
6
|
+
if(!modules[name]) {
|
7
|
+
var currentRequire = typeof require == "function" && require;
|
8
|
+
if (!jumped && currentRequire) return currentRequire(name, true);
|
9
|
+
if (previousRequire) return previousRequire(name, true);
|
10
|
+
var err = new Error('Cannot find module \'' + name + '\'');
|
11
|
+
err.code = 'MODULE_NOT_FOUND';
|
12
|
+
throw err;
|
13
|
+
}
|
14
|
+
var m = cache[name] = {exports:{}};
|
15
|
+
modules[name][0].call(m.exports, function(x){
|
16
|
+
var id = modules[name][1][x];
|
17
|
+
return newRequire(id ? id : x);
|
18
|
+
},m,m.exports,outer,modules,cache,entry);
|
19
|
+
}
|
20
|
+
return cache[name].exports;
|
21
|
+
}
|
22
|
+
for(var i=0;i<entry.length;i++) newRequire(entry[i]);
|
23
|
+
return newRequire(entry[0]);
|
24
|
+
})
|
25
|
+
({"/node_modules/xqlint/lib/lexers/JSONiqTokenizer.js":[function(_dereq_,module,exports){
|
4
26
|
var JSONiqTokenizer = exports.JSONiqTokenizer = function JSONiqTokenizer(string, parsingEventHandler)
|
5
27
|
{
|
6
28
|
init(string, parsingEventHandler);
|
@@ -1823,9 +1845,7 @@ JSONiqTokenizer.TOKEN =
|
|
1823
1845
|
"'}}'"
|
1824
1846
|
];
|
1825
1847
|
|
1826
|
-
},
|
1827
|
-
{}],
|
1828
|
-
2:[function(_dereq_,module,exports){
|
1848
|
+
},{}],"/node_modules/xqlint/lib/lexers/jsoniq_lexer.js":[function(_dereq_,module,exports){
|
1829
1849
|
'use strict';
|
1830
1850
|
|
1831
1851
|
var JSONiqTokenizer = _dereq_('./JSONiqTokenizer').JSONiqTokenizer;
|
@@ -1960,9 +1980,7 @@ var Rules = {
|
|
1960
1980
|
};
|
1961
1981
|
|
1962
1982
|
exports.JSONiqLexer = function(){ return new Lexer(JSONiqTokenizer, Rules); };
|
1963
|
-
},
|
1964
|
-
{"./JSONiqTokenizer":1,"./lexer":3}],
|
1965
|
-
3:[function(_dereq_,module,exports){
|
1983
|
+
},{"./JSONiqTokenizer":"/node_modules/xqlint/lib/lexers/JSONiqTokenizer.js","./lexer":"/node_modules/xqlint/lib/lexers/lexer.js"}],"/node_modules/xqlint/lib/lexers/lexer.js":[function(_dereq_,module,exports){
|
1966
1984
|
'use strict';
|
1967
1985
|
|
1968
1986
|
var TokenHandler = function(code) {
|
@@ -2063,9 +2081,7 @@ exports.Lexer = function(Tokenizer, Rules) {
|
|
2063
2081
|
};
|
2064
2082
|
};
|
2065
2083
|
};
|
2066
|
-
},
|
2067
|
-
{}]},{},[2])
|
2068
|
-
(2)
|
2084
|
+
},{}]},{},["/node_modules/xqlint/lib/lexers/jsoniq_lexer.js"]);
|
2069
2085
|
|
2070
2086
|
});
|
2071
2087
|
|
@@ -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: "
|
75
|
+
regex: ";",
|
76
|
+
next: "start"
|
77
77
|
}, {
|
78
|
-
token: "
|
79
|
-
regex: "
|
80
|
-
|
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();
|
@@ -250,11 +298,11 @@ var JavaScriptHighlightRules = function(options) {
|
|
250
298
|
regex : '"(?=.)',
|
251
299
|
next : "qqstring"
|
252
300
|
}, {
|
253
|
-
token : "constant.numeric", //
|
254
|
-
regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
|
301
|
+
token : "constant.numeric", // hexadecimal, octal and binary
|
302
|
+
regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
|
255
303
|
}, {
|
256
|
-
token : "constant.numeric", //
|
257
|
-
regex : /
|
304
|
+
token : "constant.numeric", // decimal integers and floats
|
305
|
+
regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
|
258
306
|
}, {
|
259
307
|
token : [
|
260
308
|
"storage.type", "punctuation.operator", "support.function",
|
@@ -303,6 +351,9 @@ var JavaScriptHighlightRules = function(options) {
|
|
303
351
|
],
|
304
352
|
regex : "(:)(\\s*)(function)(\\s*)(\\()",
|
305
353
|
next: "function_arguments"
|
354
|
+
}, {
|
355
|
+
token : "keyword",
|
356
|
+
regex : "from(?=\\s*('|\"))"
|
306
357
|
}, {
|
307
358
|
token : "keyword",
|
308
359
|
regex : "(?:" + kwBeforeRe + ")\\b",
|
@@ -320,6 +371,9 @@ var JavaScriptHighlightRules = function(options) {
|
|
320
371
|
token : "punctuation.operator",
|
321
372
|
regex : /[.](?![.])/,
|
322
373
|
next : "property"
|
374
|
+
}, {
|
375
|
+
token : "storage.type",
|
376
|
+
regex : /=>/
|
323
377
|
}, {
|
324
378
|
token : "keyword.operator",
|
325
379
|
regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
|
@@ -460,7 +514,7 @@ var JavaScriptHighlightRules = function(options) {
|
|
460
514
|
}, {
|
461
515
|
token : "string",
|
462
516
|
regex : "\\\\$",
|
463
|
-
|
517
|
+
consumeLineEnd : true
|
464
518
|
}, {
|
465
519
|
token : "string",
|
466
520
|
regex : '"|$',
|
@@ -476,7 +530,7 @@ var JavaScriptHighlightRules = function(options) {
|
|
476
530
|
}, {
|
477
531
|
token : "string",
|
478
532
|
regex : "\\\\$",
|
479
|
-
|
533
|
+
consumeLineEnd : true
|
480
534
|
}, {
|
481
535
|
token : "string",
|
482
536
|
regex : "'|$",
|
@@ -486,8 +540,8 @@ var JavaScriptHighlightRules = function(options) {
|
|
486
540
|
}
|
487
541
|
]
|
488
542
|
};
|
489
|
-
|
490
|
-
|
543
|
+
|
544
|
+
|
491
545
|
if (!options || !options.noES6) {
|
492
546
|
this.$rules.no_regex.unshift({
|
493
547
|
regex: "[{}]", onMatch: function(val, state, stack) {
|
@@ -522,14 +576,14 @@ var JavaScriptHighlightRules = function(options) {
|
|
522
576
|
defaultToken: "string.quasi"
|
523
577
|
}]
|
524
578
|
});
|
525
|
-
|
579
|
+
|
526
580
|
if (!options || options.jsx != false)
|
527
581
|
JSX.call(this);
|
528
582
|
}
|
529
|
-
|
583
|
+
|
530
584
|
this.embedRules(DocCommentHighlightRules, "doc-",
|
531
585
|
[ DocCommentHighlightRules.getEndRule("no_regex") ]);
|
532
|
-
|
586
|
+
|
533
587
|
this.normalizeRules();
|
534
588
|
};
|
535
589
|
|
@@ -580,8 +634,8 @@ function JSX() {
|
|
580
634
|
{defaultToken: "string"}
|
581
635
|
];
|
582
636
|
this.$rules.jsxAttributes = [{
|
583
|
-
token : "meta.tag.punctuation.tag-close.xml",
|
584
|
-
regex : "/?>",
|
637
|
+
token : "meta.tag.punctuation.tag-close.xml",
|
638
|
+
regex : "/?>",
|
585
639
|
onMatch : function(value, currentState, stack) {
|
586
640
|
if (currentState == stack[0])
|
587
641
|
stack.shift();
|
@@ -596,7 +650,7 @@ function JSX() {
|
|
596
650
|
return [{type: this.token, value: value}];
|
597
651
|
},
|
598
652
|
nextState: "jsx"
|
599
|
-
},
|
653
|
+
},
|
600
654
|
jsxJsRule,
|
601
655
|
comments("jsxAttributes"),
|
602
656
|
{
|
@@ -671,15 +725,11 @@ var XmlHighlightRules = function(normalize) {
|
|
671
725
|
this.$rules = {
|
672
726
|
start : [
|
673
727
|
{token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
|
674
|
-
{
|
675
|
-
token : ["punctuation.xml-decl.xml", "keyword.xml-decl.xml"],
|
676
|
-
regex : "(<\\?)(xml)(?=[\\s])", next : "xml_decl", caseInsensitive: true
|
677
|
-
},
|
678
728
|
{
|
679
729
|
token : ["punctuation.instruction.xml", "keyword.instruction.xml"],
|
680
730
|
regex : "(<\\?)(" + tagRegex + ")", next : "processing_instruction"
|
681
731
|
},
|
682
|
-
{token : "comment.xml", regex : "<\\!--", next : "comment"},
|
732
|
+
{token : "comment.start.xml", regex : "<\\!--", next : "comment"},
|
683
733
|
{
|
684
734
|
token : ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
|
685
735
|
regex : "(<\\!)(DOCTYPE)(?=[\\s])", next : "doctype", caseInsensitive: true
|
@@ -691,9 +741,9 @@ var XmlHighlightRules = function(normalize) {
|
|
691
741
|
{defaultToken : "text.xml"}
|
692
742
|
],
|
693
743
|
|
694
|
-
|
744
|
+
processing_instruction : [{
|
695
745
|
token : "entity.other.attribute-name.decl-attribute-name.xml",
|
696
|
-
regex :
|
746
|
+
regex : tagRegex
|
697
747
|
}, {
|
698
748
|
token : "keyword.operator.decl-attribute-equals.xml",
|
699
749
|
regex : "="
|
@@ -707,11 +757,6 @@ var XmlHighlightRules = function(normalize) {
|
|
707
757
|
next : "start"
|
708
758
|
}],
|
709
759
|
|
710
|
-
processing_instruction : [
|
711
|
-
{token : "punctuation.instruction.xml", regex : "\\?>", next : "start"},
|
712
|
-
{defaultToken : "instruction.xml"}
|
713
|
-
],
|
714
|
-
|
715
760
|
doctype : [
|
716
761
|
{include : "whitespace"},
|
717
762
|
{include : "string"},
|
@@ -749,7 +794,7 @@ var XmlHighlightRules = function(normalize) {
|
|
749
794
|
],
|
750
795
|
|
751
796
|
comment : [
|
752
|
-
{token : "comment.xml", regex : "-->", next : "start"},
|
797
|
+
{token : "comment.end.xml", regex : "-->", next : "start"},
|
753
798
|
{defaultToken : "comment.xml"}
|
754
799
|
],
|
755
800
|
|
@@ -796,7 +841,7 @@ var XmlHighlightRules = function(normalize) {
|
|
796
841
|
|
797
842
|
attributes: [{
|
798
843
|
token : "entity.other.attribute-name.xml",
|
799
|
-
regex :
|
844
|
+
regex : tagRegex
|
800
845
|
}, {
|
801
846
|
token : "keyword.operator.attribute-equals.xml",
|
802
847
|
regex : "="
|
@@ -1057,11 +1102,10 @@ var JavaHighlightRules = function() {
|
|
1057
1102
|
"comment" : [
|
1058
1103
|
{
|
1059
1104
|
token : "comment", // closing comment
|
1060
|
-
regex : "
|
1105
|
+
regex : "\\*\\/",
|
1061
1106
|
next : "start"
|
1062
1107
|
}, {
|
1063
|
-
|
1064
|
-
regex : ".+"
|
1108
|
+
defaultToken : "comment"
|
1065
1109
|
}
|
1066
1110
|
]
|
1067
1111
|
};
|