ace-rails-ap 4.1.3 → 4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitmodules +1 -1
- data/Gemfile +2 -3
- data/ace-rails-ap.gemspec +0 -2
- data/lib/ace/rails/version.rb +1 -1
- data/update.sh +1 -1
- data/vendor/assets/javascripts/ace/ace.js +5192 -3414
- data/vendor/assets/javascripts/ace/ext-beautify.js +281 -288
- data/vendor/assets/javascripts/ace/ext-code_lens.js +238 -0
- data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +6 -3
- data/vendor/assets/javascripts/ace/ext-emmet.js +353 -246
- data/vendor/assets/javascripts/ace/ext-error_marker.js +6 -3
- data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +61 -38
- data/vendor/assets/javascripts/ace/ext-language_tools.js +532 -343
- data/vendor/assets/javascripts/ace/ext-linking.js +8 -5
- data/vendor/assets/javascripts/ace/ext-modelist.js +46 -12
- data/vendor/assets/javascripts/ace/ext-options.js +793 -0
- data/vendor/assets/javascripts/ace/ext-prompt.js +2783 -0
- data/vendor/assets/javascripts/ace/ext-rtl.js +122 -0
- data/vendor/assets/javascripts/ace/ext-searchbox.js +45 -40
- data/vendor/assets/javascripts/ace/ext-settings_menu.js +520 -369
- data/vendor/assets/javascripts/ace/ext-spellcheck.js +6 -4
- data/vendor/assets/javascripts/ace/ext-split.js +7 -46
- data/vendor/assets/javascripts/ace/ext-static_highlight.js +90 -22
- data/vendor/assets/javascripts/ace/ext-statusbar.js +9 -6
- data/vendor/assets/javascripts/ace/ext-textarea.js +21 -18
- data/vendor/assets/javascripts/ace/ext-themelist.js +10 -6
- data/vendor/assets/javascripts/ace/ext-whitespace.js +13 -6
- data/vendor/assets/javascripts/ace/keybinding-emacs.js +49 -61
- data/vendor/assets/javascripts/ace/keybinding-sublime.js +422 -0
- data/vendor/assets/javascripts/ace/keybinding-vim.js +620 -287
- data/vendor/assets/javascripts/ace/keybinding-vscode.js +262 -0
- data/vendor/assets/javascripts/ace/mode-abap.js +10 -3
- data/vendor/assets/javascripts/ace/mode-abc.js +14 -4
- data/vendor/assets/javascripts/ace/mode-actionscript.js +13 -5
- data/vendor/assets/javascripts/ace/mode-ada.js +54 -4
- data/vendor/assets/javascripts/ace/mode-alda.js +311 -0
- data/vendor/assets/javascripts/ace/mode-apache_conf.js +12 -5
- data/vendor/assets/javascripts/ace/mode-apex.js +457 -0
- data/vendor/assets/javascripts/ace/mode-applescript.js +11 -4
- data/vendor/assets/javascripts/ace/mode-aql.js +102 -0
- data/vendor/assets/javascripts/ace/mode-asciidoc.js +9 -2
- data/vendor/assets/javascripts/ace/mode-asl.js +422 -0
- data/vendor/assets/javascripts/ace/mode-assembly_x86.js +11 -4
- data/vendor/assets/javascripts/ace/mode-autohotkey.js +17 -8
- data/vendor/assets/javascripts/ace/mode-batchfile.js +12 -5
- data/vendor/assets/javascripts/ace/mode-c9search.js +9 -3
- data/vendor/assets/javascripts/ace/mode-c_cpp.js +23 -7
- data/vendor/assets/javascripts/ace/mode-cirru.js +11 -4
- data/vendor/assets/javascripts/ace/mode-clojure.js +9 -1
- data/vendor/assets/javascripts/ace/mode-cobol.js +8 -1
- data/vendor/assets/javascripts/ace/mode-coffee.js +12 -4
- data/vendor/assets/javascripts/ace/mode-coldfusion.js +163 -134
- data/vendor/assets/javascripts/ace/mode-crystal.js +642 -0
- data/vendor/assets/javascripts/ace/mode-csharp.js +13 -6
- data/vendor/assets/javascripts/ace/mode-csound_document.js +4036 -0
- data/vendor/assets/javascripts/ace/mode-csound_orchestra.js +2966 -0
- data/vendor/assets/javascripts/ace/mode-csound_score.js +462 -0
- data/vendor/assets/javascripts/ace/mode-csp.js +59 -0
- data/vendor/assets/javascripts/ace/mode-css.js +48 -27
- data/vendor/assets/javascripts/ace/mode-curly.js +162 -133
- data/vendor/assets/javascripts/ace/mode-d.js +12 -5
- data/vendor/assets/javascripts/ace/mode-dart.js +46 -20
- data/vendor/assets/javascripts/ace/mode-diff.js +11 -3
- data/vendor/assets/javascripts/ace/mode-django.js +164 -134
- data/vendor/assets/javascripts/ace/mode-dockerfile.js +12 -4
- data/vendor/assets/javascripts/ace/mode-dot.js +11 -4
- data/vendor/assets/javascripts/ace/mode-drools.js +46 -5
- data/vendor/assets/javascripts/ace/mode-edifact.js +166 -0
- data/vendor/assets/javascripts/ace/mode-eiffel.js +8 -1
- data/vendor/assets/javascripts/ace/mode-ejs.js +832 -298
- data/vendor/assets/javascripts/ace/mode-elixir.js +11 -4
- data/vendor/assets/javascripts/ace/mode-elm.js +10 -3
- data/vendor/assets/javascripts/ace/mode-erlang.js +13 -5
- data/vendor/assets/javascripts/ace/mode-forth.js +12 -5
- data/vendor/assets/javascripts/ace/mode-fortran.js +10 -3
- data/vendor/assets/javascripts/ace/mode-fsharp.js +316 -0
- data/vendor/assets/javascripts/ace/{mode-mipsassembler.js → mode-fsl.js} +91 -28
- data/vendor/assets/javascripts/ace/mode-ftl.js +23 -12
- data/vendor/assets/javascripts/ace/mode-gcode.js +8 -1
- data/vendor/assets/javascripts/ace/mode-gherkin.js +9 -4
- data/vendor/assets/javascripts/ace/mode-gitignore.js +8 -1
- data/vendor/assets/javascripts/ace/mode-glsl.js +24 -8
- data/vendor/assets/javascripts/ace/mode-gobstones.js +267 -99
- data/vendor/assets/javascripts/ace/mode-golang.js +11 -4
- data/vendor/assets/javascripts/ace/mode-graphqlschema.js +11 -3
- data/vendor/assets/javascripts/ace/mode-groovy.js +14 -5
- data/vendor/assets/javascripts/ace/mode-haml.js +442 -116
- data/vendor/assets/javascripts/ace/mode-handlebars.js +162 -133
- data/vendor/assets/javascripts/ace/mode-haskell.js +14 -6
- data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +8 -1
- data/vendor/assets/javascripts/ace/mode-haxe.js +11 -4
- data/vendor/assets/javascripts/ace/mode-hjson.js +13 -6
- data/vendor/assets/javascripts/ace/mode-html.js +162 -133
- data/vendor/assets/javascripts/ace/mode-html_elixir.js +165 -136
- data/vendor/assets/javascripts/ace/mode-html_ruby.js +832 -298
- data/vendor/assets/javascripts/ace/mode-ini.js +8 -1
- data/vendor/assets/javascripts/ace/mode-io.js +14 -12
- data/vendor/assets/javascripts/ace/mode-jack.js +10 -3
- data/vendor/assets/javascripts/ace/mode-jade.js +272 -376
- data/vendor/assets/javascripts/ace/mode-java.js +110 -7
- data/vendor/assets/javascripts/ace/mode-javascript.js +14 -5
- data/vendor/assets/javascripts/ace/mode-json.js +13 -3
- data/vendor/assets/javascripts/ace/mode-json5.js +360 -0
- data/vendor/assets/javascripts/ace/mode-jsoniq.js +25 -12
- data/vendor/assets/javascripts/ace/mode-jsp.js +60 -15
- data/vendor/assets/javascripts/ace/mode-jssm.js +325 -0
- data/vendor/assets/javascripts/ace/mode-jsx.js +11 -4
- data/vendor/assets/javascripts/ace/mode-julia.js +12 -5
- data/vendor/assets/javascripts/ace/mode-kotlin.js +18 -7
- data/vendor/assets/javascripts/ace/mode-latex.js +87 -15
- data/vendor/assets/javascripts/ace/mode-less.js +47 -27
- data/vendor/assets/javascripts/ace/mode-liquid.js +2030 -472
- data/vendor/assets/javascripts/ace/mode-lisp.js +9 -2
- data/vendor/assets/javascripts/ace/mode-livescript.js +10 -2
- data/vendor/assets/javascripts/ace/mode-logiql.js +10 -3
- data/vendor/assets/javascripts/ace/mode-logtalk.js +352 -0
- data/vendor/assets/javascripts/ace/mode-lsl.js +11 -3
- data/vendor/assets/javascripts/ace/mode-lua.js +40 -12
- data/vendor/assets/javascripts/ace/mode-luapage.js +194 -144
- data/vendor/assets/javascripts/ace/mode-lucene.js +106 -22
- data/vendor/assets/javascripts/ace/mode-makefile.js +11 -3
- data/vendor/assets/javascripts/ace/mode-markdown.js +530 -201
- data/vendor/assets/javascripts/ace/mode-mask.js +101 -84
- data/vendor/assets/javascripts/ace/mode-matlab.js +8 -1
- data/vendor/assets/javascripts/ace/mode-maze.js +11 -3
- data/vendor/assets/javascripts/ace/mode-mediawiki.js +592 -0
- data/vendor/assets/javascripts/ace/mode-mel.js +11 -4
- data/vendor/assets/javascripts/ace/mode-mixal.js +122 -0
- data/vendor/assets/javascripts/ace/mode-mushcode.js +9 -2
- data/vendor/assets/javascripts/ace/mode-mysql.js +11 -4
- data/vendor/assets/javascripts/ace/mode-nginx.js +298 -0
- data/vendor/assets/javascripts/ace/mode-nim.js +363 -0
- data/vendor/assets/javascripts/ace/mode-nix.js +23 -7
- data/vendor/assets/javascripts/ace/mode-nsis.js +15 -8
- data/vendor/assets/javascripts/ace/mode-nunjucks.js +2698 -0
- data/vendor/assets/javascripts/ace/mode-objectivec.js +23 -8
- data/vendor/assets/javascripts/ace/mode-ocaml.js +8 -1
- data/vendor/assets/javascripts/ace/mode-pascal.js +92 -67
- data/vendor/assets/javascripts/ace/mode-perl.js +11 -3
- data/vendor/assets/javascripts/ace/mode-perl6.js +593 -0
- data/vendor/assets/javascripts/ace/mode-pgsql.js +314 -71
- data/vendor/assets/javascripts/ace/mode-php.js +1042 -995
- data/vendor/assets/javascripts/ace/mode-php_laravel_blade.js +13104 -0
- data/vendor/assets/javascripts/ace/mode-pig.js +13 -6
- data/vendor/assets/javascripts/ace/mode-plain_text.js +8 -1
- data/vendor/assets/javascripts/ace/mode-powershell.js +10 -3
- data/vendor/assets/javascripts/ace/mode-praat.js +17 -7
- data/vendor/assets/javascripts/ace/mode-prisma.js +489 -0
- data/vendor/assets/javascripts/ace/mode-prolog.js +12 -5
- data/vendor/assets/javascripts/ace/mode-properties.js +8 -1
- data/vendor/assets/javascripts/ace/mode-protobuf.js +23 -7
- data/vendor/assets/javascripts/ace/mode-puppet.js +368 -0
- data/vendor/assets/javascripts/ace/mode-python.js +306 -63
- data/vendor/assets/javascripts/ace/mode-qml.js +381 -0
- data/vendor/assets/javascripts/ace/mode-r.js +15 -4
- data/vendor/assets/javascripts/ace/mode-razor.js +166 -136
- data/vendor/assets/javascripts/ace/mode-rdoc.js +41 -3
- data/vendor/assets/javascripts/ace/mode-red.js +450 -0
- data/vendor/assets/javascripts/ace/mode-redshift.js +360 -0
- data/vendor/assets/javascripts/ace/mode-rhtml.js +162 -133
- data/vendor/assets/javascripts/ace/mode-rst.js +9 -1
- data/vendor/assets/javascripts/ace/mode-ruby.js +678 -166
- data/vendor/assets/javascripts/ace/mode-rust.js +16 -7
- data/vendor/assets/javascripts/ace/mode-sass.js +211 -116
- data/vendor/assets/javascripts/ace/mode-scad.js +11 -4
- data/vendor/assets/javascripts/ace/mode-scala.js +14 -5
- data/vendor/assets/javascripts/ace/mode-scheme.js +9 -2
- data/vendor/assets/javascripts/ace/mode-scss.js +412 -125
- data/vendor/assets/javascripts/ace/mode-sh.js +12 -4
- data/vendor/assets/javascripts/ace/mode-sjs.js +16 -7
- data/vendor/assets/javascripts/ace/mode-slim.js +5240 -0
- data/vendor/assets/javascripts/ace/mode-smarty.js +164 -135
- data/vendor/assets/javascripts/ace/mode-snippets.js +24 -16
- data/vendor/assets/javascripts/ace/mode-soy_template.js +164 -135
- data/vendor/assets/javascripts/ace/mode-space.js +8 -1
- data/vendor/assets/javascripts/ace/mode-sparql.js +13 -6
- data/vendor/assets/javascripts/ace/mode-sql.js +10 -2
- data/vendor/assets/javascripts/ace/mode-sqlserver.js +13 -5
- data/vendor/assets/javascripts/ace/mode-stylus.js +20 -10
- data/vendor/assets/javascripts/ace/mode-svg.js +27 -13
- data/vendor/assets/javascripts/ace/mode-swift.js +21 -8
- data/vendor/assets/javascripts/ace/mode-tcl.js +14 -3
- data/vendor/assets/javascripts/ace/mode-terraform.js +400 -0
- data/vendor/assets/javascripts/ace/mode-tex.js +9 -1
- data/vendor/assets/javascripts/ace/mode-text.js +8 -0
- data/vendor/assets/javascripts/ace/mode-textile.js +9 -1
- data/vendor/assets/javascripts/ace/mode-toml.js +9 -2
- data/vendor/assets/javascripts/ace/mode-tsx.js +28 -31
- data/vendor/assets/javascripts/ace/mode-turtle.js +13 -6
- data/vendor/assets/javascripts/ace/mode-twig.js +163 -134
- data/vendor/assets/javascripts/ace/mode-typescript.js +28 -31
- data/vendor/assets/javascripts/ace/mode-vala.js +14 -6
- data/vendor/assets/javascripts/ace/mode-vbscript.js +453 -17
- data/vendor/assets/javascripts/ace/mode-velocity.js +163 -133
- data/vendor/assets/javascripts/ace/mode-verilog.js +19 -5
- data/vendor/assets/javascripts/ace/mode-vhdl.js +13 -7
- data/vendor/assets/javascripts/ace/mode-visualforce.js +2640 -0
- data/vendor/assets/javascripts/ace/mode-wollok.js +17 -8
- data/vendor/assets/javascripts/ace/mode-xml.js +21 -9
- data/vendor/assets/javascripts/ace/mode-xquery.js +25 -12
- data/vendor/assets/javascripts/ace/mode-yaml.js +59 -18
- data/vendor/assets/javascripts/ace/mode-zeek.js +539 -0
- data/vendor/assets/javascripts/ace/snippets/abap.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/abc.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/actionscript.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/ada.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/alda.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/apache_conf.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/apex.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/applescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/aql.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/asciidoc.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/asl.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/autohotkey.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/batchfile.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/c9search.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/c_cpp.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/cirru.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/clojure.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/cobol.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/coffee.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/coldfusion.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/crystal.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/csharp.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/csound_document.js +24 -0
- data/vendor/assets/javascripts/ace/snippets/csound_orchestra.js +61 -0
- data/vendor/assets/javascripts/ace/snippets/csound_score.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/csp.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/css.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/curly.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/d.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/dart.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/diff.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/django.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/dockerfile.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/dot.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/drools.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/edifact.js +254 -0
- data/vendor/assets/javascripts/ace/snippets/eiffel.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ejs.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/elixir.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/elm.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/erlang.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/forth.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/fortran.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/fsharp.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/fsl.js +14 -0
- data/vendor/assets/javascripts/ace/snippets/ftl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gcode.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gherkin.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gitignore.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/glsl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gobstones.js +1701 -24
- data/vendor/assets/javascripts/ace/snippets/golang.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/graphqlschema.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/groovy.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haml.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/handlebars.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haskell.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haxe.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/hjson.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/html.js +36 -2
- data/vendor/assets/javascripts/ace/snippets/html_elixir.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/html_ruby.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ini.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/io.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jack.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/jade.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/java.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/javascript.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/json.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/json5.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/jsoniq.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jsp.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jssm.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/jsx.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/julia.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/kotlin.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/latex.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/less.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/liquid.js +890 -2
- data/vendor/assets/javascripts/ace/snippets/lisp.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/livescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/logiql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/logtalk.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/lsl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/lua.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/luapage.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/lucene.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/makefile.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/markdown.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/mask.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/matlab.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/maze.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/mediawiki.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/mel.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/mixal.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/mushcode.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/mysql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nginx.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/nim.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/nix.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nsis.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nunjucks.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/objectivec.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ocaml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/pascal.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/perl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/perl6.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/pgsql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/php.js +49 -36
- data/vendor/assets/javascripts/ace/snippets/php_laravel_blade.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/pig.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/plain_text.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/powershell.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/praat.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/prisma.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/prolog.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/properties.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/protobuf.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/puppet.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/python.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/qml.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/r.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/razor.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/rdoc.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/red.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/redshift.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/rhtml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/rst.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/ruby.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/rust.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sass.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scad.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scala.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scheme.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scss.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sh.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/sjs.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/slim.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/smarty.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/snippets.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/soy_template.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/space.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sparql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sql.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/sqlserver.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/stylus.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/svg.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/swift.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/tcl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/terraform.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/tex.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/text.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/textile.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/toml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/tsx.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/turtle.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/twig.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/typescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/vala.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/vbscript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/velocity.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/verilog.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/vhdl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/visualforce.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/wollok.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/xml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/xquery.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/yaml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/zeek.js +9 -0
- data/vendor/assets/javascripts/ace/theme-ambiance.js +11 -8
- data/vendor/assets/javascripts/ace/theme-chaos.js +9 -2
- data/vendor/assets/javascripts/ace/theme-chrome.js +8 -1
- data/vendor/assets/javascripts/ace/theme-clouds.js +8 -1
- data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +8 -1
- data/vendor/assets/javascripts/ace/theme-cobalt.js +8 -1
- data/vendor/assets/javascripts/ace/theme-crimson_editor.js +8 -1
- data/vendor/assets/javascripts/ace/theme-dawn.js +8 -1
- data/vendor/assets/javascripts/ace/theme-dracula.js +135 -0
- data/vendor/assets/javascripts/ace/theme-dreamweaver.js +8 -1
- data/vendor/assets/javascripts/ace/theme-eclipse.js +8 -1
- data/vendor/assets/javascripts/ace/theme-github.js +8 -1
- data/vendor/assets/javascripts/ace/theme-gob.js +8 -1
- data/vendor/assets/javascripts/ace/theme-gruvbox.js +8 -1
- data/vendor/assets/javascripts/ace/theme-idle_fingers.js +8 -1
- data/vendor/assets/javascripts/ace/theme-iplastic.js +8 -1
- data/vendor/assets/javascripts/ace/theme-katzenmilch.js +8 -1
- data/vendor/assets/javascripts/ace/theme-kr_theme.js +8 -1
- data/vendor/assets/javascripts/ace/theme-kuroir.js +8 -1
- data/vendor/assets/javascripts/ace/theme-merbivore.js +8 -1
- data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +8 -1
- data/vendor/assets/javascripts/ace/theme-mono_industrial.js +8 -1
- data/vendor/assets/javascripts/ace/theme-monokai.js +8 -1
- data/vendor/assets/javascripts/ace/theme-nord_dark.js +102 -0
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +8 -1
- data/vendor/assets/javascripts/ace/theme-solarized_dark.js +8 -1
- data/vendor/assets/javascripts/ace/theme-solarized_light.js +9 -2
- data/vendor/assets/javascripts/ace/theme-sqlserver.js +8 -1
- data/vendor/assets/javascripts/ace/theme-terminal.js +8 -1
- data/vendor/assets/javascripts/ace/theme-textmate.js +9 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +8 -1
- data/vendor/assets/javascripts/ace/theme-twilight.js +8 -1
- data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +8 -1
- data/vendor/assets/javascripts/ace/theme-xcode.js +8 -1
- data/vendor/assets/javascripts/ace/worker-base.js +1421 -0
- data/vendor/assets/javascripts/ace/worker-coffee.js +55 -742
- data/vendor/assets/javascripts/ace/worker-css.js +66 -739
- data/vendor/assets/javascripts/ace/worker-html.js +55 -738
- data/vendor/assets/javascripts/ace/worker-javascript.js +6693 -4209
- data/vendor/assets/javascripts/ace/worker-json.js +56 -737
- data/vendor/assets/javascripts/ace/worker-lua.js +56 -738
- data/vendor/assets/javascripts/ace/worker-php.js +897 -1512
- data/vendor/assets/javascripts/ace/worker-xml.js +129 -808
- data/vendor/assets/javascripts/ace/worker-xquery.js +54 -737
- metadata +74 -19
- data/vendor/assets/javascripts/ace/ext-chromevox.js +0 -540
- data/vendor/assets/javascripts/ace/ext-old_ie.js +0 -502
- data/vendor/assets/javascripts/ace/mode-bash.js +0 -247
- data/vendor/assets/javascripts/ace/mode-bro.js +0 -327
- data/vendor/assets/javascripts/ace/mode-lean.js +0 -281
- data/vendor/assets/javascripts/ace/mode-live_script.js +0 -481
- data/vendor/assets/javascripts/ace/mode-mips_assembler.js +0 -235
- data/vendor/assets/javascripts/ace/mode-swig.js +0 -1099
- data/vendor/assets/javascripts/ace/snippets/bro.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/lean.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/live_script.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/swig.js +0 -7
@@ -1,502 +0,0 @@
|
|
1
|
-
define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"], function(require, exports, module) {
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var dom = require("../lib/dom");
|
5
|
-
var lang = require("../lib/lang");
|
6
|
-
var event = require("../lib/event");
|
7
|
-
var searchboxCss = "\
|
8
|
-
.ace_search {\
|
9
|
-
background-color: #ddd;\
|
10
|
-
border: 1px solid #cbcbcb;\
|
11
|
-
border-top: 0 none;\
|
12
|
-
max-width: 325px;\
|
13
|
-
overflow: hidden;\
|
14
|
-
margin: 0;\
|
15
|
-
padding: 4px;\
|
16
|
-
padding-right: 6px;\
|
17
|
-
padding-bottom: 0;\
|
18
|
-
position: absolute;\
|
19
|
-
top: 0px;\
|
20
|
-
z-index: 99;\
|
21
|
-
white-space: normal;\
|
22
|
-
}\
|
23
|
-
.ace_search.left {\
|
24
|
-
border-left: 0 none;\
|
25
|
-
border-radius: 0px 0px 5px 0px;\
|
26
|
-
left: 0;\
|
27
|
-
}\
|
28
|
-
.ace_search.right {\
|
29
|
-
border-radius: 0px 0px 0px 5px;\
|
30
|
-
border-right: 0 none;\
|
31
|
-
right: 0;\
|
32
|
-
}\
|
33
|
-
.ace_search_form, .ace_replace_form {\
|
34
|
-
border-radius: 3px;\
|
35
|
-
border: 1px solid #cbcbcb;\
|
36
|
-
float: left;\
|
37
|
-
margin-bottom: 4px;\
|
38
|
-
overflow: hidden;\
|
39
|
-
}\
|
40
|
-
.ace_search_form.ace_nomatch {\
|
41
|
-
outline: 1px solid red;\
|
42
|
-
}\
|
43
|
-
.ace_search_field {\
|
44
|
-
background-color: white;\
|
45
|
-
color: black;\
|
46
|
-
border-right: 1px solid #cbcbcb;\
|
47
|
-
border: 0 none;\
|
48
|
-
-webkit-box-sizing: border-box;\
|
49
|
-
-moz-box-sizing: border-box;\
|
50
|
-
box-sizing: border-box;\
|
51
|
-
float: left;\
|
52
|
-
height: 22px;\
|
53
|
-
outline: 0;\
|
54
|
-
padding: 0 7px;\
|
55
|
-
width: 214px;\
|
56
|
-
margin: 0;\
|
57
|
-
}\
|
58
|
-
.ace_searchbtn,\
|
59
|
-
.ace_replacebtn {\
|
60
|
-
background: #fff;\
|
61
|
-
border: 0 none;\
|
62
|
-
border-left: 1px solid #dcdcdc;\
|
63
|
-
cursor: pointer;\
|
64
|
-
float: left;\
|
65
|
-
height: 22px;\
|
66
|
-
margin: 0;\
|
67
|
-
position: relative;\
|
68
|
-
}\
|
69
|
-
.ace_searchbtn:last-child,\
|
70
|
-
.ace_replacebtn:last-child {\
|
71
|
-
border-top-right-radius: 3px;\
|
72
|
-
border-bottom-right-radius: 3px;\
|
73
|
-
}\
|
74
|
-
.ace_searchbtn:disabled {\
|
75
|
-
background: none;\
|
76
|
-
cursor: default;\
|
77
|
-
}\
|
78
|
-
.ace_searchbtn {\
|
79
|
-
background-position: 50% 50%;\
|
80
|
-
background-repeat: no-repeat;\
|
81
|
-
width: 27px;\
|
82
|
-
}\
|
83
|
-
.ace_searchbtn.prev {\
|
84
|
-
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); \
|
85
|
-
}\
|
86
|
-
.ace_searchbtn.next {\
|
87
|
-
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); \
|
88
|
-
}\
|
89
|
-
.ace_searchbtn_close {\
|
90
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;\
|
91
|
-
border-radius: 50%;\
|
92
|
-
border: 0 none;\
|
93
|
-
color: #656565;\
|
94
|
-
cursor: pointer;\
|
95
|
-
float: right;\
|
96
|
-
font: 16px/16px Arial;\
|
97
|
-
height: 14px;\
|
98
|
-
margin: 5px 1px 9px 5px;\
|
99
|
-
padding: 0;\
|
100
|
-
text-align: center;\
|
101
|
-
width: 14px;\
|
102
|
-
}\
|
103
|
-
.ace_searchbtn_close:hover {\
|
104
|
-
background-color: #656565;\
|
105
|
-
background-position: 50% 100%;\
|
106
|
-
color: white;\
|
107
|
-
}\
|
108
|
-
.ace_replacebtn.prev {\
|
109
|
-
width: 54px\
|
110
|
-
}\
|
111
|
-
.ace_replacebtn.next {\
|
112
|
-
width: 27px\
|
113
|
-
}\
|
114
|
-
.ace_button {\
|
115
|
-
margin-left: 2px;\
|
116
|
-
cursor: pointer;\
|
117
|
-
-webkit-user-select: none;\
|
118
|
-
-moz-user-select: none;\
|
119
|
-
-o-user-select: none;\
|
120
|
-
-ms-user-select: none;\
|
121
|
-
user-select: none;\
|
122
|
-
overflow: hidden;\
|
123
|
-
opacity: 0.7;\
|
124
|
-
border: 1px solid rgba(100,100,100,0.23);\
|
125
|
-
padding: 1px;\
|
126
|
-
-moz-box-sizing: border-box;\
|
127
|
-
box-sizing: border-box;\
|
128
|
-
color: black;\
|
129
|
-
}\
|
130
|
-
.ace_button:hover {\
|
131
|
-
background-color: #eee;\
|
132
|
-
opacity:1;\
|
133
|
-
}\
|
134
|
-
.ace_button:active {\
|
135
|
-
background-color: #ddd;\
|
136
|
-
}\
|
137
|
-
.ace_button.checked {\
|
138
|
-
border-color: #3399ff;\
|
139
|
-
opacity:1;\
|
140
|
-
}\
|
141
|
-
.ace_search_options{\
|
142
|
-
margin-bottom: 3px;\
|
143
|
-
text-align: right;\
|
144
|
-
-webkit-user-select: none;\
|
145
|
-
-moz-user-select: none;\
|
146
|
-
-o-user-select: none;\
|
147
|
-
-ms-user-select: none;\
|
148
|
-
user-select: none;\
|
149
|
-
}";
|
150
|
-
var HashHandler = require("../keyboard/hash_handler").HashHandler;
|
151
|
-
var keyUtil = require("../lib/keys");
|
152
|
-
|
153
|
-
dom.importCssString(searchboxCss, "ace_searchbox");
|
154
|
-
|
155
|
-
var html = '<div class="ace_search right">\
|
156
|
-
<button type="button" action="hide" class="ace_searchbtn_close"></button>\
|
157
|
-
<div class="ace_search_form">\
|
158
|
-
<input class="ace_search_field" placeholder="Search for" spellcheck="false"></input>\
|
159
|
-
<button type="button" action="findNext" class="ace_searchbtn next"></button>\
|
160
|
-
<button type="button" action="findPrev" class="ace_searchbtn prev"></button>\
|
161
|
-
<button type="button" action="findAll" class="ace_searchbtn" title="Alt-Enter">All</button>\
|
162
|
-
</div>\
|
163
|
-
<div class="ace_replace_form">\
|
164
|
-
<input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input>\
|
165
|
-
<button type="button" action="replaceAndFindNext" class="ace_replacebtn">Replace</button>\
|
166
|
-
<button type="button" action="replaceAll" class="ace_replacebtn">All</button>\
|
167
|
-
</div>\
|
168
|
-
<div class="ace_search_options">\
|
169
|
-
<span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span>\
|
170
|
-
<span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span>\
|
171
|
-
<span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span>\
|
172
|
-
</div>\
|
173
|
-
</div>'.replace(/>\s+/g, ">");
|
174
|
-
|
175
|
-
var SearchBox = function(editor, range, showReplaceForm) {
|
176
|
-
var div = dom.createElement("div");
|
177
|
-
div.innerHTML = html;
|
178
|
-
this.element = div.firstChild;
|
179
|
-
|
180
|
-
this.$init();
|
181
|
-
this.setEditor(editor);
|
182
|
-
};
|
183
|
-
|
184
|
-
(function() {
|
185
|
-
this.setEditor = function(editor) {
|
186
|
-
editor.searchBox = this;
|
187
|
-
editor.container.appendChild(this.element);
|
188
|
-
this.editor = editor;
|
189
|
-
};
|
190
|
-
|
191
|
-
this.$initElements = function(sb) {
|
192
|
-
this.searchBox = sb.querySelector(".ace_search_form");
|
193
|
-
this.replaceBox = sb.querySelector(".ace_replace_form");
|
194
|
-
this.searchOptions = sb.querySelector(".ace_search_options");
|
195
|
-
this.regExpOption = sb.querySelector("[action=toggleRegexpMode]");
|
196
|
-
this.caseSensitiveOption = sb.querySelector("[action=toggleCaseSensitive]");
|
197
|
-
this.wholeWordOption = sb.querySelector("[action=toggleWholeWords]");
|
198
|
-
this.searchInput = this.searchBox.querySelector(".ace_search_field");
|
199
|
-
this.replaceInput = this.replaceBox.querySelector(".ace_search_field");
|
200
|
-
};
|
201
|
-
|
202
|
-
this.$init = function() {
|
203
|
-
var sb = this.element;
|
204
|
-
|
205
|
-
this.$initElements(sb);
|
206
|
-
|
207
|
-
var _this = this;
|
208
|
-
event.addListener(sb, "mousedown", function(e) {
|
209
|
-
setTimeout(function(){
|
210
|
-
_this.activeInput.focus();
|
211
|
-
}, 0);
|
212
|
-
event.stopPropagation(e);
|
213
|
-
});
|
214
|
-
event.addListener(sb, "click", function(e) {
|
215
|
-
var t = e.target || e.srcElement;
|
216
|
-
var action = t.getAttribute("action");
|
217
|
-
if (action && _this[action])
|
218
|
-
_this[action]();
|
219
|
-
else if (_this.$searchBarKb.commands[action])
|
220
|
-
_this.$searchBarKb.commands[action].exec(_this);
|
221
|
-
event.stopPropagation(e);
|
222
|
-
});
|
223
|
-
|
224
|
-
event.addCommandKeyListener(sb, function(e, hashId, keyCode) {
|
225
|
-
var keyString = keyUtil.keyCodeToString(keyCode);
|
226
|
-
var command = _this.$searchBarKb.findKeyCommand(hashId, keyString);
|
227
|
-
if (command && command.exec) {
|
228
|
-
command.exec(_this);
|
229
|
-
event.stopEvent(e);
|
230
|
-
}
|
231
|
-
});
|
232
|
-
|
233
|
-
this.$onChange = lang.delayedCall(function() {
|
234
|
-
_this.find(false, false);
|
235
|
-
});
|
236
|
-
|
237
|
-
event.addListener(this.searchInput, "input", function() {
|
238
|
-
_this.$onChange.schedule(20);
|
239
|
-
});
|
240
|
-
event.addListener(this.searchInput, "focus", function() {
|
241
|
-
_this.activeInput = _this.searchInput;
|
242
|
-
_this.searchInput.value && _this.highlight();
|
243
|
-
});
|
244
|
-
event.addListener(this.replaceInput, "focus", function() {
|
245
|
-
_this.activeInput = _this.replaceInput;
|
246
|
-
_this.searchInput.value && _this.highlight();
|
247
|
-
});
|
248
|
-
};
|
249
|
-
this.$closeSearchBarKb = new HashHandler([{
|
250
|
-
bindKey: "Esc",
|
251
|
-
name: "closeSearchBar",
|
252
|
-
exec: function(editor) {
|
253
|
-
editor.searchBox.hide();
|
254
|
-
}
|
255
|
-
}]);
|
256
|
-
this.$searchBarKb = new HashHandler();
|
257
|
-
this.$searchBarKb.bindKeys({
|
258
|
-
"Ctrl-f|Command-f": function(sb) {
|
259
|
-
var isReplace = sb.isReplace = !sb.isReplace;
|
260
|
-
sb.replaceBox.style.display = isReplace ? "" : "none";
|
261
|
-
sb.searchInput.focus();
|
262
|
-
},
|
263
|
-
"Ctrl-H|Command-Option-F": function(sb) {
|
264
|
-
sb.replaceBox.style.display = "";
|
265
|
-
sb.replaceInput.focus();
|
266
|
-
},
|
267
|
-
"Ctrl-G|Command-G": function(sb) {
|
268
|
-
sb.findNext();
|
269
|
-
},
|
270
|
-
"Ctrl-Shift-G|Command-Shift-G": function(sb) {
|
271
|
-
sb.findPrev();
|
272
|
-
},
|
273
|
-
"esc": function(sb) {
|
274
|
-
setTimeout(function() { sb.hide();});
|
275
|
-
},
|
276
|
-
"Return": function(sb) {
|
277
|
-
if (sb.activeInput == sb.replaceInput)
|
278
|
-
sb.replace();
|
279
|
-
sb.findNext();
|
280
|
-
},
|
281
|
-
"Shift-Return": function(sb) {
|
282
|
-
if (sb.activeInput == sb.replaceInput)
|
283
|
-
sb.replace();
|
284
|
-
sb.findPrev();
|
285
|
-
},
|
286
|
-
"Alt-Return": function(sb) {
|
287
|
-
if (sb.activeInput == sb.replaceInput)
|
288
|
-
sb.replaceAll();
|
289
|
-
sb.findAll();
|
290
|
-
},
|
291
|
-
"Tab": function(sb) {
|
292
|
-
(sb.activeInput == sb.replaceInput ? sb.searchInput : sb.replaceInput).focus();
|
293
|
-
}
|
294
|
-
});
|
295
|
-
|
296
|
-
this.$searchBarKb.addCommands([{
|
297
|
-
name: "toggleRegexpMode",
|
298
|
-
bindKey: {win: "Alt-R|Alt-/", mac: "Ctrl-Alt-R|Ctrl-Alt-/"},
|
299
|
-
exec: function(sb) {
|
300
|
-
sb.regExpOption.checked = !sb.regExpOption.checked;
|
301
|
-
sb.$syncOptions();
|
302
|
-
}
|
303
|
-
}, {
|
304
|
-
name: "toggleCaseSensitive",
|
305
|
-
bindKey: {win: "Alt-C|Alt-I", mac: "Ctrl-Alt-R|Ctrl-Alt-I"},
|
306
|
-
exec: function(sb) {
|
307
|
-
sb.caseSensitiveOption.checked = !sb.caseSensitiveOption.checked;
|
308
|
-
sb.$syncOptions();
|
309
|
-
}
|
310
|
-
}, {
|
311
|
-
name: "toggleWholeWords",
|
312
|
-
bindKey: {win: "Alt-B|Alt-W", mac: "Ctrl-Alt-B|Ctrl-Alt-W"},
|
313
|
-
exec: function(sb) {
|
314
|
-
sb.wholeWordOption.checked = !sb.wholeWordOption.checked;
|
315
|
-
sb.$syncOptions();
|
316
|
-
}
|
317
|
-
}]);
|
318
|
-
|
319
|
-
this.$syncOptions = function() {
|
320
|
-
dom.setCssClass(this.regExpOption, "checked", this.regExpOption.checked);
|
321
|
-
dom.setCssClass(this.wholeWordOption, "checked", this.wholeWordOption.checked);
|
322
|
-
dom.setCssClass(this.caseSensitiveOption, "checked", this.caseSensitiveOption.checked);
|
323
|
-
this.find(false, false);
|
324
|
-
};
|
325
|
-
|
326
|
-
this.highlight = function(re) {
|
327
|
-
this.editor.session.highlight(re || this.editor.$search.$options.re);
|
328
|
-
this.editor.renderer.updateBackMarkers()
|
329
|
-
};
|
330
|
-
this.find = function(skipCurrent, backwards, preventScroll) {
|
331
|
-
var range = this.editor.find(this.searchInput.value, {
|
332
|
-
skipCurrent: skipCurrent,
|
333
|
-
backwards: backwards,
|
334
|
-
wrap: true,
|
335
|
-
regExp: this.regExpOption.checked,
|
336
|
-
caseSensitive: this.caseSensitiveOption.checked,
|
337
|
-
wholeWord: this.wholeWordOption.checked,
|
338
|
-
preventScroll: preventScroll
|
339
|
-
});
|
340
|
-
var noMatch = !range && this.searchInput.value;
|
341
|
-
dom.setCssClass(this.searchBox, "ace_nomatch", noMatch);
|
342
|
-
this.editor._emit("findSearchBox", { match: !noMatch });
|
343
|
-
this.highlight();
|
344
|
-
};
|
345
|
-
this.findNext = function() {
|
346
|
-
this.find(true, false);
|
347
|
-
};
|
348
|
-
this.findPrev = function() {
|
349
|
-
this.find(true, true);
|
350
|
-
};
|
351
|
-
this.findAll = function(){
|
352
|
-
var range = this.editor.findAll(this.searchInput.value, {
|
353
|
-
regExp: this.regExpOption.checked,
|
354
|
-
caseSensitive: this.caseSensitiveOption.checked,
|
355
|
-
wholeWord: this.wholeWordOption.checked
|
356
|
-
});
|
357
|
-
var noMatch = !range && this.searchInput.value;
|
358
|
-
dom.setCssClass(this.searchBox, "ace_nomatch", noMatch);
|
359
|
-
this.editor._emit("findSearchBox", { match: !noMatch });
|
360
|
-
this.highlight();
|
361
|
-
this.hide();
|
362
|
-
};
|
363
|
-
this.replace = function() {
|
364
|
-
if (!this.editor.getReadOnly())
|
365
|
-
this.editor.replace(this.replaceInput.value);
|
366
|
-
};
|
367
|
-
this.replaceAndFindNext = function() {
|
368
|
-
if (!this.editor.getReadOnly()) {
|
369
|
-
this.editor.replace(this.replaceInput.value);
|
370
|
-
this.findNext()
|
371
|
-
}
|
372
|
-
};
|
373
|
-
this.replaceAll = function() {
|
374
|
-
if (!this.editor.getReadOnly())
|
375
|
-
this.editor.replaceAll(this.replaceInput.value);
|
376
|
-
};
|
377
|
-
|
378
|
-
this.hide = function() {
|
379
|
-
this.element.style.display = "none";
|
380
|
-
this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb);
|
381
|
-
this.editor.focus();
|
382
|
-
};
|
383
|
-
this.show = function(value, isReplace) {
|
384
|
-
this.element.style.display = "";
|
385
|
-
this.replaceBox.style.display = isReplace ? "" : "none";
|
386
|
-
|
387
|
-
this.isReplace = isReplace;
|
388
|
-
|
389
|
-
if (value)
|
390
|
-
this.searchInput.value = value;
|
391
|
-
|
392
|
-
this.find(false, false, true);
|
393
|
-
|
394
|
-
this.searchInput.focus();
|
395
|
-
this.searchInput.select();
|
396
|
-
|
397
|
-
this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb);
|
398
|
-
};
|
399
|
-
|
400
|
-
this.isFocused = function() {
|
401
|
-
var el = document.activeElement;
|
402
|
-
return el == this.searchInput || el == this.replaceInput;
|
403
|
-
}
|
404
|
-
}).call(SearchBox.prototype);
|
405
|
-
|
406
|
-
exports.SearchBox = SearchBox;
|
407
|
-
|
408
|
-
exports.Search = function(editor, isReplace) {
|
409
|
-
var sb = editor.searchBox || new SearchBox(editor);
|
410
|
-
sb.show(editor.session.getTextRange(), isReplace);
|
411
|
-
};
|
412
|
-
|
413
|
-
});
|
414
|
-
|
415
|
-
define("ace/ext/old_ie",["require","exports","module","ace/lib/useragent","ace/tokenizer","ace/ext/searchbox","ace/mode/text"], function(require, exports, module) {
|
416
|
-
"use strict";
|
417
|
-
var MAX_TOKEN_COUNT = 1000;
|
418
|
-
var useragent = require("../lib/useragent");
|
419
|
-
var TokenizerModule = require("../tokenizer");
|
420
|
-
|
421
|
-
function patch(obj, name, regexp, replacement) {
|
422
|
-
eval("obj['" + name + "']=" + obj[name].toString().replace(
|
423
|
-
regexp, replacement
|
424
|
-
));
|
425
|
-
}
|
426
|
-
|
427
|
-
if (useragent.isIE && useragent.isIE < 10 && window.top.document.compatMode === "BackCompat")
|
428
|
-
useragent.isOldIE = true;
|
429
|
-
|
430
|
-
if (typeof document != "undefined" && !document.documentElement.querySelector) {
|
431
|
-
useragent.isOldIE = true;
|
432
|
-
var qs = function(el, selector) {
|
433
|
-
if (selector.charAt(0) == ".") {
|
434
|
-
var classNeme = selector.slice(1);
|
435
|
-
} else {
|
436
|
-
var m = selector.match(/(\w+)=(\w+)/);
|
437
|
-
var attr = m && m[1];
|
438
|
-
var attrVal = m && m[2];
|
439
|
-
}
|
440
|
-
for (var i = 0; i < el.all.length; i++) {
|
441
|
-
var ch = el.all[i];
|
442
|
-
if (classNeme) {
|
443
|
-
if (ch.className.indexOf(classNeme) != -1)
|
444
|
-
return ch;
|
445
|
-
} else if (attr) {
|
446
|
-
if (ch.getAttribute(attr) == attrVal)
|
447
|
-
return ch;
|
448
|
-
}
|
449
|
-
}
|
450
|
-
};
|
451
|
-
var sb = require("./searchbox").SearchBox.prototype;
|
452
|
-
patch(
|
453
|
-
sb, "$initElements",
|
454
|
-
/([^\s=]*).querySelector\((".*?")\)/g,
|
455
|
-
"qs($1, $2)"
|
456
|
-
);
|
457
|
-
}
|
458
|
-
|
459
|
-
var compliantExecNpcg = /()??/.exec("")[1] === undefined;
|
460
|
-
if (compliantExecNpcg)
|
461
|
-
return;
|
462
|
-
var proto = TokenizerModule.Tokenizer.prototype;
|
463
|
-
TokenizerModule.Tokenizer_orig = TokenizerModule.Tokenizer;
|
464
|
-
proto.getLineTokens_orig = proto.getLineTokens;
|
465
|
-
|
466
|
-
patch(
|
467
|
-
TokenizerModule, "Tokenizer",
|
468
|
-
"ruleRegExps.push(adjustedregex);\n",
|
469
|
-
function(m) {
|
470
|
-
return m + '\
|
471
|
-
if (state[i].next && RegExp(adjustedregex).test(""))\n\
|
472
|
-
rule._qre = RegExp(adjustedregex, "g");\n\
|
473
|
-
';
|
474
|
-
}
|
475
|
-
);
|
476
|
-
TokenizerModule.Tokenizer.prototype = proto;
|
477
|
-
patch(
|
478
|
-
proto, "getLineTokens",
|
479
|
-
/if \(match\[i \+ 1\] === undefined\)\s*continue;/,
|
480
|
-
"if (!match[i + 1]) {\n\
|
481
|
-
if (value)continue;\n\
|
482
|
-
var qre = state[mapping[i]]._qre;\n\
|
483
|
-
if (!qre) continue;\n\
|
484
|
-
qre.lastIndex = lastIndex;\n\
|
485
|
-
if (!qre.exec(line) || qre.lastIndex != lastIndex)\n\
|
486
|
-
continue;\n\
|
487
|
-
}"
|
488
|
-
);
|
489
|
-
|
490
|
-
patch(
|
491
|
-
require("../mode/text").Mode.prototype, "getTokenizer",
|
492
|
-
/Tokenizer/,
|
493
|
-
"TokenizerModule.Tokenizer"
|
494
|
-
);
|
495
|
-
|
496
|
-
useragent.isOldIE = true;
|
497
|
-
|
498
|
-
});
|
499
|
-
(function() {
|
500
|
-
window.require(["ace/ext/old_ie"], function() {});
|
501
|
-
})();
|
502
|
-
|