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,318 @@
|
|
1
|
+
define("ace/ext/beautify",["require","exports","module","ace/token_iterator"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
var TokenIterator = require("../token_iterator").TokenIterator;
|
4
|
+
|
5
|
+
function is(token, type) {
|
6
|
+
return token.type.lastIndexOf(type + ".xml") > -1;
|
7
|
+
}
|
8
|
+
exports.singletonTags = ["area", "base", "br", "col", "command", "embed", "hr", "html", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"];
|
9
|
+
exports.blockTags = ["article", "aside", "blockquote", "body", "div", "dl", "fieldset", "footer", "form", "head", "header", "html", "nav", "ol", "p", "script", "section", "style", "table", "tbody", "tfoot", "thead", "ul"];
|
10
|
+
|
11
|
+
exports.beautify = function(session) {
|
12
|
+
var iterator = new TokenIterator(session, 0, 0);
|
13
|
+
var token = iterator.getCurrentToken();
|
14
|
+
var tabString = session.getTabString();
|
15
|
+
var singletonTags = exports.singletonTags;
|
16
|
+
var blockTags = exports.blockTags;
|
17
|
+
var nextToken;
|
18
|
+
var breakBefore = false;
|
19
|
+
var spaceBefore = false;
|
20
|
+
var spaceAfter = false;
|
21
|
+
var code = "";
|
22
|
+
var value = "";
|
23
|
+
var tagName = "";
|
24
|
+
var depth = 0;
|
25
|
+
var lastDepth = 0;
|
26
|
+
var lastIndent = 0;
|
27
|
+
var indent = 0;
|
28
|
+
var unindent = 0;
|
29
|
+
var roundDepth = 0;
|
30
|
+
var onCaseLine = false;
|
31
|
+
var row;
|
32
|
+
var curRow = 0;
|
33
|
+
var rowsToAdd = 0;
|
34
|
+
var rowTokens = [];
|
35
|
+
var abort = false;
|
36
|
+
var i;
|
37
|
+
var indentNextLine = false;
|
38
|
+
var inTag = false;
|
39
|
+
var inCSS = false;
|
40
|
+
var inBlock = false;
|
41
|
+
var levels = {0: 0};
|
42
|
+
var parents = {};
|
43
|
+
|
44
|
+
var trimNext = function() {
|
45
|
+
if (nextToken && nextToken.value && nextToken.type !== 'string.regexp')
|
46
|
+
nextToken.value = nextToken.value.trim();
|
47
|
+
};
|
48
|
+
|
49
|
+
var trimLine = function() {
|
50
|
+
code = code.replace(/ +$/, "");
|
51
|
+
};
|
52
|
+
|
53
|
+
var trimCode = function() {
|
54
|
+
code = code.trimRight();
|
55
|
+
breakBefore = false;
|
56
|
+
};
|
57
|
+
|
58
|
+
while (token !== null) {
|
59
|
+
curRow = iterator.getCurrentTokenRow();
|
60
|
+
rowTokens = iterator.$rowTokens;
|
61
|
+
nextToken = iterator.stepForward();
|
62
|
+
|
63
|
+
if (typeof token !== "undefined") {
|
64
|
+
value = token.value;
|
65
|
+
unindent = 0;
|
66
|
+
inCSS = (tagName === "style" || session.$modeId === "ace/mode/css");
|
67
|
+
if (is(token, "tag-open")) {
|
68
|
+
inTag = true;
|
69
|
+
if (nextToken)
|
70
|
+
inBlock = (blockTags.indexOf(nextToken.value) !== -1);
|
71
|
+
if (value === "</") {
|
72
|
+
if (inBlock && !breakBefore && rowsToAdd < 1)
|
73
|
+
rowsToAdd++;
|
74
|
+
|
75
|
+
if (inCSS)
|
76
|
+
rowsToAdd = 1;
|
77
|
+
|
78
|
+
unindent = 1;
|
79
|
+
inBlock = false;
|
80
|
+
}
|
81
|
+
} else if (is(token, "tag-close")) {
|
82
|
+
inTag = false;
|
83
|
+
} else if (is(token, "comment.start")) {
|
84
|
+
inBlock = true;
|
85
|
+
} else if (is(token, "comment.end")) {
|
86
|
+
inBlock = false;
|
87
|
+
}
|
88
|
+
if (!inTag && !rowsToAdd && token.type === "paren.rparen" && token.value.substr(0, 1) === "}") {
|
89
|
+
rowsToAdd++;
|
90
|
+
}
|
91
|
+
if (curRow !== row) {
|
92
|
+
rowsToAdd = curRow;
|
93
|
+
|
94
|
+
if (row)
|
95
|
+
rowsToAdd -= row;
|
96
|
+
}
|
97
|
+
|
98
|
+
if (rowsToAdd) {
|
99
|
+
trimCode();
|
100
|
+
for (; rowsToAdd > 0; rowsToAdd--)
|
101
|
+
code += "\n";
|
102
|
+
|
103
|
+
breakBefore = true;
|
104
|
+
if (!is(token, "comment") && !token.type.match(/^(comment|string)$/))
|
105
|
+
value = value.trimLeft();
|
106
|
+
}
|
107
|
+
|
108
|
+
if (value) {
|
109
|
+
if (token.type === "keyword" && value.match(/^(if|else|elseif|for|foreach|while|switch)$/)) {
|
110
|
+
parents[depth] = value;
|
111
|
+
|
112
|
+
trimNext();
|
113
|
+
spaceAfter = true;
|
114
|
+
if (value.match(/^(else|elseif)$/)) {
|
115
|
+
if (code.match(/\}[\s]*$/)) {
|
116
|
+
trimCode();
|
117
|
+
spaceBefore = true;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
} else if (token.type === "paren.lparen") {
|
121
|
+
trimNext();
|
122
|
+
if (value.substr(-1) === "{") {
|
123
|
+
spaceAfter = true;
|
124
|
+
indentNextLine = false;
|
125
|
+
|
126
|
+
if(!inTag)
|
127
|
+
rowsToAdd = 1;
|
128
|
+
}
|
129
|
+
if (value.substr(0, 1) === "{") {
|
130
|
+
spaceBefore = true;
|
131
|
+
if (code.substr(-1) !== '[' && code.trimRight().substr(-1) === '[') {
|
132
|
+
trimCode();
|
133
|
+
spaceBefore = false;
|
134
|
+
} else if (code.trimRight().substr(-1) === ')') {
|
135
|
+
trimCode();
|
136
|
+
} else {
|
137
|
+
trimLine();
|
138
|
+
}
|
139
|
+
}
|
140
|
+
} else if (token.type === "paren.rparen") {
|
141
|
+
unindent = 1;
|
142
|
+
if (value.substr(0, 1) === "}") {
|
143
|
+
if (parents[depth-1] === 'case')
|
144
|
+
unindent++;
|
145
|
+
|
146
|
+
if (code.trimRight().substr(-1) === '{') {
|
147
|
+
trimCode();
|
148
|
+
} else {
|
149
|
+
spaceBefore = true;
|
150
|
+
|
151
|
+
if (inCSS)
|
152
|
+
rowsToAdd+=2;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
if (value.substr(0, 1) === "]") {
|
156
|
+
if (code.substr(-1) !== '}' && code.trimRight().substr(-1) === '}') {
|
157
|
+
spaceBefore = false;
|
158
|
+
indent++;
|
159
|
+
trimCode();
|
160
|
+
}
|
161
|
+
}
|
162
|
+
if (value.substr(0, 1) === ")") {
|
163
|
+
if (code.substr(-1) !== '(' && code.trimRight().substr(-1) === '(') {
|
164
|
+
spaceBefore = false;
|
165
|
+
indent++;
|
166
|
+
trimCode();
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
trimLine();
|
171
|
+
} else if ((token.type === "keyword.operator" || token.type === "keyword") && value.match(/^(=|==|===|!=|!==|&&|\|\||and|or|xor|\+=|.=|>|>=|<|<=|=>)$/)) {
|
172
|
+
trimCode();
|
173
|
+
trimNext();
|
174
|
+
spaceBefore = true;
|
175
|
+
spaceAfter = true;
|
176
|
+
} else if (token.type === "punctuation.operator" && value === ';') {
|
177
|
+
trimCode();
|
178
|
+
trimNext();
|
179
|
+
spaceAfter = true;
|
180
|
+
|
181
|
+
if (inCSS)
|
182
|
+
rowsToAdd++;
|
183
|
+
} else if (token.type === "punctuation.operator" && value.match(/^(:|,)$/)) {
|
184
|
+
trimCode();
|
185
|
+
trimNext();
|
186
|
+
spaceAfter = true;
|
187
|
+
breakBefore = false;
|
188
|
+
} else if (token.type === "support.php_tag" && value === "?>" && !breakBefore) {
|
189
|
+
trimCode();
|
190
|
+
spaceBefore = true;
|
191
|
+
} else if (is(token, "attribute-name") && code.substr(-1).match(/^\s$/)) {
|
192
|
+
spaceBefore = true;
|
193
|
+
} else if (is(token, "attribute-equals")) {
|
194
|
+
trimLine();
|
195
|
+
trimNext();
|
196
|
+
} else if (is(token, "tag-close")) {
|
197
|
+
trimLine();
|
198
|
+
if(value === "/>")
|
199
|
+
spaceBefore = true;
|
200
|
+
}
|
201
|
+
if (breakBefore && !(token.type.match(/^(comment)$/) && !value.substr(0, 1).match(/^[/#]$/)) && !(token.type.match(/^(string)$/) && !value.substr(0, 1).match(/^['"]$/))) {
|
202
|
+
|
203
|
+
indent = lastIndent;
|
204
|
+
|
205
|
+
if(depth > lastDepth) {
|
206
|
+
indent++;
|
207
|
+
|
208
|
+
for (i=depth; i > lastDepth; i--)
|
209
|
+
levels[i] = indent;
|
210
|
+
} else if(depth < lastDepth)
|
211
|
+
indent = levels[depth];
|
212
|
+
|
213
|
+
lastDepth = depth;
|
214
|
+
lastIndent = indent;
|
215
|
+
|
216
|
+
if(unindent)
|
217
|
+
indent -= unindent;
|
218
|
+
|
219
|
+
if (indentNextLine && !roundDepth) {
|
220
|
+
indent++;
|
221
|
+
indentNextLine = false;
|
222
|
+
}
|
223
|
+
|
224
|
+
for (i = 0; i < indent; i++)
|
225
|
+
code += tabString;
|
226
|
+
}
|
227
|
+
|
228
|
+
|
229
|
+
if (token.type === "keyword" && value.match(/^(case|default)$/)) {
|
230
|
+
parents[depth] = value;
|
231
|
+
depth++;
|
232
|
+
}
|
233
|
+
|
234
|
+
|
235
|
+
if (token.type === "keyword" && value.match(/^(break)$/)) {
|
236
|
+
if(parents[depth-1] && parents[depth-1].match(/^(case|default)$/)) {
|
237
|
+
depth--;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
if (token.type === "paren.lparen") {
|
241
|
+
roundDepth += (value.match(/\(/g) || []).length;
|
242
|
+
depth += value.length;
|
243
|
+
}
|
244
|
+
|
245
|
+
if (token.type === "keyword" && value.match(/^(if|else|elseif|for|while)$/)) {
|
246
|
+
indentNextLine = true;
|
247
|
+
roundDepth = 0;
|
248
|
+
} else if (!roundDepth && value.trim() && token.type !== "comment")
|
249
|
+
indentNextLine = false;
|
250
|
+
|
251
|
+
if (token.type === "paren.rparen") {
|
252
|
+
roundDepth -= (value.match(/\)/g) || []).length;
|
253
|
+
|
254
|
+
for (i = 0; i < value.length; i++) {
|
255
|
+
depth--;
|
256
|
+
if(value.substr(i, 1)==='}' && parents[depth]==='case') {
|
257
|
+
depth--;
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
if (spaceBefore && !breakBefore) {
|
262
|
+
trimLine();
|
263
|
+
if (code.substr(-1) !== "\n")
|
264
|
+
code += " ";
|
265
|
+
}
|
266
|
+
|
267
|
+
code += value;
|
268
|
+
|
269
|
+
if (spaceAfter)
|
270
|
+
code += " ";
|
271
|
+
|
272
|
+
breakBefore = false;
|
273
|
+
spaceBefore = false;
|
274
|
+
spaceAfter = false;
|
275
|
+
if ((is(token, "tag-close") && (inBlock || blockTags.indexOf(tagName) !== -1)) || (is(token, "doctype") && value === ">")) {
|
276
|
+
if (inBlock && nextToken && nextToken.value === "</")
|
277
|
+
rowsToAdd = -1;
|
278
|
+
else
|
279
|
+
rowsToAdd = 1;
|
280
|
+
}
|
281
|
+
if (is(token, "tag-open") && value === "</") {
|
282
|
+
depth--;
|
283
|
+
} else if (is(token, "tag-open") && value === "<" && singletonTags.indexOf(nextToken.value) === -1) {
|
284
|
+
depth++;
|
285
|
+
} else if (is(token, "tag-name")) {
|
286
|
+
tagName = value;
|
287
|
+
} else if (is(token, "tag-close") && value === "/>" && singletonTags.indexOf(tagName) === -1){
|
288
|
+
depth--;
|
289
|
+
}
|
290
|
+
|
291
|
+
row = curRow;
|
292
|
+
}
|
293
|
+
}
|
294
|
+
|
295
|
+
token = nextToken;
|
296
|
+
}
|
297
|
+
|
298
|
+
code = code.trim();
|
299
|
+
session.doc.setValue(code);
|
300
|
+
};
|
301
|
+
|
302
|
+
exports.commands = [{
|
303
|
+
name: "beautify",
|
304
|
+
exec: function(editor) {
|
305
|
+
exports.beautify(editor.session);
|
306
|
+
},
|
307
|
+
bindKey: "Ctrl-Shift-B"
|
308
|
+
}];
|
309
|
+
|
310
|
+
});
|
311
|
+
(function() {
|
312
|
+
window.require(["ace/ext/beautify"], function(m) {
|
313
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
314
|
+
module.exports = m;
|
315
|
+
}
|
316
|
+
});
|
317
|
+
})();
|
318
|
+
|
@@ -0,0 +1,277 @@
|
|
1
|
+
define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var ElasticTabstopsLite = function(editor) {
|
5
|
+
this.$editor = editor;
|
6
|
+
var self = this;
|
7
|
+
var changedRows = [];
|
8
|
+
var recordChanges = false;
|
9
|
+
this.onAfterExec = function() {
|
10
|
+
recordChanges = false;
|
11
|
+
self.processRows(changedRows);
|
12
|
+
changedRows = [];
|
13
|
+
};
|
14
|
+
this.onExec = function() {
|
15
|
+
recordChanges = true;
|
16
|
+
};
|
17
|
+
this.onChange = function(delta) {
|
18
|
+
if (recordChanges) {
|
19
|
+
if (changedRows.indexOf(delta.start.row) == -1)
|
20
|
+
changedRows.push(delta.start.row);
|
21
|
+
if (delta.end.row != delta.start.row)
|
22
|
+
changedRows.push(delta.end.row);
|
23
|
+
}
|
24
|
+
};
|
25
|
+
};
|
26
|
+
|
27
|
+
(function() {
|
28
|
+
this.processRows = function(rows) {
|
29
|
+
this.$inChange = true;
|
30
|
+
var checkedRows = [];
|
31
|
+
|
32
|
+
for (var r = 0, rowCount = rows.length; r < rowCount; r++) {
|
33
|
+
var row = rows[r];
|
34
|
+
|
35
|
+
if (checkedRows.indexOf(row) > -1)
|
36
|
+
continue;
|
37
|
+
|
38
|
+
var cellWidthObj = this.$findCellWidthsForBlock(row);
|
39
|
+
var cellWidths = this.$setBlockCellWidthsToMax(cellWidthObj.cellWidths);
|
40
|
+
var rowIndex = cellWidthObj.firstRow;
|
41
|
+
|
42
|
+
for (var w = 0, l = cellWidths.length; w < l; w++) {
|
43
|
+
var widths = cellWidths[w];
|
44
|
+
checkedRows.push(rowIndex);
|
45
|
+
this.$adjustRow(rowIndex, widths);
|
46
|
+
rowIndex++;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
this.$inChange = false;
|
50
|
+
};
|
51
|
+
|
52
|
+
this.$findCellWidthsForBlock = function(row) {
|
53
|
+
var cellWidths = [], widths;
|
54
|
+
var rowIter = row;
|
55
|
+
while (rowIter >= 0) {
|
56
|
+
widths = this.$cellWidthsForRow(rowIter);
|
57
|
+
if (widths.length == 0)
|
58
|
+
break;
|
59
|
+
|
60
|
+
cellWidths.unshift(widths);
|
61
|
+
rowIter--;
|
62
|
+
}
|
63
|
+
var firstRow = rowIter + 1;
|
64
|
+
rowIter = row;
|
65
|
+
var numRows = this.$editor.session.getLength();
|
66
|
+
|
67
|
+
while (rowIter < numRows - 1) {
|
68
|
+
rowIter++;
|
69
|
+
|
70
|
+
widths = this.$cellWidthsForRow(rowIter);
|
71
|
+
if (widths.length == 0)
|
72
|
+
break;
|
73
|
+
|
74
|
+
cellWidths.push(widths);
|
75
|
+
}
|
76
|
+
|
77
|
+
return { cellWidths: cellWidths, firstRow: firstRow };
|
78
|
+
};
|
79
|
+
|
80
|
+
this.$cellWidthsForRow = function(row) {
|
81
|
+
var selectionColumns = this.$selectionColumnsForRow(row);
|
82
|
+
var tabs = [-1].concat(this.$tabsForRow(row));
|
83
|
+
var widths = tabs.map(function(el) { return 0; } ).slice(1);
|
84
|
+
var line = this.$editor.session.getLine(row);
|
85
|
+
|
86
|
+
for (var i = 0, len = tabs.length - 1; i < len; i++) {
|
87
|
+
var leftEdge = tabs[i]+1;
|
88
|
+
var rightEdge = tabs[i+1];
|
89
|
+
|
90
|
+
var rightmostSelection = this.$rightmostSelectionInCell(selectionColumns, rightEdge);
|
91
|
+
var cell = line.substring(leftEdge, rightEdge);
|
92
|
+
widths[i] = Math.max(cell.replace(/\s+$/g,'').length, rightmostSelection - leftEdge);
|
93
|
+
}
|
94
|
+
|
95
|
+
return widths;
|
96
|
+
};
|
97
|
+
|
98
|
+
this.$selectionColumnsForRow = function(row) {
|
99
|
+
var selections = [], cursor = this.$editor.getCursorPosition();
|
100
|
+
if (this.$editor.session.getSelection().isEmpty()) {
|
101
|
+
if (row == cursor.row)
|
102
|
+
selections.push(cursor.column);
|
103
|
+
}
|
104
|
+
|
105
|
+
return selections;
|
106
|
+
};
|
107
|
+
|
108
|
+
this.$setBlockCellWidthsToMax = function(cellWidths) {
|
109
|
+
var startingNewBlock = true, blockStartRow, blockEndRow, maxWidth;
|
110
|
+
var columnInfo = this.$izip_longest(cellWidths);
|
111
|
+
|
112
|
+
for (var c = 0, l = columnInfo.length; c < l; c++) {
|
113
|
+
var column = columnInfo[c];
|
114
|
+
if (!column.push) {
|
115
|
+
console.error(column);
|
116
|
+
continue;
|
117
|
+
}
|
118
|
+
column.push(NaN);
|
119
|
+
|
120
|
+
for (var r = 0, s = column.length; r < s; r++) {
|
121
|
+
var width = column[r];
|
122
|
+
if (startingNewBlock) {
|
123
|
+
blockStartRow = r;
|
124
|
+
maxWidth = 0;
|
125
|
+
startingNewBlock = false;
|
126
|
+
}
|
127
|
+
if (isNaN(width)) {
|
128
|
+
blockEndRow = r;
|
129
|
+
|
130
|
+
for (var j = blockStartRow; j < blockEndRow; j++) {
|
131
|
+
cellWidths[j][c] = maxWidth;
|
132
|
+
}
|
133
|
+
startingNewBlock = true;
|
134
|
+
}
|
135
|
+
|
136
|
+
maxWidth = Math.max(maxWidth, width);
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
return cellWidths;
|
141
|
+
};
|
142
|
+
|
143
|
+
this.$rightmostSelectionInCell = function(selectionColumns, cellRightEdge) {
|
144
|
+
var rightmost = 0;
|
145
|
+
|
146
|
+
if (selectionColumns.length) {
|
147
|
+
var lengths = [];
|
148
|
+
for (var s = 0, length = selectionColumns.length; s < length; s++) {
|
149
|
+
if (selectionColumns[s] <= cellRightEdge)
|
150
|
+
lengths.push(s);
|
151
|
+
else
|
152
|
+
lengths.push(0);
|
153
|
+
}
|
154
|
+
rightmost = Math.max.apply(Math, lengths);
|
155
|
+
}
|
156
|
+
|
157
|
+
return rightmost;
|
158
|
+
};
|
159
|
+
|
160
|
+
this.$tabsForRow = function(row) {
|
161
|
+
var rowTabs = [], line = this.$editor.session.getLine(row),
|
162
|
+
re = /\t/g, match;
|
163
|
+
|
164
|
+
while ((match = re.exec(line)) != null) {
|
165
|
+
rowTabs.push(match.index);
|
166
|
+
}
|
167
|
+
|
168
|
+
return rowTabs;
|
169
|
+
};
|
170
|
+
|
171
|
+
this.$adjustRow = function(row, widths) {
|
172
|
+
var rowTabs = this.$tabsForRow(row);
|
173
|
+
|
174
|
+
if (rowTabs.length == 0)
|
175
|
+
return;
|
176
|
+
|
177
|
+
var bias = 0, location = -1;
|
178
|
+
var expandedSet = this.$izip(widths, rowTabs);
|
179
|
+
|
180
|
+
for (var i = 0, l = expandedSet.length; i < l; i++) {
|
181
|
+
var w = expandedSet[i][0], it = expandedSet[i][1];
|
182
|
+
location += 1 + w;
|
183
|
+
it += bias;
|
184
|
+
var difference = location - it;
|
185
|
+
|
186
|
+
if (difference == 0)
|
187
|
+
continue;
|
188
|
+
|
189
|
+
var partialLine = this.$editor.session.getLine(row).substr(0, it );
|
190
|
+
var strippedPartialLine = partialLine.replace(/\s*$/g, "");
|
191
|
+
var ispaces = partialLine.length - strippedPartialLine.length;
|
192
|
+
|
193
|
+
if (difference > 0) {
|
194
|
+
this.$editor.session.getDocument().insertInLine({row: row, column: it + 1}, Array(difference + 1).join(" ") + "\t");
|
195
|
+
this.$editor.session.getDocument().removeInLine(row, it, it + 1);
|
196
|
+
|
197
|
+
bias += difference;
|
198
|
+
}
|
199
|
+
|
200
|
+
if (difference < 0 && ispaces >= -difference) {
|
201
|
+
this.$editor.session.getDocument().removeInLine(row, it + difference, it);
|
202
|
+
bias += difference;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
};
|
206
|
+
this.$izip_longest = function(iterables) {
|
207
|
+
if (!iterables[0])
|
208
|
+
return [];
|
209
|
+
var longest = iterables[0].length;
|
210
|
+
var iterablesLength = iterables.length;
|
211
|
+
|
212
|
+
for (var i = 1; i < iterablesLength; i++) {
|
213
|
+
var iLength = iterables[i].length;
|
214
|
+
if (iLength > longest)
|
215
|
+
longest = iLength;
|
216
|
+
}
|
217
|
+
|
218
|
+
var expandedSet = [];
|
219
|
+
|
220
|
+
for (var l = 0; l < longest; l++) {
|
221
|
+
var set = [];
|
222
|
+
for (var i = 0; i < iterablesLength; i++) {
|
223
|
+
if (iterables[i][l] === "")
|
224
|
+
set.push(NaN);
|
225
|
+
else
|
226
|
+
set.push(iterables[i][l]);
|
227
|
+
}
|
228
|
+
|
229
|
+
expandedSet.push(set);
|
230
|
+
}
|
231
|
+
|
232
|
+
|
233
|
+
return expandedSet;
|
234
|
+
};
|
235
|
+
this.$izip = function(widths, tabs) {
|
236
|
+
var size = widths.length >= tabs.length ? tabs.length : widths.length;
|
237
|
+
|
238
|
+
var expandedSet = [];
|
239
|
+
for (var i = 0; i < size; i++) {
|
240
|
+
var set = [ widths[i], tabs[i] ];
|
241
|
+
expandedSet.push(set);
|
242
|
+
}
|
243
|
+
return expandedSet;
|
244
|
+
};
|
245
|
+
|
246
|
+
}).call(ElasticTabstopsLite.prototype);
|
247
|
+
|
248
|
+
exports.ElasticTabstopsLite = ElasticTabstopsLite;
|
249
|
+
|
250
|
+
var Editor = require("../editor").Editor;
|
251
|
+
require("../config").defineOptions(Editor.prototype, "editor", {
|
252
|
+
useElasticTabstops: {
|
253
|
+
set: function(val) {
|
254
|
+
if (val) {
|
255
|
+
if (!this.elasticTabstops)
|
256
|
+
this.elasticTabstops = new ElasticTabstopsLite(this);
|
257
|
+
this.commands.on("afterExec", this.elasticTabstops.onAfterExec);
|
258
|
+
this.commands.on("exec", this.elasticTabstops.onExec);
|
259
|
+
this.on("change", this.elasticTabstops.onChange);
|
260
|
+
} else if (this.elasticTabstops) {
|
261
|
+
this.commands.removeListener("afterExec", this.elasticTabstops.onAfterExec);
|
262
|
+
this.commands.removeListener("exec", this.elasticTabstops.onExec);
|
263
|
+
this.removeListener("change", this.elasticTabstops.onChange);
|
264
|
+
}
|
265
|
+
}
|
266
|
+
}
|
267
|
+
});
|
268
|
+
|
269
|
+
});
|
270
|
+
(function() {
|
271
|
+
window.require(["ace/ext/elastic_tabstops_lite"], function(m) {
|
272
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
273
|
+
module.exports = m;
|
274
|
+
}
|
275
|
+
});
|
276
|
+
})();
|
277
|
+
|