bedrock_sass 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/assets/_vendor/ace/ace.js +21635 -0
- data/assets/_vendor/ace/ext-beautify.js +318 -0
- data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +277 -0
- data/assets/_vendor/ace/ext-emmet.js +1226 -0
- data/assets/_vendor/ace/ext-error_marker.js +10 -0
- data/assets/_vendor/ace/ext-keybinding_menu.js +189 -0
- data/assets/_vendor/ace/ext-language_tools.js +1997 -0
- data/assets/_vendor/ace/ext-linking.js +65 -0
- data/assets/_vendor/ace/ext-modelist.js +228 -0
- data/assets/_vendor/ace/ext-options.js +750 -0
- data/assets/_vendor/ace/ext-rtl.js +110 -0
- data/assets/_vendor/ace/ext-searchbox.js +512 -0
- data/assets/_vendor/ace/ext-settings_menu.js +771 -0
- data/assets/_vendor/ace/ext-spellcheck.js +75 -0
- data/assets/_vendor/ace/ext-split.js +208 -0
- data/assets/_vendor/ace/ext-static_highlight.js +226 -0
- data/assets/_vendor/ace/ext-statusbar.js +57 -0
- data/assets/_vendor/ace/ext-textarea.js +567 -0
- data/assets/_vendor/ace/ext-themelist.js +67 -0
- data/assets/_vendor/ace/ext-whitespace.js +210 -0
- data/assets/_vendor/ace/keybinding-emacs.js +1165 -0
- data/assets/_vendor/ace/keybinding-vim.js +5673 -0
- data/assets/_vendor/ace/mode-abap.js +222 -0
- data/assets/_vendor/ace/mode-abc.js +267 -0
- data/assets/_vendor/ace/mode-actionscript.js +274 -0
- data/assets/_vendor/ace/mode-ada.js +138 -0
- data/assets/_vendor/ace/mode-apache_conf.js +363 -0
- data/assets/_vendor/ace/mode-applescript.js +279 -0
- data/assets/_vendor/ace/mode-asciidoc.js +349 -0
- data/assets/_vendor/ace/mode-asl.js +422 -0
- data/assets/_vendor/ace/mode-assembly_x86.js +193 -0
- data/assets/_vendor/ace/mode-autohotkey.js +243 -0
- data/assets/_vendor/ace/mode-batchfile.js +230 -0
- data/assets/_vendor/ace/mode-bro.js +334 -0
- data/assets/_vendor/ace/mode-c9search.js +294 -0
- data/assets/_vendor/ace/mode-c_cpp.js +502 -0
- data/assets/_vendor/ace/mode-cirru.js +211 -0
- data/assets/_vendor/ace/mode-clojure.js +314 -0
- data/assets/_vendor/ace/mode-cobol.js +102 -0
- data/assets/_vendor/ace/mode-coffee.js +400 -0
- data/assets/_vendor/ace/mode-coldfusion.js +2596 -0
- data/assets/_vendor/ace/mode-csharp.js +502 -0
- data/assets/_vendor/ace/mode-csound_document.js +3749 -0
- data/assets/_vendor/ace/mode-csound_orchestra.js +2687 -0
- data/assets/_vendor/ace/mode-csound_score.js +454 -0
- data/assets/_vendor/ace/mode-csp.js +60 -0
- data/assets/_vendor/ace/mode-css.js +723 -0
- data/assets/_vendor/ace/mode-curly.js +2564 -0
- data/assets/_vendor/ace/mode-d.js +520 -0
- data/assets/_vendor/ace/mode-dart.js +703 -0
- data/assets/_vendor/ace/mode-diff.js +146 -0
- data/assets/_vendor/ace/mode-django.js +2594 -0
- data/assets/_vendor/ace/mode-dockerfile.js +498 -0
- data/assets/_vendor/ace/mode-dot.js +418 -0
- data/assets/_vendor/ace/mode-drools.js +496 -0
- data/assets/_vendor/ace/mode-edifact.js +165 -0
- data/assets/_vendor/ace/mode-eiffel.js +136 -0
- data/assets/_vendor/ace/mode-ejs.js +3026 -0
- data/assets/_vendor/ace/mode-elixir.js +501 -0
- data/assets/_vendor/ace/mode-elm.js +307 -0
- data/assets/_vendor/ace/mode-erlang.js +1009 -0
- data/assets/_vendor/ace/mode-forth.js +297 -0
- data/assets/_vendor/ace/mode-fortran.js +431 -0
- data/assets/_vendor/ace/mode-fsharp.js +314 -0
- data/assets/_vendor/ace/mode-ftl.js +1192 -0
- data/assets/_vendor/ace/mode-gcode.js +94 -0
- data/assets/_vendor/ace/mode-gherkin.js +172 -0
- data/assets/_vendor/ace/mode-gitignore.js +60 -0
- data/assets/_vendor/ace/mode-glsl.js +579 -0
- data/assets/_vendor/ace/mode-gobstones.js +929 -0
- data/assets/_vendor/ace/mode-golang.js +414 -0
- data/assets/_vendor/ace/mode-graphqlschema.js +214 -0
- data/assets/_vendor/ace/mode-groovy.js +986 -0
- data/assets/_vendor/ace/mode-haml.js +1555 -0
- data/assets/_vendor/ace/mode-handlebars.js +2622 -0
- data/assets/_vendor/ace/mode-haskell.js +379 -0
- data/assets/_vendor/ace/mode-haskell_cabal.js +142 -0
- data/assets/_vendor/ace/mode-haxe.js +386 -0
- data/assets/_vendor/ace/mode-hjson.js +353 -0
- data/assets/_vendor/ace/mode-html.js +2509 -0
- data/assets/_vendor/ace/mode-html_elixir.js +3087 -0
- data/assets/_vendor/ace/mode-html_ruby.js +3043 -0
- data/assets/_vendor/ace/mode-ini.js +163 -0
- data/assets/_vendor/ace/mode-io.js +253 -0
- data/assets/_vendor/ace/mode-jack.js +347 -0
- data/assets/_vendor/ace/mode-jade.js +2126 -0
- data/assets/_vendor/ace/mode-java.js +975 -0
- data/assets/_vendor/ace/mode-javascript.js +797 -0
- data/assets/_vendor/ace/mode-json.js +327 -0
- data/assets/_vendor/ace/mode-jsoniq.js +4940 -0
- data/assets/_vendor/ace/mode-jsp.js +1430 -0
- data/assets/_vendor/ace/mode-jssm.js +325 -0
- data/assets/_vendor/ace/mode-jsx.js +412 -0
- data/assets/_vendor/ace/mode-julia.js +303 -0
- data/assets/_vendor/ace/mode-kotlin.js +795 -0
- data/assets/_vendor/ace/mode-latex.js +297 -0
- data/assets/_vendor/ace/mode-less.js +841 -0
- data/assets/_vendor/ace/mode-liquid.js +1193 -0
- data/assets/_vendor/ace/mode-lisp.js +112 -0
- data/assets/_vendor/ace/mode-livescript.js +280 -0
- data/assets/_vendor/ace/mode-logiql.js +317 -0
- data/assets/_vendor/ace/mode-lsl.js +343 -0
- data/assets/_vendor/ace/mode-lua.js +432 -0
- data/assets/_vendor/ace/mode-luapage.js +3007 -0
- data/assets/_vendor/ace/mode-lucene.js +87 -0
- data/assets/_vendor/ace/mode-makefile.js +410 -0
- data/assets/_vendor/ace/mode-markdown.js +3189 -0
- data/assets/_vendor/ace/mode-mask.js +1802 -0
- data/assets/_vendor/ace/mode-matlab.js +264 -0
- data/assets/_vendor/ace/mode-maze.js +291 -0
- data/assets/_vendor/ace/mode-mel.js +263 -0
- data/assets/_vendor/ace/mode-mixal.js +123 -0
- data/assets/_vendor/ace/mode-mushcode.js +681 -0
- data/assets/_vendor/ace/mode-mysql.js +168 -0
- data/assets/_vendor/ace/mode-nix.js +646 -0
- data/assets/_vendor/ace/mode-nsis.js +312 -0
- data/assets/_vendor/ace/mode-objectivec.js +739 -0
- data/assets/_vendor/ace/mode-ocaml.js +422 -0
- data/assets/_vendor/ace/mode-pascal.js +205 -0
- data/assets/_vendor/ace/mode-perl.js +380 -0
- data/assets/_vendor/ace/mode-pgsql.js +1508 -0
- data/assets/_vendor/ace/mode-php.js +13088 -0
- data/assets/_vendor/ace/mode-php_laravel_blade.js +13289 -0
- data/assets/_vendor/ace/mode-pig.js +310 -0
- data/assets/_vendor/ace/mode-plain_text.js +33 -0
- data/assets/_vendor/ace/mode-powershell.js +418 -0
- data/assets/_vendor/ace/mode-praat.js +478 -0
- data/assets/_vendor/ace/mode-prolog.js +371 -0
- data/assets/_vendor/ace/mode-properties.js +81 -0
- data/assets/_vendor/ace/mode-protobuf.js +592 -0
- data/assets/_vendor/ace/mode-puppet.js +370 -0
- data/assets/_vendor/ace/mode-python.js +273 -0
- data/assets/_vendor/ace/mode-r.js +310 -0
- data/assets/_vendor/ace/mode-razor.js +2869 -0
- data/assets/_vendor/ace/mode-rdoc.js +243 -0
- data/assets/_vendor/ace/mode-red.js +450 -0
- data/assets/_vendor/ace/mode-redshift.js +361 -0
- data/assets/_vendor/ace/mode-rhtml.js +2806 -0
- data/assets/_vendor/ace/mode-rst.js +257 -0
- data/assets/_vendor/ace/mode-ruby.js +497 -0
- data/assets/_vendor/ace/mode-rust.js +279 -0
- data/assets/_vendor/ace/mode-sass.js +441 -0
- data/assets/_vendor/ace/mode-scad.js +414 -0
- data/assets/_vendor/ace/mode-scala.js +982 -0
- data/assets/_vendor/ace/mode-scheme.js +232 -0
- data/assets/_vendor/ace/mode-scss.js +606 -0
- data/assets/_vendor/ace/mode-sh.js +447 -0
- data/assets/_vendor/ace/mode-sjs.js +1014 -0
- data/assets/_vendor/ace/mode-slim.js +4736 -0
- data/assets/_vendor/ace/mode-smarty.js +2635 -0
- data/assets/_vendor/ace/mode-snippets.js +207 -0
- data/assets/_vendor/ace/mode-soy_template.js +2847 -0
- data/assets/_vendor/ace/mode-space.js +168 -0
- data/assets/_vendor/ace/mode-sparql.js +320 -0
- data/assets/_vendor/ace/mode-sql.js +111 -0
- data/assets/_vendor/ace/mode-sqlserver.js +444 -0
- data/assets/_vendor/ace/mode-stylus.js +471 -0
- data/assets/_vendor/ace/mode-svg.js +1581 -0
- data/assets/_vendor/ace/mode-swift.js +390 -0
- data/assets/_vendor/ace/mode-tcl.js +383 -0
- data/assets/_vendor/ace/mode-terraform.js +398 -0
- data/assets/_vendor/ace/mode-tex.js +159 -0
- data/assets/_vendor/ace/mode-text.js +10 -0
- data/assets/_vendor/ace/mode-textile.js +150 -0
- data/assets/_vendor/ace/mode-toml.js +154 -0
- data/assets/_vendor/ace/mode-tsx.js +887 -0
- data/assets/_vendor/ace/mode-turtle.js +296 -0
- data/assets/_vendor/ace/mode-twig.js +2693 -0
- data/assets/_vendor/ace/mode-typescript.js +868 -0
- data/assets/_vendor/ace/mode-vala.js +676 -0
- data/assets/_vendor/ace/mode-vbscript.js +207 -0
- data/assets/_vendor/ace/mode-velocity.js +2790 -0
- data/assets/_vendor/ace/mode-verilog.js +119 -0
- data/assets/_vendor/ace/mode-vhdl.js +118 -0
- data/assets/_vendor/ace/mode-wollok.js +911 -0
- data/assets/_vendor/ace/mode-xml.js +677 -0
- data/assets/_vendor/ace/mode-xquery.js +4922 -0
- data/assets/_vendor/ace/mode-yaml.js +300 -0
- data/assets/_vendor/ace/snippets/abap.js +15 -0
- data/assets/_vendor/ace/snippets/abc.js +46 -0
- data/assets/_vendor/ace/snippets/actionscript.js +172 -0
- data/assets/_vendor/ace/snippets/ada.js +15 -0
- data/assets/_vendor/ace/snippets/apache_conf.js +15 -0
- data/assets/_vendor/ace/snippets/applescript.js +15 -0
- data/assets/_vendor/ace/snippets/asciidoc.js +15 -0
- data/assets/_vendor/ace/snippets/asl.js +14 -0
- data/assets/_vendor/ace/snippets/assembly_x86.js +15 -0
- data/assets/_vendor/ace/snippets/autohotkey.js +15 -0
- data/assets/_vendor/ace/snippets/batchfile.js +15 -0
- data/assets/_vendor/ace/snippets/bro.js +15 -0
- data/assets/_vendor/ace/snippets/c9search.js +15 -0
- data/assets/_vendor/ace/snippets/c_cpp.js +146 -0
- data/assets/_vendor/ace/snippets/cirru.js +15 -0
- data/assets/_vendor/ace/snippets/clojure.js +105 -0
- data/assets/_vendor/ace/snippets/cobol.js +15 -0
- data/assets/_vendor/ace/snippets/coffee.js +110 -0
- data/assets/_vendor/ace/snippets/coldfusion.js +15 -0
- data/assets/_vendor/ace/snippets/csharp.js +15 -0
- data/assets/_vendor/ace/snippets/csound_document.js +25 -0
- data/assets/_vendor/ace/snippets/csound_orchestra.js +62 -0
- data/assets/_vendor/ace/snippets/csound_score.js +15 -0
- data/assets/_vendor/ace/snippets/csp.js +15 -0
- data/assets/_vendor/ace/snippets/css.js +982 -0
- data/assets/_vendor/ace/snippets/curly.js +15 -0
- data/assets/_vendor/ace/snippets/d.js +15 -0
- data/assets/_vendor/ace/snippets/dart.js +98 -0
- data/assets/_vendor/ace/snippets/diff.js +26 -0
- data/assets/_vendor/ace/snippets/django.js +123 -0
- data/assets/_vendor/ace/snippets/dockerfile.js +15 -0
- data/assets/_vendor/ace/snippets/dot.js +15 -0
- data/assets/_vendor/ace/snippets/drools.js +34 -0
- data/assets/_vendor/ace/snippets/edifact.js +255 -0
- data/assets/_vendor/ace/snippets/eiffel.js +15 -0
- data/assets/_vendor/ace/snippets/ejs.js +15 -0
- data/assets/_vendor/ace/snippets/elixir.js +15 -0
- data/assets/_vendor/ace/snippets/elm.js +15 -0
- data/assets/_vendor/ace/snippets/erlang.js +175 -0
- data/assets/_vendor/ace/snippets/forth.js +15 -0
- data/assets/_vendor/ace/snippets/fortran.js +15 -0
- data/assets/_vendor/ace/snippets/fsharp.js +15 -0
- data/assets/_vendor/ace/snippets/ftl.js +15 -0
- data/assets/_vendor/ace/snippets/gcode.js +15 -0
- data/assets/_vendor/ace/snippets/gherkin.js +15 -0
- data/assets/_vendor/ace/snippets/gitignore.js +15 -0
- data/assets/_vendor/ace/snippets/glsl.js +15 -0
- data/assets/_vendor/ace/snippets/gobstones.js +49 -0
- data/assets/_vendor/ace/snippets/golang.js +15 -0
- data/assets/_vendor/ace/snippets/graphqlschema.js +47 -0
- data/assets/_vendor/ace/snippets/groovy.js +15 -0
- data/assets/_vendor/ace/snippets/haml.js +35 -0
- data/assets/_vendor/ace/snippets/handlebars.js +15 -0
- data/assets/_vendor/ace/snippets/haskell.js +97 -0
- data/assets/_vendor/ace/snippets/haskell_cabal.js +15 -0
- data/assets/_vendor/ace/snippets/haxe.js +15 -0
- data/assets/_vendor/ace/snippets/hjson.js +15 -0
- data/assets/_vendor/ace/snippets/html.js +870 -0
- data/assets/_vendor/ace/snippets/html_elixir.js +15 -0
- data/assets/_vendor/ace/snippets/html_ruby.js +15 -0
- data/assets/_vendor/ace/snippets/ini.js +15 -0
- data/assets/_vendor/ace/snippets/io.js +77 -0
- data/assets/_vendor/ace/snippets/jack.js +15 -0
- data/assets/_vendor/ace/snippets/jade.js +15 -0
- data/assets/_vendor/ace/snippets/java.js +255 -0
- data/assets/_vendor/ace/snippets/javascript.js +210 -0
- data/assets/_vendor/ace/snippets/json.js +15 -0
- data/assets/_vendor/ace/snippets/jsoniq.js +76 -0
- data/assets/_vendor/ace/snippets/jsp.js +114 -0
- data/assets/_vendor/ace/snippets/jssm.js +15 -0
- data/assets/_vendor/ace/snippets/jsx.js +15 -0
- data/assets/_vendor/ace/snippets/julia.js +15 -0
- data/assets/_vendor/ace/snippets/kotlin.js +15 -0
- data/assets/_vendor/ace/snippets/latex.js +15 -0
- data/assets/_vendor/ace/snippets/less.js +15 -0
- data/assets/_vendor/ace/snippets/liquid.js +15 -0
- data/assets/_vendor/ace/snippets/lisp.js +15 -0
- data/assets/_vendor/ace/snippets/livescript.js +15 -0
- data/assets/_vendor/ace/snippets/logiql.js +15 -0
- data/assets/_vendor/ace/snippets/lsl.js +1247 -0
- data/assets/_vendor/ace/snippets/lua.js +36 -0
- data/assets/_vendor/ace/snippets/luapage.js +15 -0
- data/assets/_vendor/ace/snippets/lucene.js +15 -0
- data/assets/_vendor/ace/snippets/makefile.js +19 -0
- data/assets/_vendor/ace/snippets/markdown.js +103 -0
- data/assets/_vendor/ace/snippets/mask.js +15 -0
- data/assets/_vendor/ace/snippets/matlab.js +15 -0
- data/assets/_vendor/ace/snippets/maze.js +24 -0
- data/assets/_vendor/ace/snippets/mel.js +15 -0
- data/assets/_vendor/ace/snippets/mixal.js +15 -0
- data/assets/_vendor/ace/snippets/mushcode.js +15 -0
- data/assets/_vendor/ace/snippets/mysql.js +15 -0
- data/assets/_vendor/ace/snippets/nix.js +15 -0
- data/assets/_vendor/ace/snippets/nsis.js +15 -0
- data/assets/_vendor/ace/snippets/objectivec.js +15 -0
- data/assets/_vendor/ace/snippets/ocaml.js +15 -0
- data/assets/_vendor/ace/snippets/pascal.js +15 -0
- data/assets/_vendor/ace/snippets/perl.js +362 -0
- data/assets/_vendor/ace/snippets/pgsql.js +15 -0
- data/assets/_vendor/ace/snippets/php.js +398 -0
- data/assets/_vendor/ace/snippets/php_laravel_blade.js +15 -0
- data/assets/_vendor/ace/snippets/pig.js +15 -0
- data/assets/_vendor/ace/snippets/plain_text.js +15 -0
- data/assets/_vendor/ace/snippets/powershell.js +15 -0
- data/assets/_vendor/ace/snippets/praat.js +15 -0
- data/assets/_vendor/ace/snippets/prolog.js +15 -0
- data/assets/_vendor/ace/snippets/properties.js +15 -0
- data/assets/_vendor/ace/snippets/protobuf.js +15 -0
- data/assets/_vendor/ace/snippets/puppet.js +15 -0
- data/assets/_vendor/ace/snippets/python.js +173 -0
- data/assets/_vendor/ace/snippets/r.js +136 -0
- data/assets/_vendor/ace/snippets/razor.js +18 -0
- data/assets/_vendor/ace/snippets/rdoc.js +15 -0
- data/assets/_vendor/ace/snippets/red.js +15 -0
- data/assets/_vendor/ace/snippets/redshift.js +15 -0
- data/assets/_vendor/ace/snippets/rhtml.js +15 -0
- data/assets/_vendor/ace/snippets/rst.js +37 -0
- data/assets/_vendor/ace/snippets/ruby.js +943 -0
- data/assets/_vendor/ace/snippets/rust.js +15 -0
- data/assets/_vendor/ace/snippets/sass.js +15 -0
- data/assets/_vendor/ace/snippets/scad.js +15 -0
- data/assets/_vendor/ace/snippets/scala.js +15 -0
- data/assets/_vendor/ace/snippets/scheme.js +15 -0
- data/assets/_vendor/ace/snippets/scss.js +15 -0
- data/assets/_vendor/ace/snippets/sh.js +98 -0
- data/assets/_vendor/ace/snippets/sjs.js +15 -0
- data/assets/_vendor/ace/snippets/slim.js +15 -0
- data/assets/_vendor/ace/snippets/smarty.js +15 -0
- data/assets/_vendor/ace/snippets/snippets.js +24 -0
- data/assets/_vendor/ace/snippets/soy_template.js +15 -0
- data/assets/_vendor/ace/snippets/space.js +15 -0
- data/assets/_vendor/ace/snippets/sparql.js +15 -0
- data/assets/_vendor/ace/snippets/sql.js +41 -0
- data/assets/_vendor/ace/snippets/sqlserver.js +84 -0
- data/assets/_vendor/ace/snippets/stylus.js +15 -0
- data/assets/_vendor/ace/snippets/svg.js +15 -0
- data/assets/_vendor/ace/snippets/swift.js +15 -0
- data/assets/_vendor/ace/snippets/tcl.js +107 -0
- data/assets/_vendor/ace/snippets/terraform.js +15 -0
- data/assets/_vendor/ace/snippets/tex.js +205 -0
- data/assets/_vendor/ace/snippets/text.js +15 -0
- data/assets/_vendor/ace/snippets/textile.js +45 -0
- data/assets/_vendor/ace/snippets/toml.js +15 -0
- data/assets/_vendor/ace/snippets/tsx.js +15 -0
- data/assets/_vendor/ace/snippets/turtle.js +15 -0
- data/assets/_vendor/ace/snippets/twig.js +15 -0
- data/assets/_vendor/ace/snippets/typescript.js +15 -0
- data/assets/_vendor/ace/snippets/vala.js +201 -0
- data/assets/_vendor/ace/snippets/vbscript.js +15 -0
- data/assets/_vendor/ace/snippets/velocity.js +44 -0
- data/assets/_vendor/ace/snippets/verilog.js +15 -0
- data/assets/_vendor/ace/snippets/vhdl.js +15 -0
- data/assets/_vendor/ace/snippets/wollok.js +99 -0
- data/assets/_vendor/ace/snippets/xml.js +15 -0
- data/assets/_vendor/ace/snippets/xquery.js +76 -0
- data/assets/_vendor/ace/snippets/yaml.js +15 -0
- data/assets/_vendor/ace/theme-ambiance.js +185 -0
- data/assets/_vendor/ace/theme-chaos.js +164 -0
- data/assets/_vendor/ace/theme-chrome.js +136 -0
- data/assets/_vendor/ace/theme-clouds.js +103 -0
- data/assets/_vendor/ace/theme-clouds_midnight.js +104 -0
- data/assets/_vendor/ace/theme-cobalt.js +121 -0
- data/assets/_vendor/ace/theme-crimson_editor.js +126 -0
- data/assets/_vendor/ace/theme-dawn.js +116 -0
- data/assets/_vendor/ace/theme-dracula.js +136 -0
- data/assets/_vendor/ace/theme-dreamweaver.js +149 -0
- data/assets/_vendor/ace/theme-eclipse.js +106 -0
- data/assets/_vendor/ace/theme-github.js +110 -0
- data/assets/_vendor/ace/theme-gob.js +120 -0
- data/assets/_vendor/ace/theme-gruvbox.js +90 -0
- data/assets/_vendor/ace/theme-idle_fingers.js +104 -0
- data/assets/_vendor/ace/theme-iplastic.js +129 -0
- data/assets/_vendor/ace/theme-katzenmilch.js +129 -0
- data/assets/_vendor/ace/theme-kr_theme.js +112 -0
- data/assets/_vendor/ace/theme-kuroir.js +69 -0
- data/assets/_vendor/ace/theme-merbivore.js +103 -0
- data/assets/_vendor/ace/theme-merbivore_soft.js +104 -0
- data/assets/_vendor/ace/theme-mono_industrial.js +115 -0
- data/assets/_vendor/ace/theme-monokai.js +113 -0
- data/assets/_vendor/ace/theme-pastel_on_dark.js +116 -0
- data/assets/_vendor/ace/theme-solarized_dark.js +96 -0
- data/assets/_vendor/ace/theme-solarized_light.js +99 -0
- data/assets/_vendor/ace/theme-sqlserver.js +146 -0
- data/assets/_vendor/ace/theme-terminal.js +122 -0
- data/assets/_vendor/ace/theme-textmate.js +138 -0
- data/assets/_vendor/ace/theme-tomorrow.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night_blue.js +114 -0
- data/assets/_vendor/ace/theme-tomorrow_night_bright.js +129 -0
- data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +116 -0
- data/assets/_vendor/ace/theme-twilight.js +117 -0
- data/assets/_vendor/ace/theme-vibrant_ink.js +102 -0
- data/assets/_vendor/ace/theme-xcode.js +96 -0
- data/assets/_vendor/ace/worker-coffee.js +2165 -0
- data/assets/_vendor/ace/worker-css.js +8764 -0
- data/assets/_vendor/ace/worker-html.js +11614 -0
- data/assets/_vendor/ace/worker-javascript.js +12491 -0
- data/assets/_vendor/ace/worker-json.js +2396 -0
- data/assets/_vendor/ace/worker-lua.js +3637 -0
- data/assets/_vendor/ace/worker-php.js +4313 -0
- data/assets/_vendor/ace/worker-xml.js +3899 -0
- data/assets/_vendor/ace/worker-xquery.js +70688 -0
- data/assets/_vendor/motion-ui/_settings.scss +1 -0
- data/assets/_vendor/motion-ui/effects/_fade.scss +1 -4
- data/assets/_vendor/motion-ui/effects/_hinge.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_shake.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_slide.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_spin.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_wiggle.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_zoom.scss +2 -2
- data/assets/_vendor/motion-ui/motion-ui.scss +2 -0
- data/assets/_vendor/motion-ui/transitions/_fade.scss +6 -4
- data/assets/_vendor/motion-ui/transitions/_hinge.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_slide.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_spin.scss +2 -1
- data/assets/_vendor/motion-ui/transitions/_zoom.scss +6 -4
- data/assets/_vendor/motion-ui/util/_animation.scss +1 -1
- data/assets/_vendor/motion-ui/util/_args.scss +2 -2
- data/assets/_vendor/motion-ui/util/_function.scss +94 -0
- data/assets/_vendor/motion-ui/util/_keyframe.scss +5 -5
- data/assets/_vendor/motion-ui/util/_series.scss +20 -17
- data/assets/_vendor/motion-ui/util/_string.scss +36 -0
- data/assets/_vendor/tinymce/plugins/advlist/plugin.js +136 -404
- data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/anchor/plugin.js +103 -323
- data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autolink/plugin.js +153 -377
- data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -427
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autosave/plugin.js +197 -579
- data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +88 -251
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1243 -818
- data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/code/plugin.js +82 -326
- data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/codesample/plugin.js +829 -1444
- data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +111 -257
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +141 -469
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/directionality/plugin.js +57 -261
- data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +78 -247
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +463 -906
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +149 -427
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/help/plugin.js +634 -1434
- data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/image/plugin.js +1147 -1508
- data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3319 -4079
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -2
- data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -543
- data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +151 -460
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +204 -379
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/link/plugin.js +644 -1162
- data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/lists/plugin.js +1005 -1875
- data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/media/plugin.js +1066 -1926
- data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +70 -298
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +96 -294
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +92 -337
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/paste/plugin.js +1363 -2801
- data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/preview/plugin.js +106 -393
- data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/print/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/save/plugin.js +100 -350
- data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +491 -865
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +630 -1292
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +96 -391
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/table/plugin.js +9537 -14920
- data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -5
- data/assets/_vendor/tinymce/plugins/template/plugin.js +309 -771
- data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +319 -592
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +326 -674
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/toc/plugin.js +199 -530
- data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +112 -436
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +428 -1248
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +307 -699
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +1 -1
- data/assets/_vendor/tinymce/themes/inlite/theme.js +9693 -18245
- data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -5
- data/assets/_vendor/tinymce/themes/mobile/theme.js +12629 -22467
- data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -8
- data/assets/_vendor/tinymce/themes/modern/theme.js +9510 -17780
- data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -5
- data/assets/_vendor/tinymce/tinymce.js +25087 -42606
- data/assets/_vendor/yoastseo/css/_icons.scss +7 -7
- data/assets/_vendor/yoastseo/css/_snippet-editor.scss +1 -1
- data/assets/bedrock/js/bedrock.js +1 -71697
- data/assets/bedrock/scss/_bedrock-components.scss +20 -0
- data/assets/bedrock/scss/_bedrock-settings.scss +12 -4
- data/assets/bedrock/scss/_foundation-settings.scss +4 -2
- data/assets/bedrock/scss/components/ace-editor.scss +21 -0
- data/assets/bedrock/scss/components/attachments-grid.scss +18 -15
- data/assets/bedrock/scss/components/date-picker.scss +146 -0
- data/assets/bedrock/scss/components/dropzone-upload.scss +7 -0
- data/assets/bedrock/scss/components/file-input.scss +7 -0
- data/assets/bedrock/scss/components/file-preview.scss +36 -0
- data/assets/bedrock/scss/components/frame-embed.scss +23 -0
- data/assets/bedrock/scss/components/global.scss +27 -0
- data/assets/bedrock/scss/components/helper-classes.scss +1 -0
- data/assets/bedrock/scss/components/icon-box.scss +38 -0
- data/assets/bedrock/scss/components/item-list.scss +66 -0
- data/assets/bedrock/scss/components/lists.scss +58 -0
- data/assets/bedrock/scss/components/off-canvas-menu.scss +27 -15
- data/assets/bedrock/scss/components/place-autocomplete.scss +90 -0
- data/assets/bedrock/scss/components/rrule-generator.scss +102 -0
- data/assets/bedrock/scss/components/rrule-reveal.scss +14 -0
- data/assets/bedrock/scss/components/select-box.scss +1 -0
- data/assets/bedrock/scss/components/seo-analysis.scss +5 -0
- data/assets/bedrock/scss/components/textarea.scss +14 -2
- data/assets/bedrock/scss/components/tiny-mce-editor.scss +5 -16
- data/lib/bedrock_sass.rb +5 -0
- data/lib/bedrock_sass/version.rb +1 -1
- data/lib/tasks/before_assets_precompile.rake +1 -0
- metadata +395 -4
- data/CODE_OF_CONDUCT.md +0 -74
@@ -0,0 +1,257 @@
|
|
1
|
+
define("ace/mode/rst_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var oop = require("../lib/oop");
|
5
|
+
var lang = require("../lib/lang");
|
6
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
7
|
+
|
8
|
+
var RSTHighlightRules = function() {
|
9
|
+
|
10
|
+
var tokens = {
|
11
|
+
title: "markup.heading",
|
12
|
+
list: "markup.heading",
|
13
|
+
table: "constant",
|
14
|
+
directive: "keyword.operator",
|
15
|
+
entity: "string",
|
16
|
+
link: "markup.underline.list",
|
17
|
+
bold: "markup.bold",
|
18
|
+
italic: "markup.italic",
|
19
|
+
literal: "support.function",
|
20
|
+
comment: "comment"
|
21
|
+
};
|
22
|
+
|
23
|
+
var startStringPrefix = "(^|\\s|[\"'(<\\[{\\-/:])";
|
24
|
+
var endStringSuffix = "(?:$|(?=\\s|[\\\\.,;!?\\-/:\"')>\\]}]))";
|
25
|
+
|
26
|
+
this.$rules = {
|
27
|
+
"start": [
|
28
|
+
{
|
29
|
+
token : tokens.title,
|
30
|
+
regex : "(^)([\\=\\-`:\\.'\"~\\^_\\*\\+#])(\\2{2,}\\s*$)"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
token : ["text", tokens.directive, tokens.literal],
|
34
|
+
regex : "(^\\s*\\.\\. )([^: ]+::)(.*$)",
|
35
|
+
next : "codeblock"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
token : tokens.directive,
|
39
|
+
regex : "::$",
|
40
|
+
next : "codeblock"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
token : [tokens.entity, tokens.link],
|
44
|
+
regex : "(^\\.\\. _[^:]+:)(.*$)"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
token : [tokens.entity, tokens.link],
|
48
|
+
regex : "(^__ )(https?://.*$)"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
token : tokens.entity,
|
52
|
+
regex : "^\\.\\. \\[[^\\]]+\\] "
|
53
|
+
},
|
54
|
+
{
|
55
|
+
token : tokens.comment,
|
56
|
+
regex : "^\\.\\. .*$",
|
57
|
+
next : "comment"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
token : tokens.list,
|
61
|
+
regex : "^\\s*[\\*\\+-] "
|
62
|
+
},
|
63
|
+
{
|
64
|
+
token : tokens.list,
|
65
|
+
regex : "^\\s*(?:[A-Za-z]|[0-9]+|[ivxlcdmIVXLCDM]+)\\. "
|
66
|
+
},
|
67
|
+
{
|
68
|
+
token : tokens.list,
|
69
|
+
regex : "^\\s*\\(?(?:[A-Za-z]|[0-9]+|[ivxlcdmIVXLCDM]+)\\) "
|
70
|
+
},
|
71
|
+
{
|
72
|
+
token : tokens.table,
|
73
|
+
regex : "^={2,}(?: +={2,})+$"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
token : tokens.table,
|
77
|
+
regex : "^\\+-{2,}(?:\\+-{2,})+\\+$"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
token : tokens.table,
|
81
|
+
regex : "^\\+={2,}(?:\\+={2,})+\\+$"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
token : ["text", tokens.literal],
|
85
|
+
regex : startStringPrefix + "(``)(?=\\S)",
|
86
|
+
next : "code"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
token : ["text", tokens.bold],
|
90
|
+
regex : startStringPrefix + "(\\*\\*)(?=\\S)",
|
91
|
+
next : "bold"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
token : ["text", tokens.italic],
|
95
|
+
regex : startStringPrefix + "(\\*)(?=\\S)",
|
96
|
+
next : "italic"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
token : tokens.entity,
|
100
|
+
regex : "\\|[\\w\\-]+?\\|"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
token : tokens.entity,
|
104
|
+
regex : ":[\\w-:]+:`\\S",
|
105
|
+
next : "entity"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
token : ["text", tokens.entity],
|
109
|
+
regex : startStringPrefix + "(_`)(?=\\S)",
|
110
|
+
next : "entity"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
token : tokens.entity,
|
114
|
+
regex : "_[A-Za-z0-9\\-]+?"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
token : ["text", tokens.link],
|
118
|
+
regex : startStringPrefix + "(`)(?=\\S)",
|
119
|
+
next : "link"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
token : tokens.link,
|
123
|
+
regex : "[A-Za-z0-9\\-]+?__?"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
token : tokens.link,
|
127
|
+
regex : "\\[[^\\]]+?\\]_"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
token : tokens.link,
|
131
|
+
regex : "https?://\\S+"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
token : tokens.table,
|
135
|
+
regex : "\\|"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"codeblock": [
|
139
|
+
{
|
140
|
+
token : tokens.literal,
|
141
|
+
regex : "^ +.+$",
|
142
|
+
next : "codeblock"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
token : tokens.literal,
|
146
|
+
regex : '^$',
|
147
|
+
next: "codeblock"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
token : "empty",
|
151
|
+
regex : "",
|
152
|
+
next : "start"
|
153
|
+
}
|
154
|
+
],
|
155
|
+
"code": [
|
156
|
+
{
|
157
|
+
token : tokens.literal,
|
158
|
+
regex : "\\S``" + endStringSuffix,
|
159
|
+
next : "start"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
defaultToken: tokens.literal
|
163
|
+
}
|
164
|
+
],
|
165
|
+
"bold": [
|
166
|
+
{
|
167
|
+
token : tokens.bold,
|
168
|
+
regex : "\\S\\*\\*" + endStringSuffix,
|
169
|
+
next : "start"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
defaultToken: tokens.bold
|
173
|
+
}
|
174
|
+
],
|
175
|
+
"italic": [
|
176
|
+
{
|
177
|
+
token : tokens.italic,
|
178
|
+
regex : "\\S\\*" + endStringSuffix,
|
179
|
+
next : "start"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
defaultToken: tokens.italic
|
183
|
+
}
|
184
|
+
],
|
185
|
+
"entity": [
|
186
|
+
{
|
187
|
+
token : tokens.entity,
|
188
|
+
regex : "\\S`" + endStringSuffix,
|
189
|
+
next : "start"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
defaultToken: tokens.entity
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"link": [
|
196
|
+
{
|
197
|
+
token : tokens.link,
|
198
|
+
regex : "\\S`__?" + endStringSuffix,
|
199
|
+
next : "start"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
defaultToken: tokens.link
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"comment": [
|
206
|
+
{
|
207
|
+
token : tokens.comment,
|
208
|
+
regex : "^ +.+$",
|
209
|
+
next : "comment"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
token : tokens.comment,
|
213
|
+
regex : '^$',
|
214
|
+
next: "comment"
|
215
|
+
},
|
216
|
+
{
|
217
|
+
token : "empty",
|
218
|
+
regex : "",
|
219
|
+
next : "start"
|
220
|
+
}
|
221
|
+
]
|
222
|
+
};
|
223
|
+
};
|
224
|
+
oop.inherits(RSTHighlightRules, TextHighlightRules);
|
225
|
+
|
226
|
+
exports.RSTHighlightRules = RSTHighlightRules;
|
227
|
+
});
|
228
|
+
|
229
|
+
define("ace/mode/rst",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/rst_highlight_rules"], function(require, exports, module) {
|
230
|
+
"use strict";
|
231
|
+
|
232
|
+
var oop = require("../lib/oop");
|
233
|
+
var TextMode = require("./text").Mode;
|
234
|
+
var RSTHighlightRules = require("./rst_highlight_rules").RSTHighlightRules;
|
235
|
+
|
236
|
+
var Mode = function() {
|
237
|
+
this.HighlightRules = RSTHighlightRules;
|
238
|
+
};
|
239
|
+
oop.inherits(Mode, TextMode);
|
240
|
+
|
241
|
+
(function() {
|
242
|
+
this.type = "text";
|
243
|
+
|
244
|
+
this.$id = "ace/mode/rst";
|
245
|
+
}).call(Mode.prototype);
|
246
|
+
|
247
|
+
exports.Mode = Mode;
|
248
|
+
|
249
|
+
});
|
250
|
+
(function() {
|
251
|
+
window.require(["ace/mode/rst"], function(m) {
|
252
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
253
|
+
module.exports = m;
|
254
|
+
}
|
255
|
+
});
|
256
|
+
})();
|
257
|
+
|
@@ -0,0 +1,497 @@
|
|
1
|
+
define("ace/mode/ruby_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
|
+
var constantOtherSymbol = exports.constantOtherSymbol = {
|
7
|
+
token : "constant.other.symbol.ruby", // symbol
|
8
|
+
regex : "[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"
|
9
|
+
};
|
10
|
+
|
11
|
+
var qString = exports.qString = {
|
12
|
+
token : "string", // single line
|
13
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
14
|
+
};
|
15
|
+
|
16
|
+
var qqString = exports.qqString = {
|
17
|
+
token : "string", // single line
|
18
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
19
|
+
};
|
20
|
+
|
21
|
+
var tString = exports.tString = {
|
22
|
+
token : "string", // backtick string
|
23
|
+
regex : "[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"
|
24
|
+
};
|
25
|
+
|
26
|
+
var constantNumericHex = exports.constantNumericHex = {
|
27
|
+
token : "constant.numeric", // hex
|
28
|
+
regex : "0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"
|
29
|
+
};
|
30
|
+
|
31
|
+
var constantNumericFloat = exports.constantNumericFloat = {
|
32
|
+
token : "constant.numeric", // float
|
33
|
+
regex : "[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?\\b"
|
34
|
+
};
|
35
|
+
|
36
|
+
var instanceVariable = exports.instanceVariable = {
|
37
|
+
token : "variable.instance", // instance variable
|
38
|
+
regex : "@{1,2}[a-zA-Z_\\d]+"
|
39
|
+
};
|
40
|
+
|
41
|
+
var RubyHighlightRules = function() {
|
42
|
+
|
43
|
+
var builtinFunctions = (
|
44
|
+
"abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|" +
|
45
|
+
"assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|" +
|
46
|
+
"assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|" +
|
47
|
+
"assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|" +
|
48
|
+
"assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|" +
|
49
|
+
"assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|" +
|
50
|
+
"attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|" +
|
51
|
+
"caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|" +
|
52
|
+
"exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|" +
|
53
|
+
"gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|" +
|
54
|
+
"link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|" +
|
55
|
+
"p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|" +
|
56
|
+
"raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|" +
|
57
|
+
"set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|" +
|
58
|
+
"throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|" +
|
59
|
+
"render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|" +
|
60
|
+
"content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|" +
|
61
|
+
"fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|" +
|
62
|
+
"time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|" +
|
63
|
+
"select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|" +
|
64
|
+
"file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|" +
|
65
|
+
"protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|" +
|
66
|
+
"send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|" +
|
67
|
+
"validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|" +
|
68
|
+
"validates_inclusion_of|validates_numericality_of|validates_with|validates_each|" +
|
69
|
+
"authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|" +
|
70
|
+
"filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|" +
|
71
|
+
"translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|" +
|
72
|
+
"cache|expire_fragment|expire_cache_for|observe|cache_sweeper|" +
|
73
|
+
"has_many|has_one|belongs_to|has_and_belongs_to_many"
|
74
|
+
);
|
75
|
+
|
76
|
+
var keywords = (
|
77
|
+
"alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|" +
|
78
|
+
"__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|" +
|
79
|
+
"redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield"
|
80
|
+
);
|
81
|
+
|
82
|
+
var buildinConstants = (
|
83
|
+
"true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|" +
|
84
|
+
"RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING"
|
85
|
+
);
|
86
|
+
|
87
|
+
var builtinVariables = (
|
88
|
+
"$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|" +
|
89
|
+
"$!|root_url|flash|session|cookies|params|request|response|logger|self"
|
90
|
+
);
|
91
|
+
|
92
|
+
var keywordMapper = this.$keywords = this.createKeywordMapper({
|
93
|
+
"keyword": keywords,
|
94
|
+
"constant.language": buildinConstants,
|
95
|
+
"variable.language": builtinVariables,
|
96
|
+
"support.function": builtinFunctions,
|
97
|
+
"invalid.deprecated": "debugger" // TODO is this a remnant from js mode?
|
98
|
+
}, "identifier");
|
99
|
+
this.$rules = {
|
100
|
+
"start" : [
|
101
|
+
{
|
102
|
+
token : "comment",
|
103
|
+
regex : "#.*$"
|
104
|
+
}, {
|
105
|
+
token : "comment", // multi line comment
|
106
|
+
regex : "^=begin(?:$|\\s.*$)",
|
107
|
+
next : "comment"
|
108
|
+
}, {
|
109
|
+
token : "string.regexp",
|
110
|
+
regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
|
111
|
+
},
|
112
|
+
|
113
|
+
[{
|
114
|
+
regex: "[{}]", onMatch: function(val, state, stack) {
|
115
|
+
this.next = val == "{" ? this.nextState : "";
|
116
|
+
if (val == "{" && stack.length) {
|
117
|
+
stack.unshift("start", state);
|
118
|
+
return "paren.lparen";
|
119
|
+
}
|
120
|
+
if (val == "}" && stack.length) {
|
121
|
+
stack.shift();
|
122
|
+
this.next = stack.shift();
|
123
|
+
if (this.next.indexOf("string") != -1)
|
124
|
+
return "paren.end";
|
125
|
+
}
|
126
|
+
return val == "{" ? "paren.lparen" : "paren.rparen";
|
127
|
+
},
|
128
|
+
nextState: "start"
|
129
|
+
}, {
|
130
|
+
token : "string.start",
|
131
|
+
regex : /"/,
|
132
|
+
push : [{
|
133
|
+
token : "constant.language.escape",
|
134
|
+
regex : /\\(?:[nsrtvfbae'"\\]|c.|C-.|M-.(?:\\C-.)?|[0-7]{3}|x[\da-fA-F]{2}|u[\da-fA-F]{4})/
|
135
|
+
}, {
|
136
|
+
token : "paren.start",
|
137
|
+
regex : /#{/,
|
138
|
+
push : "start"
|
139
|
+
}, {
|
140
|
+
token : "string.end",
|
141
|
+
regex : /"/,
|
142
|
+
next : "pop"
|
143
|
+
}, {
|
144
|
+
defaultToken: "string"
|
145
|
+
}]
|
146
|
+
}, {
|
147
|
+
token : "string.start",
|
148
|
+
regex : /`/,
|
149
|
+
push : [{
|
150
|
+
token : "constant.language.escape",
|
151
|
+
regex : /\\(?:[nsrtvfbae'"\\]|c.|C-.|M-.(?:\\C-.)?|[0-7]{3}|x[\da-fA-F]{2}|u[\da-fA-F]{4})/
|
152
|
+
}, {
|
153
|
+
token : "paren.start",
|
154
|
+
regex : /#{/,
|
155
|
+
push : "start"
|
156
|
+
}, {
|
157
|
+
token : "string.end",
|
158
|
+
regex : /`/,
|
159
|
+
next : "pop"
|
160
|
+
}, {
|
161
|
+
defaultToken: "string"
|
162
|
+
}]
|
163
|
+
}, {
|
164
|
+
token : "string.start",
|
165
|
+
regex : /'/,
|
166
|
+
push : [{
|
167
|
+
token : "constant.language.escape",
|
168
|
+
regex : /\\['\\]/
|
169
|
+
}, {
|
170
|
+
token : "string.end",
|
171
|
+
regex : /'/,
|
172
|
+
next : "pop"
|
173
|
+
}, {
|
174
|
+
defaultToken: "string"
|
175
|
+
}]
|
176
|
+
}],
|
177
|
+
{
|
178
|
+
token : "text", // namespaces aren't symbols
|
179
|
+
regex : "::"
|
180
|
+
}, {
|
181
|
+
token : "variable.instance", // instance variable
|
182
|
+
regex : "@{1,2}[a-zA-Z_\\d]+"
|
183
|
+
}, {
|
184
|
+
token : "support.class", // class name
|
185
|
+
regex : "[A-Z][a-zA-Z_\\d]+"
|
186
|
+
},
|
187
|
+
|
188
|
+
constantOtherSymbol,
|
189
|
+
constantNumericHex,
|
190
|
+
constantNumericFloat,
|
191
|
+
|
192
|
+
{
|
193
|
+
token : "constant.language.boolean",
|
194
|
+
regex : "(?:true|false)\\b"
|
195
|
+
}, {
|
196
|
+
token : keywordMapper,
|
197
|
+
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
198
|
+
}, {
|
199
|
+
token : "punctuation.separator.key-value",
|
200
|
+
regex : "=>"
|
201
|
+
}, {
|
202
|
+
stateName: "heredoc",
|
203
|
+
onMatch : function(value, currentState, stack) {
|
204
|
+
var next = value[2] == '-' ? "indentedHeredoc" : "heredoc";
|
205
|
+
var tokens = value.split(this.splitRegex);
|
206
|
+
stack.push(next, tokens[3]);
|
207
|
+
return [
|
208
|
+
{type:"constant", value: tokens[1]},
|
209
|
+
{type:"string", value: tokens[2]},
|
210
|
+
{type:"support.class", value: tokens[3]},
|
211
|
+
{type:"string", value: tokens[4]}
|
212
|
+
];
|
213
|
+
},
|
214
|
+
regex : "(<<-?)(['\"`]?)([\\w]+)(['\"`]?)",
|
215
|
+
rules: {
|
216
|
+
heredoc: [{
|
217
|
+
onMatch: function(value, currentState, stack) {
|
218
|
+
if (value === stack[1]) {
|
219
|
+
stack.shift();
|
220
|
+
stack.shift();
|
221
|
+
this.next = stack[0] || "start";
|
222
|
+
return "support.class";
|
223
|
+
}
|
224
|
+
this.next = "";
|
225
|
+
return "string";
|
226
|
+
},
|
227
|
+
regex: ".*$",
|
228
|
+
next: "start"
|
229
|
+
}],
|
230
|
+
indentedHeredoc: [{
|
231
|
+
token: "string",
|
232
|
+
regex: "^ +"
|
233
|
+
}, {
|
234
|
+
onMatch: function(value, currentState, stack) {
|
235
|
+
if (value === stack[1]) {
|
236
|
+
stack.shift();
|
237
|
+
stack.shift();
|
238
|
+
this.next = stack[0] || "start";
|
239
|
+
return "support.class";
|
240
|
+
}
|
241
|
+
this.next = "";
|
242
|
+
return "string";
|
243
|
+
},
|
244
|
+
regex: ".*$",
|
245
|
+
next: "start"
|
246
|
+
}]
|
247
|
+
}
|
248
|
+
}, {
|
249
|
+
regex : "$",
|
250
|
+
token : "empty",
|
251
|
+
next : function(currentState, stack) {
|
252
|
+
if (stack[0] === "heredoc" || stack[0] === "indentedHeredoc")
|
253
|
+
return stack[0];
|
254
|
+
return currentState;
|
255
|
+
}
|
256
|
+
}, {
|
257
|
+
token : "string.character",
|
258
|
+
regex : "\\B\\?."
|
259
|
+
}, {
|
260
|
+
token : "keyword.operator",
|
261
|
+
regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"
|
262
|
+
}, {
|
263
|
+
token : "paren.lparen",
|
264
|
+
regex : "[[({]"
|
265
|
+
}, {
|
266
|
+
token : "paren.rparen",
|
267
|
+
regex : "[\\])}]"
|
268
|
+
}, {
|
269
|
+
token : "text",
|
270
|
+
regex : "\\s+"
|
271
|
+
}
|
272
|
+
],
|
273
|
+
"comment" : [
|
274
|
+
{
|
275
|
+
token : "comment", // closing comment
|
276
|
+
regex : "^=end(?:$|\\s.*$)",
|
277
|
+
next : "start"
|
278
|
+
}, {
|
279
|
+
token : "comment", // comment spanning whole line
|
280
|
+
regex : ".+"
|
281
|
+
}
|
282
|
+
]
|
283
|
+
};
|
284
|
+
|
285
|
+
this.normalizeRules();
|
286
|
+
};
|
287
|
+
|
288
|
+
oop.inherits(RubyHighlightRules, TextHighlightRules);
|
289
|
+
|
290
|
+
exports.RubyHighlightRules = RubyHighlightRules;
|
291
|
+
});
|
292
|
+
|
293
|
+
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
294
|
+
"use strict";
|
295
|
+
|
296
|
+
var Range = require("../range").Range;
|
297
|
+
|
298
|
+
var MatchingBraceOutdent = function() {};
|
299
|
+
|
300
|
+
(function() {
|
301
|
+
|
302
|
+
this.checkOutdent = function(line, input) {
|
303
|
+
if (! /^\s+$/.test(line))
|
304
|
+
return false;
|
305
|
+
|
306
|
+
return /^\s*\}/.test(input);
|
307
|
+
};
|
308
|
+
|
309
|
+
this.autoOutdent = function(doc, row) {
|
310
|
+
var line = doc.getLine(row);
|
311
|
+
var match = line.match(/^(\s*\})/);
|
312
|
+
|
313
|
+
if (!match) return 0;
|
314
|
+
|
315
|
+
var column = match[1].length;
|
316
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
317
|
+
|
318
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
319
|
+
|
320
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
321
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
322
|
+
};
|
323
|
+
|
324
|
+
this.$getIndent = function(line) {
|
325
|
+
return line.match(/^\s*/)[0];
|
326
|
+
};
|
327
|
+
|
328
|
+
}).call(MatchingBraceOutdent.prototype);
|
329
|
+
|
330
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
331
|
+
});
|
332
|
+
|
333
|
+
define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
|
334
|
+
"use strict";
|
335
|
+
|
336
|
+
var oop = require("../../lib/oop");
|
337
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
338
|
+
var Range = require("../../range").Range;
|
339
|
+
|
340
|
+
var FoldMode = exports.FoldMode = function() {};
|
341
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
342
|
+
|
343
|
+
(function() {
|
344
|
+
|
345
|
+
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
346
|
+
var range = this.indentationBlock(session, row);
|
347
|
+
if (range)
|
348
|
+
return range;
|
349
|
+
|
350
|
+
var re = /\S/;
|
351
|
+
var line = session.getLine(row);
|
352
|
+
var startLevel = line.search(re);
|
353
|
+
if (startLevel == -1 || line[startLevel] != "#")
|
354
|
+
return;
|
355
|
+
|
356
|
+
var startColumn = line.length;
|
357
|
+
var maxRow = session.getLength();
|
358
|
+
var startRow = row;
|
359
|
+
var endRow = row;
|
360
|
+
|
361
|
+
while (++row < maxRow) {
|
362
|
+
line = session.getLine(row);
|
363
|
+
var level = line.search(re);
|
364
|
+
|
365
|
+
if (level == -1)
|
366
|
+
continue;
|
367
|
+
|
368
|
+
if (line[level] != "#")
|
369
|
+
break;
|
370
|
+
|
371
|
+
endRow = row;
|
372
|
+
}
|
373
|
+
|
374
|
+
if (endRow > startRow) {
|
375
|
+
var endColumn = session.getLine(endRow).length;
|
376
|
+
return new Range(startRow, startColumn, endRow, endColumn);
|
377
|
+
}
|
378
|
+
};
|
379
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
380
|
+
var line = session.getLine(row);
|
381
|
+
var indent = line.search(/\S/);
|
382
|
+
var next = session.getLine(row + 1);
|
383
|
+
var prev = session.getLine(row - 1);
|
384
|
+
var prevIndent = prev.search(/\S/);
|
385
|
+
var nextIndent = next.search(/\S/);
|
386
|
+
|
387
|
+
if (indent == -1) {
|
388
|
+
session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
|
389
|
+
return "";
|
390
|
+
}
|
391
|
+
if (prevIndent == -1) {
|
392
|
+
if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
|
393
|
+
session.foldWidgets[row - 1] = "";
|
394
|
+
session.foldWidgets[row + 1] = "";
|
395
|
+
return "start";
|
396
|
+
}
|
397
|
+
} else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
|
398
|
+
if (session.getLine(row - 2).search(/\S/) == -1) {
|
399
|
+
session.foldWidgets[row - 1] = "start";
|
400
|
+
session.foldWidgets[row + 1] = "";
|
401
|
+
return "";
|
402
|
+
}
|
403
|
+
}
|
404
|
+
|
405
|
+
if (prevIndent!= -1 && prevIndent < indent)
|
406
|
+
session.foldWidgets[row - 1] = "start";
|
407
|
+
else
|
408
|
+
session.foldWidgets[row - 1] = "";
|
409
|
+
|
410
|
+
if (indent < nextIndent)
|
411
|
+
return "start";
|
412
|
+
else
|
413
|
+
return "";
|
414
|
+
};
|
415
|
+
|
416
|
+
}).call(FoldMode.prototype);
|
417
|
+
|
418
|
+
});
|
419
|
+
|
420
|
+
define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/coffee"], function(require, exports, module) {
|
421
|
+
"use strict";
|
422
|
+
|
423
|
+
var oop = require("../lib/oop");
|
424
|
+
var TextMode = require("./text").Mode;
|
425
|
+
var RubyHighlightRules = require("./ruby_highlight_rules").RubyHighlightRules;
|
426
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
427
|
+
var Range = require("../range").Range;
|
428
|
+
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
429
|
+
var FoldMode = require("./folding/coffee").FoldMode;
|
430
|
+
|
431
|
+
var Mode = function() {
|
432
|
+
this.HighlightRules = RubyHighlightRules;
|
433
|
+
this.$outdent = new MatchingBraceOutdent();
|
434
|
+
this.$behaviour = new CstyleBehaviour();
|
435
|
+
this.foldingRules = new FoldMode();
|
436
|
+
};
|
437
|
+
oop.inherits(Mode, TextMode);
|
438
|
+
|
439
|
+
(function() {
|
440
|
+
|
441
|
+
|
442
|
+
this.lineCommentStart = "#";
|
443
|
+
|
444
|
+
this.getNextLineIndent = function(state, line, tab) {
|
445
|
+
var indent = this.$getIndent(line);
|
446
|
+
|
447
|
+
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
|
448
|
+
var tokens = tokenizedLine.tokens;
|
449
|
+
|
450
|
+
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
451
|
+
return indent;
|
452
|
+
}
|
453
|
+
|
454
|
+
if (state == "start") {
|
455
|
+
var match = line.match(/^.*[\{\(\[]\s*$/);
|
456
|
+
var startingClassOrMethod = line.match(/^\s*(class|def|module)\s.*$/);
|
457
|
+
var startingDoBlock = line.match(/.*do(\s*|\s+\|.*\|\s*)$/);
|
458
|
+
var startingConditional = line.match(/^\s*(if|else|when)\s*/);
|
459
|
+
if (match || startingClassOrMethod || startingDoBlock || startingConditional) {
|
460
|
+
indent += tab;
|
461
|
+
}
|
462
|
+
}
|
463
|
+
|
464
|
+
return indent;
|
465
|
+
};
|
466
|
+
|
467
|
+
this.checkOutdent = function(state, line, input) {
|
468
|
+
return /^\s+(end|else)$/.test(line + input) || this.$outdent.checkOutdent(line, input);
|
469
|
+
};
|
470
|
+
|
471
|
+
this.autoOutdent = function(state, session, row) {
|
472
|
+
var line = session.getLine(row);
|
473
|
+
if (/}/.test(line))
|
474
|
+
return this.$outdent.autoOutdent(session, row);
|
475
|
+
var indent = this.$getIndent(line);
|
476
|
+
var prevLine = session.getLine(row - 1);
|
477
|
+
var prevIndent = this.$getIndent(prevLine);
|
478
|
+
var tab = session.getTabString();
|
479
|
+
if (prevIndent.length <= indent.length) {
|
480
|
+
if (indent.slice(-tab.length) == tab)
|
481
|
+
session.remove(new Range(row, indent.length-tab.length, row, indent.length));
|
482
|
+
}
|
483
|
+
};
|
484
|
+
|
485
|
+
this.$id = "ace/mode/ruby";
|
486
|
+
}).call(Mode.prototype);
|
487
|
+
|
488
|
+
exports.Mode = Mode;
|
489
|
+
});
|
490
|
+
(function() {
|
491
|
+
window.require(["ace/mode/ruby"], function(m) {
|
492
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
493
|
+
module.exports = m;
|
494
|
+
}
|
495
|
+
});
|
496
|
+
})();
|
497
|
+
|