ace-rails-ap 4.1.1 → 4.1.2
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 +529 -133
- 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 +17 -12
- 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 +12 -4
- data/vendor/assets/javascripts/ace/ext-linking.js +0 -0
- data/vendor/assets/javascripts/ace/ext-modelist.js +11 -5
- data/vendor/assets/javascripts/ace/ext-old_ie.js +1 -0
- data/vendor/assets/javascripts/ace/ext-searchbox.js +1 -0
- data/vendor/assets/javascripts/ace/ext-settings_menu.js +12 -5
- 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 +0 -0
- data/vendor/assets/javascripts/ace/ext-statusbar.js +0 -0
- data/vendor/assets/javascripts/ace/ext-textarea.js +0 -0
- data/vendor/assets/javascripts/ace/ext-themelist.js +1 -0
- data/vendor/assets/javascripts/ace/ext-whitespace.js +0 -0
- data/vendor/assets/javascripts/ace/keybinding-emacs.js +0 -0
- data/vendor/assets/javascripts/ace/keybinding-vim.js +28 -18
- data/vendor/assets/javascripts/ace/mode-abap.js +4 -4
- data/vendor/assets/javascripts/ace/mode-abc.js +1 -0
- data/vendor/assets/javascripts/ace/mode-actionscript.js +1 -0
- data/vendor/assets/javascripts/ace/mode-ada.js +2 -2
- data/vendor/assets/javascripts/ace/mode-apache_conf.js +1 -0
- data/vendor/assets/javascripts/ace/mode-applescript.js +2 -2
- data/vendor/assets/javascripts/ace/mode-asciidoc.js +1 -1
- data/vendor/assets/javascripts/ace/mode-assembly_x86.js +1 -0
- data/vendor/assets/javascripts/ace/mode-autohotkey.js +1 -0
- data/vendor/assets/javascripts/ace/mode-batchfile.js +1 -0
- data/vendor/assets/javascripts/ace/mode-bro.js +327 -0
- data/vendor/assets/javascripts/ace/mode-c9search.js +31 -14
- data/vendor/assets/javascripts/ace/mode-c_cpp.js +4 -361
- data/vendor/assets/javascripts/ace/mode-cirru.js +7 -6
- data/vendor/assets/javascripts/ace/mode-clojure.js +4 -3
- data/vendor/assets/javascripts/ace/mode-cobol.js +2 -2
- data/vendor/assets/javascripts/ace/mode-coffee.js +2 -3
- data/vendor/assets/javascripts/ace/mode-coldfusion.js +16 -370
- data/vendor/assets/javascripts/ace/mode-csharp.js +0 -357
- data/vendor/assets/javascripts/ace/mode-css.js +0 -357
- data/vendor/assets/javascripts/ace/mode-curly.js +16 -371
- data/vendor/assets/javascripts/ace/mode-d.js +2 -1
- data/vendor/assets/javascripts/ace/mode-dart.js +4 -361
- data/vendor/assets/javascripts/ace/mode-diff.js +0 -0
- data/vendor/assets/javascripts/ace/mode-django.js +15 -369
- data/vendor/assets/javascripts/ace/mode-dockerfile.js +3 -360
- data/vendor/assets/javascripts/ace/mode-dot.js +2 -1
- data/vendor/assets/javascripts/ace/mode-drools.js +459 -0
- data/vendor/assets/javascripts/ace/mode-eiffel.js +2 -2
- data/vendor/assets/javascripts/ace/mode-ejs.js +19 -373
- data/vendor/assets/javascripts/ace/mode-elixir.js +1 -0
- data/vendor/assets/javascripts/ace/mode-elm.js +5 -2
- data/vendor/assets/javascripts/ace/mode-erlang.js +4 -3
- data/vendor/assets/javascripts/ace/mode-forth.js +14 -13
- data/vendor/assets/javascripts/ace/mode-fortran.js +423 -0
- data/vendor/assets/javascripts/ace/mode-ftl.js +7 -6
- data/vendor/assets/javascripts/ace/mode-gcode.js +1 -0
- data/vendor/assets/javascripts/ace/mode-gherkin.js +2 -1
- data/vendor/assets/javascripts/ace/mode-gitignore.js +1 -0
- data/vendor/assets/javascripts/ace/mode-glsl.js +4 -361
- data/vendor/assets/javascripts/ace/mode-gobstones.js +8 -365
- data/vendor/assets/javascripts/ace/mode-golang.js +0 -357
- data/vendor/assets/javascripts/ace/mode-groovy.js +7 -365
- data/vendor/assets/javascripts/ace/mode-haml.js +12 -11
- data/vendor/assets/javascripts/ace/mode-handlebars.js +15 -371
- data/vendor/assets/javascripts/ace/mode-haskell.js +29 -28
- data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +134 -0
- data/vendor/assets/javascripts/ace/mode-haxe.js +0 -357
- data/vendor/assets/javascripts/ace/mode-hjson.js +346 -0
- data/vendor/assets/javascripts/ace/mode-html.js +15 -369
- data/vendor/assets/javascripts/ace/mode-html_elixir.js +16 -369
- data/vendor/assets/javascripts/ace/mode-html_ruby.js +18 -372
- data/vendor/assets/javascripts/ace/mode-ini.js +1 -0
- data/vendor/assets/javascripts/ace/mode-io.js +3 -3
- data/vendor/assets/javascripts/ace/mode-jack.js +0 -357
- data/vendor/assets/javascripts/ace/mode-jade.js +11 -12
- data/vendor/assets/javascripts/ace/mode-java.js +7 -365
- data/vendor/assets/javascripts/ace/mode-javascript.js +7 -365
- data/vendor/assets/javascripts/ace/mode-json.js +0 -357
- data/vendor/assets/javascripts/ace/mode-jsoniq.js +5 -358
- data/vendor/assets/javascripts/ace/mode-jsp.js +6 -363
- data/vendor/assets/javascripts/ace/mode-jsx.js +0 -357
- data/vendor/assets/javascripts/ace/mode-julia.js +1 -0
- data/vendor/assets/javascripts/ace/mode-kotlin.js +786 -0
- data/vendor/assets/javascripts/ace/mode-latex.js +2 -2
- data/vendor/assets/javascripts/ace/mode-lean.js +0 -0
- data/vendor/assets/javascripts/ace/mode-less.js +0 -357
- data/vendor/assets/javascripts/ace/mode-liquid.js +9 -9
- data/vendor/assets/javascripts/ace/mode-lisp.js +1 -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 -357
- data/vendor/assets/javascripts/ace/mode-lsl.js +0 -357
- data/vendor/assets/javascripts/ace/mode-lua.js +1 -0
- data/vendor/assets/javascripts/ace/mode-luapage.js +16 -369
- data/vendor/assets/javascripts/ace/mode-lucene.js +1 -0
- data/vendor/assets/javascripts/ace/mode-makefile.js +3 -2
- data/vendor/assets/javascripts/ace/mode-markdown.js +17 -370
- data/vendor/assets/javascripts/ace/mode-mask.js +10 -367
- data/vendor/assets/javascripts/ace/mode-matlab.js +21 -21
- data/vendor/assets/javascripts/ace/mode-maze.js +1 -0
- data/vendor/assets/javascripts/ace/mode-mel.js +0 -357
- 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 +2 -1
- data/vendor/assets/javascripts/ace/mode-mysql.js +2 -2
- data/vendor/assets/javascripts/ace/mode-nix.js +5 -361
- data/vendor/assets/javascripts/ace/mode-nsis.js +11 -10
- data/vendor/assets/javascripts/ace/mode-objectivec.js +9 -8
- data/vendor/assets/javascripts/ace/mode-ocaml.js +1 -0
- data/vendor/assets/javascripts/ace/mode-pascal.js +1 -0
- data/vendor/assets/javascripts/ace/mode-perl.js +3 -3
- data/vendor/assets/javascripts/ace/mode-pgsql.js +8 -8
- data/vendor/assets/javascripts/ace/mode-php.js +197 -723
- data/vendor/assets/javascripts/ace/mode-plain_text.js +0 -0
- data/vendor/assets/javascripts/ace/mode-powershell.js +0 -357
- data/vendor/assets/javascripts/ace/mode-praat.js +4 -4
- data/vendor/assets/javascripts/ace/mode-prolog.js +1 -0
- data/vendor/assets/javascripts/ace/mode-properties.js +1 -0
- data/vendor/assets/javascripts/ace/mode-protobuf.js +4 -361
- data/vendor/assets/javascripts/ace/mode-python.js +2 -1
- data/vendor/assets/javascripts/ace/mode-r.js +5 -6
- data/vendor/assets/javascripts/ace/mode-razor.js +26 -370
- data/vendor/assets/javascripts/ace/mode-rdoc.js +4 -4
- data/vendor/assets/javascripts/ace/mode-rhtml.js +17 -371
- data/vendor/assets/javascripts/ace/mode-rst.js +3 -3
- data/vendor/assets/javascripts/ace/mode-ruby.js +3 -360
- data/vendor/assets/javascripts/ace/mode-rust.js +5 -4
- data/vendor/assets/javascripts/ace/mode-sass.js +1 -0
- data/vendor/assets/javascripts/ace/mode-scad.js +1 -359
- data/vendor/assets/javascripts/ace/mode-scala.js +9 -369
- data/vendor/assets/javascripts/ace/mode-scheme.js +1 -0
- data/vendor/assets/javascripts/ace/mode-scss.js +0 -357
- data/vendor/assets/javascripts/ace/mode-sh.js +3 -360
- data/vendor/assets/javascripts/ace/mode-sjs.js +7 -365
- data/vendor/assets/javascripts/ace/mode-smarty.js +15 -369
- data/vendor/assets/javascripts/ace/mode-snippets.js +1 -0
- data/vendor/assets/javascripts/ace/mode-soy_template.js +15 -369
- data/vendor/assets/javascripts/ace/mode-space.js +1 -0
- data/vendor/assets/javascripts/ace/mode-sql.js +2 -2
- data/vendor/assets/javascripts/ace/mode-sqlserver.js +2 -2
- data/vendor/assets/javascripts/ace/mode-stylus.js +1 -0
- data/vendor/assets/javascripts/ace/mode-svg.js +12 -366
- data/vendor/assets/javascripts/ace/mode-swift.js +2 -358
- data/vendor/assets/javascripts/ace/mode-swig.js +0 -0
- data/vendor/assets/javascripts/ace/mode-tcl.js +2 -1
- data/vendor/assets/javascripts/ace/mode-tex.js +3 -2
- data/vendor/assets/javascripts/ace/mode-text.js +0 -0
- data/vendor/assets/javascripts/ace/mode-textile.js +1 -0
- data/vendor/assets/javascripts/ace/mode-toml.js +1 -0
- data/vendor/assets/javascripts/ace/mode-tsx.js +884 -0
- data/vendor/assets/javascripts/ace/mode-twig.js +16 -370
- data/vendor/assets/javascripts/ace/mode-typescript.js +8 -366
- data/vendor/assets/javascripts/ace/mode-vala.js +1 -358
- data/vendor/assets/javascripts/ace/mode-vbscript.js +44 -71
- data/vendor/assets/javascripts/ace/mode-velocity.js +15 -369
- data/vendor/assets/javascripts/ace/mode-verilog.js +2 -1
- data/vendor/assets/javascripts/ace/mode-vhdl.js +2 -2
- data/vendor/assets/javascripts/ace/mode-wollok.js +7 -365
- data/vendor/assets/javascripts/ace/mode-xml.js +5 -1
- data/vendor/assets/javascripts/ace/mode-xquery.js +32 -369
- data/vendor/assets/javascripts/ace/mode-yaml.js +4 -3
- 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 +7 -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 +26 -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 +7 -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 +41 -0
- data/vendor/assets/javascripts/ace/snippets/golang.js +0 -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 +7 -0
- data/vendor/assets/javascripts/ace/snippets/haxe.js +0 -0
- data/vendor/assets/javascripts/ace/snippets/hjson.js +7 -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 +7 -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 +7 -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/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 +10 -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 +29 -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 +0 -0
- 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/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 +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 +91 -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-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 +5 -7
- data/vendor/assets/javascripts/ace/worker-css.js +20 -22
- data/vendor/assets/javascripts/ace/worker-html.js +5 -7
- data/vendor/assets/javascripts/ace/worker-javascript.js +6 -8
- data/vendor/assets/javascripts/ace/worker-json.js +5 -7
- data/vendor/assets/javascripts/ace/worker-lua.js +5 -7
- data/vendor/assets/javascripts/ace/worker-php.js +1399 -4118
- data/vendor/assets/javascripts/ace/worker-xml.js +5 -7
- data/vendor/assets/javascripts/ace/worker-xquery.js +17575 -8836
- metadata +21 -2
@@ -185,7 +185,7 @@ var SwiftHighlightRules = function() {
|
|
185
185
|
regex : /[+-]?(?:0(?:b[01]+|o[0-7]+|x[\da-fA-F])|\d+(?:(?:\.\d*)?(?:[PpEe][+-]?\d+)?)\b)/
|
186
186
|
}, {
|
187
187
|
token : "keyword.operator",
|
188
|
-
regex :
|
188
|
+
regex : /--|\+\+|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
|
189
189
|
next : "start"
|
190
190
|
}, {
|
191
191
|
token : "punctuation.operator",
|
@@ -214,363 +214,6 @@ oop.inherits(SwiftHighlightRules, TextHighlightRules);
|
|
214
214
|
exports.HighlightRules = SwiftHighlightRules;
|
215
215
|
});
|
216
216
|
|
217
|
-
define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"], function(require, exports, module) {
|
218
|
-
"use strict";
|
219
|
-
|
220
|
-
var oop = require("../../lib/oop");
|
221
|
-
var Behaviour = require("../behaviour").Behaviour;
|
222
|
-
var TokenIterator = require("../../token_iterator").TokenIterator;
|
223
|
-
var lang = require("../../lib/lang");
|
224
|
-
|
225
|
-
var SAFE_INSERT_IN_TOKENS =
|
226
|
-
["text", "paren.rparen", "punctuation.operator"];
|
227
|
-
var SAFE_INSERT_BEFORE_TOKENS =
|
228
|
-
["text", "paren.rparen", "punctuation.operator", "comment"];
|
229
|
-
|
230
|
-
var context;
|
231
|
-
var contextCache = {};
|
232
|
-
var initContext = function(editor) {
|
233
|
-
var id = -1;
|
234
|
-
if (editor.multiSelect) {
|
235
|
-
id = editor.selection.index;
|
236
|
-
if (contextCache.rangeCount != editor.multiSelect.rangeCount)
|
237
|
-
contextCache = {rangeCount: editor.multiSelect.rangeCount};
|
238
|
-
}
|
239
|
-
if (contextCache[id])
|
240
|
-
return context = contextCache[id];
|
241
|
-
context = contextCache[id] = {
|
242
|
-
autoInsertedBrackets: 0,
|
243
|
-
autoInsertedRow: -1,
|
244
|
-
autoInsertedLineEnd: "",
|
245
|
-
maybeInsertedBrackets: 0,
|
246
|
-
maybeInsertedRow: -1,
|
247
|
-
maybeInsertedLineStart: "",
|
248
|
-
maybeInsertedLineEnd: ""
|
249
|
-
};
|
250
|
-
};
|
251
|
-
|
252
|
-
var getWrapped = function(selection, selected, opening, closing) {
|
253
|
-
var rowDiff = selection.end.row - selection.start.row;
|
254
|
-
return {
|
255
|
-
text: opening + selected + closing,
|
256
|
-
selection: [
|
257
|
-
0,
|
258
|
-
selection.start.column + 1,
|
259
|
-
rowDiff,
|
260
|
-
selection.end.column + (rowDiff ? 0 : 1)
|
261
|
-
]
|
262
|
-
};
|
263
|
-
};
|
264
|
-
|
265
|
-
var CstyleBehaviour = function() {
|
266
|
-
this.add("braces", "insertion", function(state, action, editor, session, text) {
|
267
|
-
var cursor = editor.getCursorPosition();
|
268
|
-
var line = session.doc.getLine(cursor.row);
|
269
|
-
if (text == '{') {
|
270
|
-
initContext(editor);
|
271
|
-
var selection = editor.getSelectionRange();
|
272
|
-
var selected = session.doc.getTextRange(selection);
|
273
|
-
if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) {
|
274
|
-
return getWrapped(selection, selected, '{', '}');
|
275
|
-
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
276
|
-
if (/[\]\}\)]/.test(line[cursor.column]) || editor.inMultiSelectMode) {
|
277
|
-
CstyleBehaviour.recordAutoInsert(editor, session, "}");
|
278
|
-
return {
|
279
|
-
text: '{}',
|
280
|
-
selection: [1, 1]
|
281
|
-
};
|
282
|
-
} else {
|
283
|
-
CstyleBehaviour.recordMaybeInsert(editor, session, "{");
|
284
|
-
return {
|
285
|
-
text: '{',
|
286
|
-
selection: [1, 1]
|
287
|
-
};
|
288
|
-
}
|
289
|
-
}
|
290
|
-
} else if (text == '}') {
|
291
|
-
initContext(editor);
|
292
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
293
|
-
if (rightChar == '}') {
|
294
|
-
var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});
|
295
|
-
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
296
|
-
CstyleBehaviour.popAutoInsertedClosing();
|
297
|
-
return {
|
298
|
-
text: '',
|
299
|
-
selection: [1, 1]
|
300
|
-
};
|
301
|
-
}
|
302
|
-
}
|
303
|
-
} else if (text == "\n" || text == "\r\n") {
|
304
|
-
initContext(editor);
|
305
|
-
var closing = "";
|
306
|
-
if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {
|
307
|
-
closing = lang.stringRepeat("}", context.maybeInsertedBrackets);
|
308
|
-
CstyleBehaviour.clearMaybeInsertedClosing();
|
309
|
-
}
|
310
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
311
|
-
if (rightChar === '}') {
|
312
|
-
var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column+1}, '}');
|
313
|
-
if (!openBracePos)
|
314
|
-
return null;
|
315
|
-
var next_indent = this.$getIndent(session.getLine(openBracePos.row));
|
316
|
-
} else if (closing) {
|
317
|
-
var next_indent = this.$getIndent(line);
|
318
|
-
} else {
|
319
|
-
CstyleBehaviour.clearMaybeInsertedClosing();
|
320
|
-
return;
|
321
|
-
}
|
322
|
-
var indent = next_indent + session.getTabString();
|
323
|
-
|
324
|
-
return {
|
325
|
-
text: '\n' + indent + '\n' + next_indent + closing,
|
326
|
-
selection: [1, indent.length, 1, indent.length]
|
327
|
-
};
|
328
|
-
} else {
|
329
|
-
CstyleBehaviour.clearMaybeInsertedClosing();
|
330
|
-
}
|
331
|
-
});
|
332
|
-
|
333
|
-
this.add("braces", "deletion", function(state, action, editor, session, range) {
|
334
|
-
var selected = session.doc.getTextRange(range);
|
335
|
-
if (!range.isMultiLine() && selected == '{') {
|
336
|
-
initContext(editor);
|
337
|
-
var line = session.doc.getLine(range.start.row);
|
338
|
-
var rightChar = line.substring(range.end.column, range.end.column + 1);
|
339
|
-
if (rightChar == '}') {
|
340
|
-
range.end.column++;
|
341
|
-
return range;
|
342
|
-
} else {
|
343
|
-
context.maybeInsertedBrackets--;
|
344
|
-
}
|
345
|
-
}
|
346
|
-
});
|
347
|
-
|
348
|
-
this.add("parens", "insertion", function(state, action, editor, session, text) {
|
349
|
-
if (text == '(') {
|
350
|
-
initContext(editor);
|
351
|
-
var selection = editor.getSelectionRange();
|
352
|
-
var selected = session.doc.getTextRange(selection);
|
353
|
-
if (selected !== "" && editor.getWrapBehavioursEnabled()) {
|
354
|
-
return getWrapped(selection, selected, '(', ')');
|
355
|
-
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
356
|
-
CstyleBehaviour.recordAutoInsert(editor, session, ")");
|
357
|
-
return {
|
358
|
-
text: '()',
|
359
|
-
selection: [1, 1]
|
360
|
-
};
|
361
|
-
}
|
362
|
-
} else if (text == ')') {
|
363
|
-
initContext(editor);
|
364
|
-
var cursor = editor.getCursorPosition();
|
365
|
-
var line = session.doc.getLine(cursor.row);
|
366
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
367
|
-
if (rightChar == ')') {
|
368
|
-
var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row});
|
369
|
-
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
370
|
-
CstyleBehaviour.popAutoInsertedClosing();
|
371
|
-
return {
|
372
|
-
text: '',
|
373
|
-
selection: [1, 1]
|
374
|
-
};
|
375
|
-
}
|
376
|
-
}
|
377
|
-
}
|
378
|
-
});
|
379
|
-
|
380
|
-
this.add("parens", "deletion", function(state, action, editor, session, range) {
|
381
|
-
var selected = session.doc.getTextRange(range);
|
382
|
-
if (!range.isMultiLine() && selected == '(') {
|
383
|
-
initContext(editor);
|
384
|
-
var line = session.doc.getLine(range.start.row);
|
385
|
-
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
386
|
-
if (rightChar == ')') {
|
387
|
-
range.end.column++;
|
388
|
-
return range;
|
389
|
-
}
|
390
|
-
}
|
391
|
-
});
|
392
|
-
|
393
|
-
this.add("brackets", "insertion", function(state, action, editor, session, text) {
|
394
|
-
if (text == '[') {
|
395
|
-
initContext(editor);
|
396
|
-
var selection = editor.getSelectionRange();
|
397
|
-
var selected = session.doc.getTextRange(selection);
|
398
|
-
if (selected !== "" && editor.getWrapBehavioursEnabled()) {
|
399
|
-
return getWrapped(selection, selected, '[', ']');
|
400
|
-
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
401
|
-
CstyleBehaviour.recordAutoInsert(editor, session, "]");
|
402
|
-
return {
|
403
|
-
text: '[]',
|
404
|
-
selection: [1, 1]
|
405
|
-
};
|
406
|
-
}
|
407
|
-
} else if (text == ']') {
|
408
|
-
initContext(editor);
|
409
|
-
var cursor = editor.getCursorPosition();
|
410
|
-
var line = session.doc.getLine(cursor.row);
|
411
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
412
|
-
if (rightChar == ']') {
|
413
|
-
var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row});
|
414
|
-
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
415
|
-
CstyleBehaviour.popAutoInsertedClosing();
|
416
|
-
return {
|
417
|
-
text: '',
|
418
|
-
selection: [1, 1]
|
419
|
-
};
|
420
|
-
}
|
421
|
-
}
|
422
|
-
}
|
423
|
-
});
|
424
|
-
|
425
|
-
this.add("brackets", "deletion", function(state, action, editor, session, range) {
|
426
|
-
var selected = session.doc.getTextRange(range);
|
427
|
-
if (!range.isMultiLine() && selected == '[') {
|
428
|
-
initContext(editor);
|
429
|
-
var line = session.doc.getLine(range.start.row);
|
430
|
-
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
431
|
-
if (rightChar == ']') {
|
432
|
-
range.end.column++;
|
433
|
-
return range;
|
434
|
-
}
|
435
|
-
}
|
436
|
-
});
|
437
|
-
|
438
|
-
this.add("string_dquotes", "insertion", function(state, action, editor, session, text) {
|
439
|
-
if (text == '"' || text == "'") {
|
440
|
-
initContext(editor);
|
441
|
-
var quote = text;
|
442
|
-
var selection = editor.getSelectionRange();
|
443
|
-
var selected = session.doc.getTextRange(selection);
|
444
|
-
if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
|
445
|
-
return getWrapped(selection, selected, quote, quote);
|
446
|
-
} else if (!selected) {
|
447
|
-
var cursor = editor.getCursorPosition();
|
448
|
-
var line = session.doc.getLine(cursor.row);
|
449
|
-
var leftChar = line.substring(cursor.column-1, cursor.column);
|
450
|
-
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
451
|
-
|
452
|
-
var token = session.getTokenAt(cursor.row, cursor.column);
|
453
|
-
var rightToken = session.getTokenAt(cursor.row, cursor.column + 1);
|
454
|
-
if (leftChar == "\\" && token && /escape/.test(token.type))
|
455
|
-
return null;
|
456
|
-
|
457
|
-
var stringBefore = token && /string|escape/.test(token.type);
|
458
|
-
var stringAfter = !rightToken || /string|escape/.test(rightToken.type);
|
459
|
-
|
460
|
-
var pair;
|
461
|
-
if (rightChar == quote) {
|
462
|
-
pair = stringBefore !== stringAfter;
|
463
|
-
} else {
|
464
|
-
if (stringBefore && !stringAfter)
|
465
|
-
return null; // wrap string with different quote
|
466
|
-
if (stringBefore && stringAfter)
|
467
|
-
return null; // do not pair quotes inside strings
|
468
|
-
var wordRe = session.$mode.tokenRe;
|
469
|
-
wordRe.lastIndex = 0;
|
470
|
-
var isWordBefore = wordRe.test(leftChar);
|
471
|
-
wordRe.lastIndex = 0;
|
472
|
-
var isWordAfter = wordRe.test(leftChar);
|
473
|
-
if (isWordBefore || isWordAfter)
|
474
|
-
return null; // before or after alphanumeric
|
475
|
-
if (rightChar && !/[\s;,.})\]\\]/.test(rightChar))
|
476
|
-
return null; // there is rightChar and it isn't closing
|
477
|
-
pair = true;
|
478
|
-
}
|
479
|
-
return {
|
480
|
-
text: pair ? quote + quote : "",
|
481
|
-
selection: [1,1]
|
482
|
-
};
|
483
|
-
}
|
484
|
-
}
|
485
|
-
});
|
486
|
-
|
487
|
-
this.add("string_dquotes", "deletion", function(state, action, editor, session, range) {
|
488
|
-
var selected = session.doc.getTextRange(range);
|
489
|
-
if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
|
490
|
-
initContext(editor);
|
491
|
-
var line = session.doc.getLine(range.start.row);
|
492
|
-
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
493
|
-
if (rightChar == selected) {
|
494
|
-
range.end.column++;
|
495
|
-
return range;
|
496
|
-
}
|
497
|
-
}
|
498
|
-
});
|
499
|
-
|
500
|
-
};
|
501
|
-
|
502
|
-
|
503
|
-
CstyleBehaviour.isSaneInsertion = function(editor, session) {
|
504
|
-
var cursor = editor.getCursorPosition();
|
505
|
-
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
506
|
-
if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
|
507
|
-
var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
|
508
|
-
if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
|
509
|
-
return false;
|
510
|
-
}
|
511
|
-
iterator.stepForward();
|
512
|
-
return iterator.getCurrentTokenRow() !== cursor.row ||
|
513
|
-
this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
|
514
|
-
};
|
515
|
-
|
516
|
-
CstyleBehaviour.$matchTokenType = function(token, types) {
|
517
|
-
return types.indexOf(token.type || token) > -1;
|
518
|
-
};
|
519
|
-
|
520
|
-
CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
|
521
|
-
var cursor = editor.getCursorPosition();
|
522
|
-
var line = session.doc.getLine(cursor.row);
|
523
|
-
if (!this.isAutoInsertedClosing(cursor, line, context.autoInsertedLineEnd[0]))
|
524
|
-
context.autoInsertedBrackets = 0;
|
525
|
-
context.autoInsertedRow = cursor.row;
|
526
|
-
context.autoInsertedLineEnd = bracket + line.substr(cursor.column);
|
527
|
-
context.autoInsertedBrackets++;
|
528
|
-
};
|
529
|
-
|
530
|
-
CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
|
531
|
-
var cursor = editor.getCursorPosition();
|
532
|
-
var line = session.doc.getLine(cursor.row);
|
533
|
-
if (!this.isMaybeInsertedClosing(cursor, line))
|
534
|
-
context.maybeInsertedBrackets = 0;
|
535
|
-
context.maybeInsertedRow = cursor.row;
|
536
|
-
context.maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
|
537
|
-
context.maybeInsertedLineEnd = line.substr(cursor.column);
|
538
|
-
context.maybeInsertedBrackets++;
|
539
|
-
};
|
540
|
-
|
541
|
-
CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
|
542
|
-
return context.autoInsertedBrackets > 0 &&
|
543
|
-
cursor.row === context.autoInsertedRow &&
|
544
|
-
bracket === context.autoInsertedLineEnd[0] &&
|
545
|
-
line.substr(cursor.column) === context.autoInsertedLineEnd;
|
546
|
-
};
|
547
|
-
|
548
|
-
CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
|
549
|
-
return context.maybeInsertedBrackets > 0 &&
|
550
|
-
cursor.row === context.maybeInsertedRow &&
|
551
|
-
line.substr(cursor.column) === context.maybeInsertedLineEnd &&
|
552
|
-
line.substr(0, cursor.column) == context.maybeInsertedLineStart;
|
553
|
-
};
|
554
|
-
|
555
|
-
CstyleBehaviour.popAutoInsertedClosing = function() {
|
556
|
-
context.autoInsertedLineEnd = context.autoInsertedLineEnd.substr(1);
|
557
|
-
context.autoInsertedBrackets--;
|
558
|
-
};
|
559
|
-
|
560
|
-
CstyleBehaviour.clearMaybeInsertedClosing = function() {
|
561
|
-
if (context) {
|
562
|
-
context.maybeInsertedBrackets = 0;
|
563
|
-
context.maybeInsertedRow = -1;
|
564
|
-
}
|
565
|
-
};
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
oop.inherits(CstyleBehaviour, Behaviour);
|
570
|
-
|
571
|
-
exports.CstyleBehaviour = CstyleBehaviour;
|
572
|
-
});
|
573
|
-
|
574
217
|
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
575
218
|
"use strict";
|
576
219
|
|
@@ -724,6 +367,7 @@ var Mode = function() {
|
|
724
367
|
this.HighlightRules = HighlightRules;
|
725
368
|
this.foldingRules = new FoldMode();
|
726
369
|
this.$behaviour = new CstyleBehaviour();
|
370
|
+
this.$behaviour = this.$defaultBehaviour;
|
727
371
|
};
|
728
372
|
oop.inherits(Mode, TextMode);
|
729
373
|
|
File without changes
|
@@ -161,7 +161,7 @@ var TclHighlightRules = function() {
|
|
161
161
|
next : "splitlineStart"
|
162
162
|
}, {
|
163
163
|
token : "text",
|
164
|
-
regex :
|
164
|
+
regex : /\\(?:["{}\[\]$\\])/
|
165
165
|
}, {
|
166
166
|
token : "text", // last value before command
|
167
167
|
regex : '^|[^{][;][^}]|[/\r/]',
|
@@ -333,6 +333,7 @@ var Mode = function() {
|
|
333
333
|
this.HighlightRules = TclHighlightRules;
|
334
334
|
this.$outdent = new MatchingBraceOutdent();
|
335
335
|
this.foldingRules = new CStyleFoldMode();
|
336
|
+
this.$behaviour = this.$defaultBehaviour;
|
336
337
|
};
|
337
338
|
oop.inherits(Mode, TextMode);
|
338
339
|
|
@@ -24,7 +24,7 @@ var TexHighlightRules = function(textClass) {
|
|
24
24
|
next : "nospell"
|
25
25
|
}, {
|
26
26
|
token : "keyword", // command
|
27
|
-
regex : "\\\\(?:[a-zA-
|
27
|
+
regex : "\\\\(?:[a-zA-Z0-9]+|[^a-zA-Z0-9])"
|
28
28
|
}, {
|
29
29
|
token : "paren.keyword.operator",
|
30
30
|
regex : "[[({]"
|
@@ -49,7 +49,7 @@ var TexHighlightRules = function(textClass) {
|
|
49
49
|
regex : "\\\\(?:documentclass|usepackage|newcounter|setcounter|addtocounter|value|arabic|stepcounter|newenvironment|renewenvironment|ref|vref|eqref|pageref|label|cite[a-zA-Z]*|tag|begin|end|bibitem)\\b"
|
50
50
|
}, {
|
51
51
|
token : "keyword", // command
|
52
|
-
regex : "\\\\(?:[a-zA-
|
52
|
+
regex : "\\\\(?:[a-zA-Z0-9]+|[^a-zA-Z0-9])",
|
53
53
|
next : "start"
|
54
54
|
}, {
|
55
55
|
token : "paren.keyword.operator",
|
@@ -132,6 +132,7 @@ var Mode = function(suppressHighlighting) {
|
|
132
132
|
else
|
133
133
|
this.HighlightRules = TexHighlightRules;
|
134
134
|
this.$outdent = new MatchingBraceOutdent();
|
135
|
+
this.$behaviour = this.$defaultBehaviour;
|
135
136
|
};
|
136
137
|
oop.inherits(Mode, TextMode);
|
137
138
|
|
File without changes
|
@@ -113,6 +113,7 @@ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutd
|
|
113
113
|
var Mode = function() {
|
114
114
|
this.HighlightRules = TextileHighlightRules;
|
115
115
|
this.$outdent = new MatchingBraceOutdent();
|
116
|
+
this.$behaviour = this.$defaultBehaviour;
|
116
117
|
};
|
117
118
|
oop.inherits(Mode, TextMode);
|
118
119
|
|
@@ -133,6 +133,7 @@ var FoldMode = require("./folding/ini").FoldMode;
|
|
133
133
|
var Mode = function() {
|
134
134
|
this.HighlightRules = TomlHighlightRules;
|
135
135
|
this.foldingRules = new FoldMode();
|
136
|
+
this.$behaviour = this.$defaultBehaviour;
|
136
137
|
};
|
137
138
|
oop.inherits(Mode, TextMode);
|
138
139
|
|
@@ -0,0 +1,884 @@
|
|
1
|
+
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var oop = require("../lib/oop");
|
5
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
6
|
+
|
7
|
+
var DocCommentHighlightRules = function() {
|
8
|
+
this.$rules = {
|
9
|
+
"start" : [ {
|
10
|
+
token : "comment.doc.tag",
|
11
|
+
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
12
|
+
},
|
13
|
+
DocCommentHighlightRules.getTagRule(),
|
14
|
+
{
|
15
|
+
defaultToken : "comment.doc",
|
16
|
+
caseInsensitive: true
|
17
|
+
}]
|
18
|
+
};
|
19
|
+
};
|
20
|
+
|
21
|
+
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
22
|
+
|
23
|
+
DocCommentHighlightRules.getTagRule = function(start) {
|
24
|
+
return {
|
25
|
+
token : "comment.doc.tag.storage.type",
|
26
|
+
regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
27
|
+
};
|
28
|
+
}
|
29
|
+
|
30
|
+
DocCommentHighlightRules.getStartRule = function(start) {
|
31
|
+
return {
|
32
|
+
token : "comment.doc", // doc comment
|
33
|
+
regex : "\\/\\*(?=\\*)",
|
34
|
+
next : start
|
35
|
+
};
|
36
|
+
};
|
37
|
+
|
38
|
+
DocCommentHighlightRules.getEndRule = function (start) {
|
39
|
+
return {
|
40
|
+
token : "comment.doc", // closing comment
|
41
|
+
regex : "\\*\\/",
|
42
|
+
next : start
|
43
|
+
};
|
44
|
+
};
|
45
|
+
|
46
|
+
|
47
|
+
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
48
|
+
|
49
|
+
});
|
50
|
+
|
51
|
+
define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
52
|
+
"use strict";
|
53
|
+
|
54
|
+
var oop = require("../lib/oop");
|
55
|
+
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
56
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
57
|
+
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
|
58
|
+
|
59
|
+
var JavaScriptHighlightRules = function(options) {
|
60
|
+
var keywordMapper = this.createKeywordMapper({
|
61
|
+
"variable.language":
|
62
|
+
"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
|
63
|
+
"Namespace|QName|XML|XMLList|" + // E4X
|
64
|
+
"ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
|
65
|
+
"Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
|
66
|
+
"Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
|
67
|
+
"SyntaxError|TypeError|URIError|" +
|
68
|
+
"decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
|
69
|
+
"isNaN|parseFloat|parseInt|" +
|
70
|
+
"JSON|Math|" + // Other
|
71
|
+
"this|arguments|prototype|window|document" , // Pseudo
|
72
|
+
"keyword":
|
73
|
+
"const|yield|import|get|set|async|await|" +
|
74
|
+
"break|case|catch|continue|default|delete|do|else|finally|for|function|" +
|
75
|
+
"if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
|
76
|
+
"__parent__|__count__|escape|unescape|with|__proto__|" +
|
77
|
+
"class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
|
78
|
+
"storage.type":
|
79
|
+
"const|let|var|function",
|
80
|
+
"constant.language":
|
81
|
+
"null|Infinity|NaN|undefined",
|
82
|
+
"support.function":
|
83
|
+
"alert",
|
84
|
+
"constant.language.boolean": "true|false"
|
85
|
+
}, "identifier");
|
86
|
+
var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
|
87
|
+
|
88
|
+
var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
|
89
|
+
"u[0-9a-fA-F]{4}|" + // unicode
|
90
|
+
"u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
|
91
|
+
"[0-2][0-7]{0,2}|" + // oct
|
92
|
+
"3[0-7][0-7]?|" + // oct
|
93
|
+
"[4-7][0-7]?|" + //oct
|
94
|
+
".)";
|
95
|
+
|
96
|
+
this.$rules = {
|
97
|
+
"no_regex" : [
|
98
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
99
|
+
comments("no_regex"),
|
100
|
+
{
|
101
|
+
token : "string",
|
102
|
+
regex : "'(?=.)",
|
103
|
+
next : "qstring"
|
104
|
+
}, {
|
105
|
+
token : "string",
|
106
|
+
regex : '"(?=.)',
|
107
|
+
next : "qqstring"
|
108
|
+
}, {
|
109
|
+
token : "constant.numeric", // hex
|
110
|
+
regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
|
111
|
+
}, {
|
112
|
+
token : "constant.numeric", // float
|
113
|
+
regex : /[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
|
114
|
+
}, {
|
115
|
+
token : [
|
116
|
+
"storage.type", "punctuation.operator", "support.function",
|
117
|
+
"punctuation.operator", "entity.name.function", "text","keyword.operator"
|
118
|
+
],
|
119
|
+
regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
|
120
|
+
next: "function_arguments"
|
121
|
+
}, {
|
122
|
+
token : [
|
123
|
+
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
124
|
+
"keyword.operator", "text", "storage.type", "text", "paren.lparen"
|
125
|
+
],
|
126
|
+
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
|
127
|
+
next: "function_arguments"
|
128
|
+
}, {
|
129
|
+
token : [
|
130
|
+
"entity.name.function", "text", "keyword.operator", "text", "storage.type",
|
131
|
+
"text", "paren.lparen"
|
132
|
+
],
|
133
|
+
regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
|
134
|
+
next: "function_arguments"
|
135
|
+
}, {
|
136
|
+
token : [
|
137
|
+
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
138
|
+
"keyword.operator", "text",
|
139
|
+
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
140
|
+
],
|
141
|
+
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
|
142
|
+
next: "function_arguments"
|
143
|
+
}, {
|
144
|
+
token : [
|
145
|
+
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
146
|
+
],
|
147
|
+
regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
|
148
|
+
next: "function_arguments"
|
149
|
+
}, {
|
150
|
+
token : [
|
151
|
+
"entity.name.function", "text", "punctuation.operator",
|
152
|
+
"text", "storage.type", "text", "paren.lparen"
|
153
|
+
],
|
154
|
+
regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
|
155
|
+
next: "function_arguments"
|
156
|
+
}, {
|
157
|
+
token : [
|
158
|
+
"text", "text", "storage.type", "text", "paren.lparen"
|
159
|
+
],
|
160
|
+
regex : "(:)(\\s*)(function)(\\s*)(\\()",
|
161
|
+
next: "function_arguments"
|
162
|
+
}, {
|
163
|
+
token : "keyword",
|
164
|
+
regex : "(?:" + kwBeforeRe + ")\\b",
|
165
|
+
next : "start"
|
166
|
+
}, {
|
167
|
+
token : ["support.constant"],
|
168
|
+
regex : /that\b/
|
169
|
+
}, {
|
170
|
+
token : ["storage.type", "punctuation.operator", "support.function.firebug"],
|
171
|
+
regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
|
172
|
+
}, {
|
173
|
+
token : keywordMapper,
|
174
|
+
regex : identifierRe
|
175
|
+
}, {
|
176
|
+
token : "punctuation.operator",
|
177
|
+
regex : /[.](?![.])/,
|
178
|
+
next : "property"
|
179
|
+
}, {
|
180
|
+
token : "keyword.operator",
|
181
|
+
regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
|
182
|
+
next : "start"
|
183
|
+
}, {
|
184
|
+
token : "punctuation.operator",
|
185
|
+
regex : /[?:,;.]/,
|
186
|
+
next : "start"
|
187
|
+
}, {
|
188
|
+
token : "paren.lparen",
|
189
|
+
regex : /[\[({]/,
|
190
|
+
next : "start"
|
191
|
+
}, {
|
192
|
+
token : "paren.rparen",
|
193
|
+
regex : /[\])}]/
|
194
|
+
}, {
|
195
|
+
token: "comment",
|
196
|
+
regex: /^#!.*$/
|
197
|
+
}
|
198
|
+
],
|
199
|
+
property: [{
|
200
|
+
token : "text",
|
201
|
+
regex : "\\s+"
|
202
|
+
}, {
|
203
|
+
token : [
|
204
|
+
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
205
|
+
"keyword.operator", "text",
|
206
|
+
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
207
|
+
],
|
208
|
+
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
|
209
|
+
next: "function_arguments"
|
210
|
+
}, {
|
211
|
+
token : "punctuation.operator",
|
212
|
+
regex : /[.](?![.])/
|
213
|
+
}, {
|
214
|
+
token : "support.function",
|
215
|
+
regex : /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
|
216
|
+
}, {
|
217
|
+
token : "support.function.dom",
|
218
|
+
regex : /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
|
219
|
+
}, {
|
220
|
+
token : "support.constant",
|
221
|
+
regex : /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
|
222
|
+
}, {
|
223
|
+
token : "identifier",
|
224
|
+
regex : identifierRe
|
225
|
+
}, {
|
226
|
+
regex: "",
|
227
|
+
token: "empty",
|
228
|
+
next: "no_regex"
|
229
|
+
}
|
230
|
+
],
|
231
|
+
"start": [
|
232
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
233
|
+
comments("start"),
|
234
|
+
{
|
235
|
+
token: "string.regexp",
|
236
|
+
regex: "\\/",
|
237
|
+
next: "regex"
|
238
|
+
}, {
|
239
|
+
token : "text",
|
240
|
+
regex : "\\s+|^$",
|
241
|
+
next : "start"
|
242
|
+
}, {
|
243
|
+
token: "empty",
|
244
|
+
regex: "",
|
245
|
+
next: "no_regex"
|
246
|
+
}
|
247
|
+
],
|
248
|
+
"regex": [
|
249
|
+
{
|
250
|
+
token: "regexp.keyword.operator",
|
251
|
+
regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
|
252
|
+
}, {
|
253
|
+
token: "string.regexp",
|
254
|
+
regex: "/[sxngimy]*",
|
255
|
+
next: "no_regex"
|
256
|
+
}, {
|
257
|
+
token : "invalid",
|
258
|
+
regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
|
259
|
+
}, {
|
260
|
+
token : "constant.language.escape",
|
261
|
+
regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
|
262
|
+
}, {
|
263
|
+
token : "constant.language.delimiter",
|
264
|
+
regex: /\|/
|
265
|
+
}, {
|
266
|
+
token: "constant.language.escape",
|
267
|
+
regex: /\[\^?/,
|
268
|
+
next: "regex_character_class"
|
269
|
+
}, {
|
270
|
+
token: "empty",
|
271
|
+
regex: "$",
|
272
|
+
next: "no_regex"
|
273
|
+
}, {
|
274
|
+
defaultToken: "string.regexp"
|
275
|
+
}
|
276
|
+
],
|
277
|
+
"regex_character_class": [
|
278
|
+
{
|
279
|
+
token: "regexp.charclass.keyword.operator",
|
280
|
+
regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
|
281
|
+
}, {
|
282
|
+
token: "constant.language.escape",
|
283
|
+
regex: "]",
|
284
|
+
next: "regex"
|
285
|
+
}, {
|
286
|
+
token: "constant.language.escape",
|
287
|
+
regex: "-"
|
288
|
+
}, {
|
289
|
+
token: "empty",
|
290
|
+
regex: "$",
|
291
|
+
next: "no_regex"
|
292
|
+
}, {
|
293
|
+
defaultToken: "string.regexp.charachterclass"
|
294
|
+
}
|
295
|
+
],
|
296
|
+
"function_arguments": [
|
297
|
+
{
|
298
|
+
token: "variable.parameter",
|
299
|
+
regex: identifierRe
|
300
|
+
}, {
|
301
|
+
token: "punctuation.operator",
|
302
|
+
regex: "[, ]+"
|
303
|
+
}, {
|
304
|
+
token: "punctuation.operator",
|
305
|
+
regex: "$"
|
306
|
+
}, {
|
307
|
+
token: "empty",
|
308
|
+
regex: "",
|
309
|
+
next: "no_regex"
|
310
|
+
}
|
311
|
+
],
|
312
|
+
"qqstring" : [
|
313
|
+
{
|
314
|
+
token : "constant.language.escape",
|
315
|
+
regex : escapedRe
|
316
|
+
}, {
|
317
|
+
token : "string",
|
318
|
+
regex : "\\\\$",
|
319
|
+
next : "qqstring"
|
320
|
+
}, {
|
321
|
+
token : "string",
|
322
|
+
regex : '"|$',
|
323
|
+
next : "no_regex"
|
324
|
+
}, {
|
325
|
+
defaultToken: "string"
|
326
|
+
}
|
327
|
+
],
|
328
|
+
"qstring" : [
|
329
|
+
{
|
330
|
+
token : "constant.language.escape",
|
331
|
+
regex : escapedRe
|
332
|
+
}, {
|
333
|
+
token : "string",
|
334
|
+
regex : "\\\\$",
|
335
|
+
next : "qstring"
|
336
|
+
}, {
|
337
|
+
token : "string",
|
338
|
+
regex : "'|$",
|
339
|
+
next : "no_regex"
|
340
|
+
}, {
|
341
|
+
defaultToken: "string"
|
342
|
+
}
|
343
|
+
]
|
344
|
+
};
|
345
|
+
|
346
|
+
|
347
|
+
if (!options || !options.noES6) {
|
348
|
+
this.$rules.no_regex.unshift({
|
349
|
+
regex: "[{}]", onMatch: function(val, state, stack) {
|
350
|
+
this.next = val == "{" ? this.nextState : "";
|
351
|
+
if (val == "{" && stack.length) {
|
352
|
+
stack.unshift("start", state);
|
353
|
+
}
|
354
|
+
else if (val == "}" && stack.length) {
|
355
|
+
stack.shift();
|
356
|
+
this.next = stack.shift();
|
357
|
+
if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
|
358
|
+
return "paren.quasi.end";
|
359
|
+
}
|
360
|
+
return val == "{" ? "paren.lparen" : "paren.rparen";
|
361
|
+
},
|
362
|
+
nextState: "start"
|
363
|
+
}, {
|
364
|
+
token : "string.quasi.start",
|
365
|
+
regex : /`/,
|
366
|
+
push : [{
|
367
|
+
token : "constant.language.escape",
|
368
|
+
regex : escapedRe
|
369
|
+
}, {
|
370
|
+
token : "paren.quasi.start",
|
371
|
+
regex : /\${/,
|
372
|
+
push : "start"
|
373
|
+
}, {
|
374
|
+
token : "string.quasi.end",
|
375
|
+
regex : /`/,
|
376
|
+
next : "pop"
|
377
|
+
}, {
|
378
|
+
defaultToken: "string.quasi"
|
379
|
+
}]
|
380
|
+
});
|
381
|
+
|
382
|
+
if (!options || options.jsx != false)
|
383
|
+
JSX.call(this);
|
384
|
+
}
|
385
|
+
|
386
|
+
this.embedRules(DocCommentHighlightRules, "doc-",
|
387
|
+
[ DocCommentHighlightRules.getEndRule("no_regex") ]);
|
388
|
+
|
389
|
+
this.normalizeRules();
|
390
|
+
};
|
391
|
+
|
392
|
+
oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
|
393
|
+
|
394
|
+
function JSX() {
|
395
|
+
var tagRegex = identifierRe.replace("\\d", "\\d\\-");
|
396
|
+
var jsxTag = {
|
397
|
+
onMatch : function(val, state, stack) {
|
398
|
+
var offset = val.charAt(1) == "/" ? 2 : 1;
|
399
|
+
if (offset == 1) {
|
400
|
+
if (state != this.nextState)
|
401
|
+
stack.unshift(this.next, this.nextState, 0);
|
402
|
+
else
|
403
|
+
stack.unshift(this.next);
|
404
|
+
stack[2]++;
|
405
|
+
} else if (offset == 2) {
|
406
|
+
if (state == this.nextState) {
|
407
|
+
stack[1]--;
|
408
|
+
if (!stack[1] || stack[1] < 0) {
|
409
|
+
stack.shift();
|
410
|
+
stack.shift();
|
411
|
+
}
|
412
|
+
}
|
413
|
+
}
|
414
|
+
return [{
|
415
|
+
type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
|
416
|
+
value: val.slice(0, offset)
|
417
|
+
}, {
|
418
|
+
type: "meta.tag.tag-name.xml",
|
419
|
+
value: val.substr(offset)
|
420
|
+
}];
|
421
|
+
},
|
422
|
+
regex : "</?" + tagRegex + "",
|
423
|
+
next: "jsxAttributes",
|
424
|
+
nextState: "jsx"
|
425
|
+
};
|
426
|
+
this.$rules.start.unshift(jsxTag);
|
427
|
+
var jsxJsRule = {
|
428
|
+
regex: "{",
|
429
|
+
token: "paren.quasi.start",
|
430
|
+
push: "start"
|
431
|
+
};
|
432
|
+
this.$rules.jsx = [
|
433
|
+
jsxJsRule,
|
434
|
+
jsxTag,
|
435
|
+
{include : "reference"},
|
436
|
+
{defaultToken: "string"}
|
437
|
+
];
|
438
|
+
this.$rules.jsxAttributes = [{
|
439
|
+
token : "meta.tag.punctuation.tag-close.xml",
|
440
|
+
regex : "/?>",
|
441
|
+
onMatch : function(value, currentState, stack) {
|
442
|
+
if (currentState == stack[0])
|
443
|
+
stack.shift();
|
444
|
+
if (value.length == 2) {
|
445
|
+
if (stack[0] == this.nextState)
|
446
|
+
stack[1]--;
|
447
|
+
if (!stack[1] || stack[1] < 0) {
|
448
|
+
stack.splice(0, 2);
|
449
|
+
}
|
450
|
+
}
|
451
|
+
this.next = stack[0] || "start";
|
452
|
+
return [{type: this.token, value: value}];
|
453
|
+
},
|
454
|
+
nextState: "jsx"
|
455
|
+
},
|
456
|
+
jsxJsRule,
|
457
|
+
comments("jsxAttributes"),
|
458
|
+
{
|
459
|
+
token : "entity.other.attribute-name.xml",
|
460
|
+
regex : tagRegex
|
461
|
+
}, {
|
462
|
+
token : "keyword.operator.attribute-equals.xml",
|
463
|
+
regex : "="
|
464
|
+
}, {
|
465
|
+
token : "text.tag-whitespace.xml",
|
466
|
+
regex : "\\s+"
|
467
|
+
}, {
|
468
|
+
token : "string.attribute-value.xml",
|
469
|
+
regex : "'",
|
470
|
+
stateName : "jsx_attr_q",
|
471
|
+
push : [
|
472
|
+
{token : "string.attribute-value.xml", regex: "'", next: "pop"},
|
473
|
+
{include : "reference"},
|
474
|
+
{defaultToken : "string.attribute-value.xml"}
|
475
|
+
]
|
476
|
+
}, {
|
477
|
+
token : "string.attribute-value.xml",
|
478
|
+
regex : '"',
|
479
|
+
stateName : "jsx_attr_qq",
|
480
|
+
push : [
|
481
|
+
{token : "string.attribute-value.xml", regex: '"', next: "pop"},
|
482
|
+
{include : "reference"},
|
483
|
+
{defaultToken : "string.attribute-value.xml"}
|
484
|
+
]
|
485
|
+
},
|
486
|
+
jsxTag
|
487
|
+
];
|
488
|
+
this.$rules.reference = [{
|
489
|
+
token : "constant.language.escape.reference.xml",
|
490
|
+
regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
491
|
+
}];
|
492
|
+
}
|
493
|
+
|
494
|
+
function comments(next) {
|
495
|
+
return [
|
496
|
+
{
|
497
|
+
token : "comment", // multi line comment
|
498
|
+
regex : /\/\*/,
|
499
|
+
next: [
|
500
|
+
DocCommentHighlightRules.getTagRule(),
|
501
|
+
{token : "comment", regex : "\\*\\/", next : next || "pop"},
|
502
|
+
{defaultToken : "comment", caseInsensitive: true}
|
503
|
+
]
|
504
|
+
}, {
|
505
|
+
token : "comment",
|
506
|
+
regex : "\\/\\/",
|
507
|
+
next: [
|
508
|
+
DocCommentHighlightRules.getTagRule(),
|
509
|
+
{token : "comment", regex : "$|^", next : next || "pop"},
|
510
|
+
{defaultToken : "comment", caseInsensitive: true}
|
511
|
+
]
|
512
|
+
}
|
513
|
+
];
|
514
|
+
}
|
515
|
+
exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
|
516
|
+
});
|
517
|
+
|
518
|
+
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
519
|
+
"use strict";
|
520
|
+
|
521
|
+
var Range = require("../range").Range;
|
522
|
+
|
523
|
+
var MatchingBraceOutdent = function() {};
|
524
|
+
|
525
|
+
(function() {
|
526
|
+
|
527
|
+
this.checkOutdent = function(line, input) {
|
528
|
+
if (! /^\s+$/.test(line))
|
529
|
+
return false;
|
530
|
+
|
531
|
+
return /^\s*\}/.test(input);
|
532
|
+
};
|
533
|
+
|
534
|
+
this.autoOutdent = function(doc, row) {
|
535
|
+
var line = doc.getLine(row);
|
536
|
+
var match = line.match(/^(\s*\})/);
|
537
|
+
|
538
|
+
if (!match) return 0;
|
539
|
+
|
540
|
+
var column = match[1].length;
|
541
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
542
|
+
|
543
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
544
|
+
|
545
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
546
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
547
|
+
};
|
548
|
+
|
549
|
+
this.$getIndent = function(line) {
|
550
|
+
return line.match(/^\s*/)[0];
|
551
|
+
};
|
552
|
+
|
553
|
+
}).call(MatchingBraceOutdent.prototype);
|
554
|
+
|
555
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
556
|
+
});
|
557
|
+
|
558
|
+
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
559
|
+
"use strict";
|
560
|
+
|
561
|
+
var oop = require("../../lib/oop");
|
562
|
+
var Range = require("../../range").Range;
|
563
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
564
|
+
|
565
|
+
var FoldMode = exports.FoldMode = function(commentRegex) {
|
566
|
+
if (commentRegex) {
|
567
|
+
this.foldingStartMarker = new RegExp(
|
568
|
+
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
569
|
+
);
|
570
|
+
this.foldingStopMarker = new RegExp(
|
571
|
+
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
572
|
+
);
|
573
|
+
}
|
574
|
+
};
|
575
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
576
|
+
|
577
|
+
(function() {
|
578
|
+
|
579
|
+
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
580
|
+
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
581
|
+
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
582
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
583
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
584
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
585
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
586
|
+
var line = session.getLine(row);
|
587
|
+
|
588
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
589
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
590
|
+
return "";
|
591
|
+
}
|
592
|
+
|
593
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
594
|
+
|
595
|
+
if (!fw && this.startRegionRe.test(line))
|
596
|
+
return "start"; // lineCommentRegionStart
|
597
|
+
|
598
|
+
return fw;
|
599
|
+
};
|
600
|
+
|
601
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
602
|
+
var line = session.getLine(row);
|
603
|
+
|
604
|
+
if (this.startRegionRe.test(line))
|
605
|
+
return this.getCommentRegionBlock(session, line, row);
|
606
|
+
|
607
|
+
var match = line.match(this.foldingStartMarker);
|
608
|
+
if (match) {
|
609
|
+
var i = match.index;
|
610
|
+
|
611
|
+
if (match[1])
|
612
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
613
|
+
|
614
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
615
|
+
|
616
|
+
if (range && !range.isMultiLine()) {
|
617
|
+
if (forceMultiline) {
|
618
|
+
range = this.getSectionRange(session, row);
|
619
|
+
} else if (foldStyle != "all")
|
620
|
+
range = null;
|
621
|
+
}
|
622
|
+
|
623
|
+
return range;
|
624
|
+
}
|
625
|
+
|
626
|
+
if (foldStyle === "markbegin")
|
627
|
+
return;
|
628
|
+
|
629
|
+
var match = line.match(this.foldingStopMarker);
|
630
|
+
if (match) {
|
631
|
+
var i = match.index + match[0].length;
|
632
|
+
|
633
|
+
if (match[1])
|
634
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
635
|
+
|
636
|
+
return session.getCommentFoldRange(row, i, -1);
|
637
|
+
}
|
638
|
+
};
|
639
|
+
|
640
|
+
this.getSectionRange = function(session, row) {
|
641
|
+
var line = session.getLine(row);
|
642
|
+
var startIndent = line.search(/\S/);
|
643
|
+
var startRow = row;
|
644
|
+
var startColumn = line.length;
|
645
|
+
row = row + 1;
|
646
|
+
var endRow = row;
|
647
|
+
var maxRow = session.getLength();
|
648
|
+
while (++row < maxRow) {
|
649
|
+
line = session.getLine(row);
|
650
|
+
var indent = line.search(/\S/);
|
651
|
+
if (indent === -1)
|
652
|
+
continue;
|
653
|
+
if (startIndent > indent)
|
654
|
+
break;
|
655
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
656
|
+
|
657
|
+
if (subRange) {
|
658
|
+
if (subRange.start.row <= startRow) {
|
659
|
+
break;
|
660
|
+
} else if (subRange.isMultiLine()) {
|
661
|
+
row = subRange.end.row;
|
662
|
+
} else if (startIndent == indent) {
|
663
|
+
break;
|
664
|
+
}
|
665
|
+
}
|
666
|
+
endRow = row;
|
667
|
+
}
|
668
|
+
|
669
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
670
|
+
};
|
671
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
672
|
+
var startColumn = line.search(/\s*$/);
|
673
|
+
var maxRow = session.getLength();
|
674
|
+
var startRow = row;
|
675
|
+
|
676
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
677
|
+
var depth = 1;
|
678
|
+
while (++row < maxRow) {
|
679
|
+
line = session.getLine(row);
|
680
|
+
var m = re.exec(line);
|
681
|
+
if (!m) continue;
|
682
|
+
if (m[1]) depth--;
|
683
|
+
else depth++;
|
684
|
+
|
685
|
+
if (!depth) break;
|
686
|
+
}
|
687
|
+
|
688
|
+
var endRow = row;
|
689
|
+
if (endRow > startRow) {
|
690
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
691
|
+
}
|
692
|
+
};
|
693
|
+
|
694
|
+
}).call(FoldMode.prototype);
|
695
|
+
|
696
|
+
});
|
697
|
+
|
698
|
+
define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module) {
|
699
|
+
"use strict";
|
700
|
+
|
701
|
+
var oop = require("../lib/oop");
|
702
|
+
var TextMode = require("./text").Mode;
|
703
|
+
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
704
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
705
|
+
var WorkerClient = require("../worker/worker_client").WorkerClient;
|
706
|
+
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
707
|
+
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
708
|
+
|
709
|
+
var Mode = function() {
|
710
|
+
this.HighlightRules = JavaScriptHighlightRules;
|
711
|
+
|
712
|
+
this.$outdent = new MatchingBraceOutdent();
|
713
|
+
this.$behaviour = new CstyleBehaviour();
|
714
|
+
this.foldingRules = new CStyleFoldMode();
|
715
|
+
};
|
716
|
+
oop.inherits(Mode, TextMode);
|
717
|
+
|
718
|
+
(function() {
|
719
|
+
|
720
|
+
this.lineCommentStart = "//";
|
721
|
+
this.blockComment = {start: "/*", end: "*/"};
|
722
|
+
|
723
|
+
this.getNextLineIndent = function(state, line, tab) {
|
724
|
+
var indent = this.$getIndent(line);
|
725
|
+
|
726
|
+
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
|
727
|
+
var tokens = tokenizedLine.tokens;
|
728
|
+
var endState = tokenizedLine.state;
|
729
|
+
|
730
|
+
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
731
|
+
return indent;
|
732
|
+
}
|
733
|
+
|
734
|
+
if (state == "start" || state == "no_regex") {
|
735
|
+
var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
|
736
|
+
if (match) {
|
737
|
+
indent += tab;
|
738
|
+
}
|
739
|
+
} else if (state == "doc-start") {
|
740
|
+
if (endState == "start" || endState == "no_regex") {
|
741
|
+
return "";
|
742
|
+
}
|
743
|
+
var match = line.match(/^\s*(\/?)\*/);
|
744
|
+
if (match) {
|
745
|
+
if (match[1]) {
|
746
|
+
indent += " ";
|
747
|
+
}
|
748
|
+
indent += "* ";
|
749
|
+
}
|
750
|
+
}
|
751
|
+
|
752
|
+
return indent;
|
753
|
+
};
|
754
|
+
|
755
|
+
this.checkOutdent = function(state, line, input) {
|
756
|
+
return this.$outdent.checkOutdent(line, input);
|
757
|
+
};
|
758
|
+
|
759
|
+
this.autoOutdent = function(state, doc, row) {
|
760
|
+
this.$outdent.autoOutdent(doc, row);
|
761
|
+
};
|
762
|
+
|
763
|
+
this.createWorker = function(session) {
|
764
|
+
var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
|
765
|
+
worker.attachToDocument(session.getDocument());
|
766
|
+
|
767
|
+
worker.on("annotate", function(results) {
|
768
|
+
session.setAnnotations(results.data);
|
769
|
+
});
|
770
|
+
|
771
|
+
worker.on("terminate", function() {
|
772
|
+
session.clearAnnotations();
|
773
|
+
});
|
774
|
+
|
775
|
+
return worker;
|
776
|
+
};
|
777
|
+
|
778
|
+
this.$id = "ace/mode/javascript";
|
779
|
+
}).call(Mode.prototype);
|
780
|
+
|
781
|
+
exports.Mode = Mode;
|
782
|
+
});
|
783
|
+
|
784
|
+
define("ace/mode/typescript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules"], function(require, exports, module) {
|
785
|
+
"use strict";
|
786
|
+
|
787
|
+
var oop = require("../lib/oop");
|
788
|
+
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
789
|
+
|
790
|
+
var TypeScriptHighlightRules = function(options) {
|
791
|
+
|
792
|
+
var tsRules = [
|
793
|
+
{
|
794
|
+
token: ["keyword.operator.ts", "text", "variable.parameter.function.ts", "text"],
|
795
|
+
regex: "\\b(module)(\\s*)([a-zA-Z0-9_?.$][\\w?.$]*)(\\s*\\{)"
|
796
|
+
},
|
797
|
+
{
|
798
|
+
token: ["storage.type.variable.ts", "text", "keyword.other.ts", "text"],
|
799
|
+
regex: "(super)(\\s*\\()([a-zA-Z0-9,_?.$\\s]+\\s*)(\\))"
|
800
|
+
},
|
801
|
+
{
|
802
|
+
token: ["entity.name.function.ts","paren.lparen", "paren.rparen"],
|
803
|
+
regex: "([a-zA-Z_?.$][\\w?.$]*)(\\()(\\))"
|
804
|
+
},
|
805
|
+
{
|
806
|
+
token: ["variable.parameter.function.ts", "text", "variable.parameter.function.ts"],
|
807
|
+
regex: "([a-zA-Z0-9_?.$][\\w?.$]*)(\\s*:\\s*)([a-zA-Z0-9_?.$][\\w?.$]*)"
|
808
|
+
},
|
809
|
+
{
|
810
|
+
token: ["keyword.operator.ts"],
|
811
|
+
regex: "(?:\\b(constructor|declare|interface|as|AS|public|private|class|extends|export|super)\\b)"
|
812
|
+
},
|
813
|
+
{
|
814
|
+
token: ["storage.type.variable.ts"],
|
815
|
+
regex: "(?:\\b(this\\.|string\\b|bool\\b|number)\\b)"
|
816
|
+
},
|
817
|
+
{
|
818
|
+
token: ["keyword.operator.ts", "storage.type.variable.ts", "keyword.operator.ts", "storage.type.variable.ts"],
|
819
|
+
regex: "(class)(\\s+[a-zA-Z0-9_?.$][\\w?.$]*\\s+)(extends)(\\s+[a-zA-Z0-9_?.$][\\w?.$]*\\s+)?"
|
820
|
+
},
|
821
|
+
{
|
822
|
+
token: "keyword",
|
823
|
+
regex: "(?:super|export|class|extends|import)\\b"
|
824
|
+
}
|
825
|
+
];
|
826
|
+
|
827
|
+
var JSRules = new JavaScriptHighlightRules({jsx: (options && options.jsx) == true}).getRules();
|
828
|
+
|
829
|
+
JSRules.start = tsRules.concat(JSRules.start);
|
830
|
+
this.$rules = JSRules;
|
831
|
+
};
|
832
|
+
|
833
|
+
oop.inherits(TypeScriptHighlightRules, JavaScriptHighlightRules);
|
834
|
+
|
835
|
+
exports.TypeScriptHighlightRules = TypeScriptHighlightRules;
|
836
|
+
});
|
837
|
+
|
838
|
+
define("ace/mode/typescript",["require","exports","module","ace/lib/oop","ace/mode/javascript","ace/mode/typescript_highlight_rules","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/mode/matching_brace_outdent"], function(require, exports, module) {
|
839
|
+
"use strict";
|
840
|
+
|
841
|
+
var oop = require("../lib/oop");
|
842
|
+
var jsMode = require("./javascript").Mode;
|
843
|
+
var TypeScriptHighlightRules = require("./typescript_highlight_rules").TypeScriptHighlightRules;
|
844
|
+
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
845
|
+
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
846
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
847
|
+
|
848
|
+
var Mode = function() {
|
849
|
+
this.HighlightRules = TypeScriptHighlightRules;
|
850
|
+
|
851
|
+
this.$outdent = new MatchingBraceOutdent();
|
852
|
+
this.$behaviour = new CstyleBehaviour();
|
853
|
+
this.foldingRules = new CStyleFoldMode();
|
854
|
+
};
|
855
|
+
oop.inherits(Mode, jsMode);
|
856
|
+
|
857
|
+
(function() {
|
858
|
+
this.createWorker = function(session) {
|
859
|
+
return null;
|
860
|
+
};
|
861
|
+
this.$id = "ace/mode/typescript";
|
862
|
+
}).call(Mode.prototype);
|
863
|
+
|
864
|
+
exports.Mode = Mode;
|
865
|
+
});
|
866
|
+
|
867
|
+
define("ace/mode/tsx",["require","exports","module","ace/lib/oop","ace/mode/typescript"], function(require, exports, module) {
|
868
|
+
"use strict";
|
869
|
+
|
870
|
+
var oop = require("../lib/oop");
|
871
|
+
var tsMode = require("./typescript").Mode;
|
872
|
+
|
873
|
+
var Mode = function() {
|
874
|
+
tsMode.call(this);
|
875
|
+
this.$highlightRuleConfig = {jsx: true};
|
876
|
+
};
|
877
|
+
oop.inherits(Mode, tsMode);
|
878
|
+
|
879
|
+
(function() {
|
880
|
+
this.$id = "ace/mode/tsx";
|
881
|
+
}).call(Mode.prototype);
|
882
|
+
|
883
|
+
exports.Mode = Mode;
|
884
|
+
});
|