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,243 @@
|
|
1
|
+
define("ace/mode/latex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var oop = require("../lib/oop");
|
5
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
6
|
+
|
7
|
+
var LatexHighlightRules = function() {
|
8
|
+
|
9
|
+
this.$rules = {
|
10
|
+
"start" : [{
|
11
|
+
token : "comment",
|
12
|
+
regex : "%.*$"
|
13
|
+
}, {
|
14
|
+
token : ["keyword", "lparen", "variable.parameter", "rparen", "lparen", "storage.type", "rparen"],
|
15
|
+
regex : "(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"
|
16
|
+
}, {
|
17
|
+
token : ["keyword","lparen", "variable.parameter", "rparen"],
|
18
|
+
regex : "(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"
|
19
|
+
}, {
|
20
|
+
token : ["storage.type", "lparen", "variable.parameter", "rparen"],
|
21
|
+
regex : "(\\\\begin)({)(verbatim)(})",
|
22
|
+
next : "verbatim"
|
23
|
+
}, {
|
24
|
+
token : ["storage.type", "lparen", "variable.parameter", "rparen"],
|
25
|
+
regex : "(\\\\begin)({)(lstlisting)(})",
|
26
|
+
next : "lstlisting"
|
27
|
+
}, {
|
28
|
+
token : ["storage.type", "lparen", "variable.parameter", "rparen"],
|
29
|
+
regex : "(\\\\(?:begin|end))({)([\\w*]*)(})"
|
30
|
+
}, {
|
31
|
+
token : "storage.type",
|
32
|
+
regex : /\\verb\b\*?/,
|
33
|
+
next : [{
|
34
|
+
token : ["keyword.operator", "string", "keyword.operator"],
|
35
|
+
regex : "(.)(.*?)(\\1|$)|",
|
36
|
+
next : "start"
|
37
|
+
}]
|
38
|
+
}, {
|
39
|
+
token : "storage.type",
|
40
|
+
regex : "\\\\[a-zA-Z]+"
|
41
|
+
}, {
|
42
|
+
token : "lparen",
|
43
|
+
regex : "[[({]"
|
44
|
+
}, {
|
45
|
+
token : "rparen",
|
46
|
+
regex : "[\\])}]"
|
47
|
+
}, {
|
48
|
+
token : "constant.character.escape",
|
49
|
+
regex : "\\\\[^a-zA-Z]?"
|
50
|
+
}, {
|
51
|
+
token : "string",
|
52
|
+
regex : "\\${1,2}",
|
53
|
+
next : "equation"
|
54
|
+
}],
|
55
|
+
"equation" : [{
|
56
|
+
token : "comment",
|
57
|
+
regex : "%.*$"
|
58
|
+
}, {
|
59
|
+
token : "string",
|
60
|
+
regex : "\\${1,2}",
|
61
|
+
next : "start"
|
62
|
+
}, {
|
63
|
+
token : "constant.character.escape",
|
64
|
+
regex : "\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"
|
65
|
+
}, {
|
66
|
+
token : "error",
|
67
|
+
regex : "^\\s*$",
|
68
|
+
next : "start"
|
69
|
+
}, {
|
70
|
+
defaultToken : "string"
|
71
|
+
}],
|
72
|
+
"verbatim": [{
|
73
|
+
token : ["storage.type", "lparen", "variable.parameter", "rparen"],
|
74
|
+
regex : "(\\\\end)({)(verbatim)(})",
|
75
|
+
next : "start"
|
76
|
+
}, {
|
77
|
+
defaultToken : "text"
|
78
|
+
}],
|
79
|
+
"lstlisting": [{
|
80
|
+
token : ["storage.type", "lparen", "variable.parameter", "rparen"],
|
81
|
+
regex : "(\\\\end)({)(lstlisting)(})",
|
82
|
+
next : "start"
|
83
|
+
}, {
|
84
|
+
defaultToken : "text"
|
85
|
+
}]
|
86
|
+
};
|
87
|
+
|
88
|
+
this.normalizeRules();
|
89
|
+
};
|
90
|
+
oop.inherits(LatexHighlightRules, TextHighlightRules);
|
91
|
+
|
92
|
+
exports.LatexHighlightRules = LatexHighlightRules;
|
93
|
+
|
94
|
+
});
|
95
|
+
|
96
|
+
define("ace/mode/rdoc_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/latex_highlight_rules"], function(require, exports, module) {
|
97
|
+
"use strict";
|
98
|
+
|
99
|
+
var oop = require("../lib/oop");
|
100
|
+
var lang = require("../lib/lang");
|
101
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
102
|
+
var LaTeXHighlightRules = require("./latex_highlight_rules");
|
103
|
+
|
104
|
+
var RDocHighlightRules = function() {
|
105
|
+
this.$rules = {
|
106
|
+
"start" : [
|
107
|
+
{
|
108
|
+
token : "comment",
|
109
|
+
regex : "%.*$"
|
110
|
+
}, {
|
111
|
+
token : "text", // non-command
|
112
|
+
regex : "\\\\[$&%#\\{\\}]"
|
113
|
+
}, {
|
114
|
+
token : "keyword", // command
|
115
|
+
regex : "\\\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\\b",
|
116
|
+
next : "nospell"
|
117
|
+
}, {
|
118
|
+
token : "keyword", // command
|
119
|
+
regex : "\\\\(?:[a-zA-Z0-9]+|[^a-zA-Z0-9])"
|
120
|
+
}, {
|
121
|
+
token : "paren.keyword.operator",
|
122
|
+
regex : "[[({]"
|
123
|
+
}, {
|
124
|
+
token : "paren.keyword.operator",
|
125
|
+
regex : "[\\])}]"
|
126
|
+
}, {
|
127
|
+
token : "text",
|
128
|
+
regex : "\\s+"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"nospell" : [
|
132
|
+
{
|
133
|
+
token : "comment",
|
134
|
+
regex : "%.*$",
|
135
|
+
next : "start"
|
136
|
+
}, {
|
137
|
+
token : "nospell.text", // non-command
|
138
|
+
regex : "\\\\[$&%#\\{\\}]"
|
139
|
+
}, {
|
140
|
+
token : "keyword", // command
|
141
|
+
regex : "\\\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\\b"
|
142
|
+
}, {
|
143
|
+
token : "keyword", // command
|
144
|
+
regex : "\\\\(?:[a-zA-Z0-9]+|[^a-zA-Z0-9])",
|
145
|
+
next : "start"
|
146
|
+
}, {
|
147
|
+
token : "paren.keyword.operator",
|
148
|
+
regex : "[[({]"
|
149
|
+
}, {
|
150
|
+
token : "paren.keyword.operator",
|
151
|
+
regex : "[\\])]"
|
152
|
+
}, {
|
153
|
+
token : "paren.keyword.operator",
|
154
|
+
regex : "}",
|
155
|
+
next : "start"
|
156
|
+
}, {
|
157
|
+
token : "nospell.text",
|
158
|
+
regex : "\\s+"
|
159
|
+
}, {
|
160
|
+
token : "nospell.text",
|
161
|
+
regex : "\\w+"
|
162
|
+
}
|
163
|
+
]
|
164
|
+
};
|
165
|
+
};
|
166
|
+
|
167
|
+
oop.inherits(RDocHighlightRules, TextHighlightRules);
|
168
|
+
|
169
|
+
exports.RDocHighlightRules = RDocHighlightRules;
|
170
|
+
});
|
171
|
+
|
172
|
+
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
173
|
+
"use strict";
|
174
|
+
|
175
|
+
var Range = require("../range").Range;
|
176
|
+
|
177
|
+
var MatchingBraceOutdent = function() {};
|
178
|
+
|
179
|
+
(function() {
|
180
|
+
|
181
|
+
this.checkOutdent = function(line, input) {
|
182
|
+
if (! /^\s+$/.test(line))
|
183
|
+
return false;
|
184
|
+
|
185
|
+
return /^\s*\}/.test(input);
|
186
|
+
};
|
187
|
+
|
188
|
+
this.autoOutdent = function(doc, row) {
|
189
|
+
var line = doc.getLine(row);
|
190
|
+
var match = line.match(/^(\s*\})/);
|
191
|
+
|
192
|
+
if (!match) return 0;
|
193
|
+
|
194
|
+
var column = match[1].length;
|
195
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
196
|
+
|
197
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
198
|
+
|
199
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
200
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
201
|
+
};
|
202
|
+
|
203
|
+
this.$getIndent = function(line) {
|
204
|
+
return line.match(/^\s*/)[0];
|
205
|
+
};
|
206
|
+
|
207
|
+
}).call(MatchingBraceOutdent.prototype);
|
208
|
+
|
209
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
210
|
+
});
|
211
|
+
|
212
|
+
define("ace/mode/rdoc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/rdoc_highlight_rules","ace/mode/matching_brace_outdent"], function(require, exports, module) {
|
213
|
+
"use strict";
|
214
|
+
|
215
|
+
var oop = require("../lib/oop");
|
216
|
+
var TextMode = require("./text").Mode;
|
217
|
+
var RDocHighlightRules = require("./rdoc_highlight_rules").RDocHighlightRules;
|
218
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
219
|
+
|
220
|
+
var Mode = function(suppressHighlighting) {
|
221
|
+
this.HighlightRules = RDocHighlightRules;
|
222
|
+
this.$outdent = new MatchingBraceOutdent();
|
223
|
+
this.$behaviour = this.$defaultBehaviour;
|
224
|
+
};
|
225
|
+
oop.inherits(Mode, TextMode);
|
226
|
+
|
227
|
+
(function() {
|
228
|
+
this.getNextLineIndent = function(state, line, tab) {
|
229
|
+
return this.$getIndent(line);
|
230
|
+
};
|
231
|
+
this.$id = "ace/mode/rdoc";
|
232
|
+
}).call(Mode.prototype);
|
233
|
+
|
234
|
+
exports.Mode = Mode;
|
235
|
+
});
|
236
|
+
(function() {
|
237
|
+
window.require(["ace/mode/rdoc"], function(m) {
|
238
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
239
|
+
module.exports = m;
|
240
|
+
}
|
241
|
+
});
|
242
|
+
})();
|
243
|
+
|
@@ -0,0 +1,450 @@
|
|
1
|
+
define("ace/mode/red_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var oop = require("../lib/oop");
|
5
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
6
|
+
|
7
|
+
var RedHighlightRules = function() {
|
8
|
+
var compoundKeywords = "";
|
9
|
+
|
10
|
+
this.$rules = {
|
11
|
+
"start" : [
|
12
|
+
{token : "keyword.operator",
|
13
|
+
regex: /\s([\-+%/=<>*]|(?:\*\*\|\/\/|==|>>>?|<>|<<|=>|<=|=\?))(\s|(?=:))/},
|
14
|
+
{token : "string.email", regex : /\w[-\w._]*\@\w[-\w._]*/},
|
15
|
+
{token : "value.time", regex : /\b\d+:\d+(:\d+)?/},
|
16
|
+
{token : "string.url", regex : /\w[-\w_]*\:(\/\/)?\w[-\w._]*(:\d+)?/},
|
17
|
+
{token : "value.date", regex : /(\b\d{1,4}[-/]\d{1,2}[-/]\d{1,2}|\d{1,2}[-/]\d{1,2}[-/]\d{1,4})\b/},
|
18
|
+
{token : "value.tuple", regex : /\b\d{1,3}\.\d{1,3}\.\d{1,3}(\.\d{1,3}){0,9}/},
|
19
|
+
{token : "value.pair", regex: /[+-]?\d+x[-+]?\d+/},
|
20
|
+
{token : "value.binary", regex : /\b2#{([01]{8})+}/},
|
21
|
+
{token : "value.binary", regex : /\b64#{([\w/=+])+}/},
|
22
|
+
{token : "value.binary", regex : /(16)?#{([\dabcdefABCDEF][\dabcdefABCDEF])*}/},
|
23
|
+
{token : "value.issue", regex : /#\w[-\w'*.]*/},
|
24
|
+
{token : "value.numeric", regex: /[+-]?\d['\d]*(?:\.\d+)?e[-+]?\d{1,3}\%?(?!\w)/},
|
25
|
+
{token : "invalid.illegal", regex: /[+-]?\d['\d]*(?:\.\d+)?\%?[a-zA-Z]/},
|
26
|
+
{token : "value.numeric", regex: /[+-]?\d['\d]*(?:\.\d+)?\%?(?![a-zA-Z])/},
|
27
|
+
{token : "value.character", regex : /#"(\^[-@/_~^"HKLM\[]|.)"/},
|
28
|
+
{token : "string.file", regex : /%[-\w\.\/]+/},
|
29
|
+
{token : "string.tag", regex : /</, next : "tag"},
|
30
|
+
{token : "string", regex : /"/, next : "string"},
|
31
|
+
{token : "string.other", regex : "{", next : "string.other"},
|
32
|
+
{token : "comment", regex : "comment [{]", next : "comment"},
|
33
|
+
{token : "comment", regex : /;.+$/},
|
34
|
+
{token : "paren.map-start", regex : "#\\("},
|
35
|
+
{token : "paren.block-start", regex : "[\\[]"},
|
36
|
+
{token : "paren.block-end", regex : "[\\]]"},
|
37
|
+
{token : "paren.parens-start", regex : "[(]"},
|
38
|
+
{token : "paren.parens-end", regex : "\\)"},
|
39
|
+
{token : "keyword", regex : "/local|/external"},
|
40
|
+
{token : "keyword.preprocessor", regex : "#(if|either|" +
|
41
|
+
"switch|case|include|do|macrolocal|reset|process|trace)"},
|
42
|
+
{token : "constant.datatype!", regex :
|
43
|
+
"(?:datatype|unset|none|logic|block|paren|string|" +
|
44
|
+
"file|url|char|integer|float|word|set-word|lit-word|" +
|
45
|
+
"get-word|refinement|issue|native|action|op|function|" +
|
46
|
+
"path|lit-path|set-path|get-path|routine|bitset|point|" +
|
47
|
+
"object|typeset|error|vector|hash|pair|percent|tuple|" +
|
48
|
+
"map|binary|time|tag|email|handle|date|image|event|" +
|
49
|
+
"series|any-type|number|any-object|scalar|" +
|
50
|
+
"any-string|any-word|any-function|any-block|any-list|" +
|
51
|
+
"any-path|immediate|all-word|internal|external|default)!(?![-!?\\w~])"},
|
52
|
+
{token : "keyword.function", regex :
|
53
|
+
"\\b(?:collect|quote|on-parse-event|math|last|source|expand|" +
|
54
|
+
"show|context|object|input|quit|dir|make-dir|cause-error|" +
|
55
|
+
"error\\?|none\\?|block\\?|any-list\\?|word\\?|char\\?|" +
|
56
|
+
"any-string\\?|series\\?|binary\\?|attempt|url\\?|" +
|
57
|
+
"string\\?|suffix\\?|file\\?|object\\?|body-of|first|" +
|
58
|
+
"second|third|mod|clean-path|dir\\?|to-red-file|" +
|
59
|
+
"normalize-dir|list-dir|pad|empty\\?|dirize|offset\\?|" +
|
60
|
+
"what-dir|expand-directives|load|split-path|change-dir|" +
|
61
|
+
"to-file|path-thru|save|load-thru|View|float\\?|to-float|" +
|
62
|
+
"charset|\\?|probe|set-word\\?|q|words-of|replace|repend|" +
|
63
|
+
"react|function\\?|spec-of|unset\\?|halt|op\\?|" +
|
64
|
+
"any-function\\?|to-paren|tag\\?|routine|class-of|" +
|
65
|
+
"size-text|draw|handle\\?|link-tabs-to-parent|" +
|
66
|
+
"link-sub-to-parent|on-face-deep-change*|" +
|
67
|
+
"update-font-faces|do-actor|do-safe|do-events|pair\\?|" +
|
68
|
+
"foreach-face|hex-to-rgb|issue\\?|alter|path\\?|" +
|
69
|
+
"typeset\\?|datatype\\?|set-flag|layout|extract|image\\?|" +
|
70
|
+
"get-word\\?|to-logic|to-set-word|to-block|center-face|" +
|
71
|
+
"dump-face|request-font|request-file|request-dir|rejoin|" +
|
72
|
+
"ellipsize-at|any-block\\?|any-object\\?|map\\?|keys-of|" +
|
73
|
+
"a-an|also|parse-func-spec|help-string|what|routine\\?|" +
|
74
|
+
"action\\?|native\\?|refinement\\?|common-substr|" +
|
75
|
+
"red-complete-file|red-complete-path|unview|comment|\\?\\?|" +
|
76
|
+
"fourth|fifth|values-of|bitset\\?|email\\?|get-path\\?|" +
|
77
|
+
"hash\\?|integer\\?|lit-path\\?|lit-word\\?|logic\\?|" +
|
78
|
+
"paren\\?|percent\\?|set-path\\?|time\\?|tuple\\?|date\\?|" +
|
79
|
+
"vector\\?|any-path\\?|any-word\\?|number\\?|immediate\\?|" +
|
80
|
+
"scalar\\?|all-word\\?|to-bitset|to-binary|to-char|to-email|" +
|
81
|
+
"to-get-path|to-get-word|to-hash|to-integer|to-issue|" +
|
82
|
+
"to-lit-path|to-lit-word|to-map|to-none|to-pair|to-path|" +
|
83
|
+
"to-percent|to-refinement|to-set-path|to-string|to-tag|" +
|
84
|
+
"to-time|to-typeset|to-tuple|to-unset|to-url|to-word|" +
|
85
|
+
"to-image|to-date|parse-trace|modulo|eval-set-path|" +
|
86
|
+
"extract-boot-args|flip-exe-flag|split|do-file|" +
|
87
|
+
"exists-thru\\?|read-thru|do-thru|cos|sin|tan|acos|asin|" +
|
88
|
+
"atan|atan2|sqrt|clear-reactions|dump-reactions|react\\?|" +
|
89
|
+
"within\\?|overlap\\?|distance\\?|face\\?|metrics\\?|" +
|
90
|
+
"get-scroller|insert-event-func|remove-event-func|" +
|
91
|
+
"set-focus|help|fetch-help|about|ls|ll|pwd|cd|" +
|
92
|
+
"red-complete-input|matrix)(?![-!?\\w~])"},
|
93
|
+
{token : "keyword.action", regex :
|
94
|
+
"\\b(?:to|remove|copy|insert|change|clear|move|poke|put|" +
|
95
|
+
"random|reverse|sort|swap|take|trim|add|subtract|" +
|
96
|
+
"divide|multiply|make|reflect|form|mold|modify|" +
|
97
|
+
"absolute|negate|power|remainder|round|even\\?|odd\\?|" +
|
98
|
+
"and~|complement|or~|xor~|append|at|back|find|skip|" +
|
99
|
+
"tail|head|head\\?|index\\?|length\\?|next|pick|" +
|
100
|
+
"select|tail\\?|delete|read|write)(?![-_!?\\w~])"
|
101
|
+
},
|
102
|
+
{token : "keyword.native", regex :
|
103
|
+
"\\b(?:not|any|set|uppercase|lowercase|checksum|" +
|
104
|
+
"try|catch|browse|throw|all|as|" +
|
105
|
+
"remove-each|func|function|does|has|do|reduce|" +
|
106
|
+
"compose|get|print|prin|equal\\?|not-equal\\?|" +
|
107
|
+
"strict-equal\\?|lesser\\?|greater\\?|lesser-or-equal\\?|" +
|
108
|
+
"greater-or-equal\\?|same\\?|type\\?|stats|bind|in|parse|" +
|
109
|
+
"union|unique|intersect|difference|exclude|" +
|
110
|
+
"complement\\?|dehex|negative\\?|positive\\?|max|min|" +
|
111
|
+
"shift|to-hex|sine|cosine|tangent|arcsine|arccosine|" +
|
112
|
+
"arctangent|arctangent2|NaN\\?|zero\\?|log-2|log-10|log-e|" +
|
113
|
+
"exp|square-root|construct|value\\?|as-pair|" +
|
114
|
+
"extend|debase|enbase|to-local-file|" +
|
115
|
+
"wait|unset|new-line|new-line\\?|context\\?|set-env|" +
|
116
|
+
"get-env|list-env|now|sign\\?|call|size\\?)(?![-!?\\w~])"
|
117
|
+
},
|
118
|
+
{token : "keyword", regex :
|
119
|
+
"\\b(?:Red(?=\\s+\\[)|object|context|make|self|keep)(?![-!?\\w~])"
|
120
|
+
},
|
121
|
+
{token: "variable.language", regex : "this"},
|
122
|
+
{token: "keyword.control", regex :
|
123
|
+
"(?:while|if|return|case|unless|either|until|loop|repeat|" +
|
124
|
+
"forever|foreach|forall|switch|break|continue|exit)(?![-!?\\w~])"},
|
125
|
+
{token: "constant.language", regex :
|
126
|
+
"\\b(?:true|false|on|off|yes|none|no)(?![-!?\\w~])"},
|
127
|
+
{token: "constant.numeric", regex : /\bpi(?![^-_])/},
|
128
|
+
{token: "constant.character", regex : "\\b(space|tab|newline|cr|lf)(?![-!?\\w~])"},
|
129
|
+
{token: "keyword.operator", regex : "\s(or|and|xor|is)\s"},
|
130
|
+
{token : "variable.get-path", regex : /:\w[-\w'*.?!]*(\/\w[-\w'*.?!]*)(\/\w[-\w'*.?!]*)*/},
|
131
|
+
{token : "variable.set-path", regex : /\w[-\w'*.?!]*(\/\w[-\w'*.?!]*)(\/\w[-\w'*.?!]*)*:/},
|
132
|
+
{token : "variable.lit-path", regex : /'\w[-\w'*.?!]*(\/\w[-\w'*.?!]*)(\/\w[-\w'*.?!]*)*/},
|
133
|
+
{token : "variable.path", regex : /\w[-\w'*.?!]*(\/\w[-\w'*.?!]*)(\/\w[-\w'*.?!]*)*/},
|
134
|
+
{token : "variable.refinement", regex : /\/\w[-\w'*.?!]*/},
|
135
|
+
{token : "keyword.view.style", regex :
|
136
|
+
"\\b(?:window|base|button|text|field|area|check|" +
|
137
|
+
"radio|progress|slider|camera|text-list|" +
|
138
|
+
"drop-list|drop-down|panel|group-box|" +
|
139
|
+
"tab-panel|h1|h2|h3|h4|h5|box|image|init)(?![-!?\\w~])"},
|
140
|
+
{token : "keyword.view.event", regex :
|
141
|
+
"\\b(?:detect|on-detect|time|on-time|drawing|on-drawing|" +
|
142
|
+
"scroll|on-scroll|down|on-down|up|on-up|mid-down|" +
|
143
|
+
"on-mid-down|mid-up|on-mid-up|alt-down|on-alt-down|" +
|
144
|
+
"alt-up|on-alt-up|aux-down|on-aux-down|aux-up|" +
|
145
|
+
"on-aux-up|wheel|on-wheel|drag-start|on-drag-start|" +
|
146
|
+
"drag|on-drag|drop|on-drop|click|on-click|dbl-click|" +
|
147
|
+
"on-dbl-click|over|on-over|key|on-key|key-down|" +
|
148
|
+
"on-key-down|key-up|on-key-up|ime|on-ime|focus|" +
|
149
|
+
"on-focus|unfocus|on-unfocus|select|on-select|" +
|
150
|
+
"change|on-change|enter|on-enter|menu|on-menu|close|" +
|
151
|
+
"on-close|move|on-move|resize|on-resize|moving|" +
|
152
|
+
"on-moving|resizing|on-resizing|zoom|on-zoom|pan|" +
|
153
|
+
"on-pan|rotate|on-rotate|two-tap|on-two-tap|" +
|
154
|
+
"press-tap|on-press-tap|create|on-create|created|on-created)(?![-!?\\w~])"},
|
155
|
+
{token : "keyword.view.option", regex :
|
156
|
+
"\\b(?:all-over|center|color|default|disabled|down|" +
|
157
|
+
"flags|focus|font|font-color|font-name|" +
|
158
|
+
"font-size|hidden|hint|left|loose|name|" +
|
159
|
+
"no-border|now|rate|react|select|size|space)(?![-!?\\w~])"},
|
160
|
+
{token : "constant.other.colour", regex : "\\b(?:Red|white|transparent|" +
|
161
|
+
"black|gray|aqua|beige|blue|brick|brown|coal|coffee|" +
|
162
|
+
"crimson|cyan|forest|gold|green|ivory|khaki|leaf|linen|" +
|
163
|
+
"magenta|maroon|mint|navy|oldrab|olive|orange|papaya|" +
|
164
|
+
"pewter|pink|purple|reblue|rebolor|sienna|silver|sky|" +
|
165
|
+
"snow|tanned|teal|violet|water|wheat|yello|yellow|glass)(?![-!?\\w~])"},
|
166
|
+
{token : "variable.get-word", regex : /\:\w[-\w'*.?!]*/},
|
167
|
+
{token : "variable.set-word", regex : /\w[-\w'*.?!]*\:/},
|
168
|
+
{token : "variable.lit-word", regex : /'\w[-\w'*.?!]*/},
|
169
|
+
{token : "variable.word", regex : /\b\w+[-\w'*.!?]*/},
|
170
|
+
{caseInsensitive: true}
|
171
|
+
],
|
172
|
+
"string" : [
|
173
|
+
{token : "string", regex : /"/, next : "start"},
|
174
|
+
{defaultToken : "string"}
|
175
|
+
],
|
176
|
+
"string.other" : [
|
177
|
+
{token : "string.other", regex : /}/, next : "start"},
|
178
|
+
{defaultToken : "string.other"}
|
179
|
+
],
|
180
|
+
"tag" : [
|
181
|
+
{token : "string.tag", regex : />/, next : "start"},
|
182
|
+
{defaultToken : "string.tag"}
|
183
|
+
],
|
184
|
+
"comment" : [
|
185
|
+
{token : "comment", regex : /}/, next : "start"},
|
186
|
+
{defaultToken : "comment"}
|
187
|
+
]
|
188
|
+
};
|
189
|
+
};
|
190
|
+
oop.inherits(RedHighlightRules, TextHighlightRules);
|
191
|
+
|
192
|
+
exports.RedHighlightRules = RedHighlightRules;
|
193
|
+
});
|
194
|
+
|
195
|
+
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
196
|
+
"use strict";
|
197
|
+
|
198
|
+
var oop = require("../../lib/oop");
|
199
|
+
var Range = require("../../range").Range;
|
200
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
201
|
+
|
202
|
+
var FoldMode = exports.FoldMode = function(commentRegex) {
|
203
|
+
if (commentRegex) {
|
204
|
+
this.foldingStartMarker = new RegExp(
|
205
|
+
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
206
|
+
);
|
207
|
+
this.foldingStopMarker = new RegExp(
|
208
|
+
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
209
|
+
);
|
210
|
+
}
|
211
|
+
};
|
212
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
213
|
+
|
214
|
+
(function() {
|
215
|
+
|
216
|
+
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
217
|
+
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
218
|
+
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
219
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
220
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
221
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
222
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
223
|
+
var line = session.getLine(row);
|
224
|
+
|
225
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
226
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
227
|
+
return "";
|
228
|
+
}
|
229
|
+
|
230
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
231
|
+
|
232
|
+
if (!fw && this.startRegionRe.test(line))
|
233
|
+
return "start"; // lineCommentRegionStart
|
234
|
+
|
235
|
+
return fw;
|
236
|
+
};
|
237
|
+
|
238
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
239
|
+
var line = session.getLine(row);
|
240
|
+
|
241
|
+
if (this.startRegionRe.test(line))
|
242
|
+
return this.getCommentRegionBlock(session, line, row);
|
243
|
+
|
244
|
+
var match = line.match(this.foldingStartMarker);
|
245
|
+
if (match) {
|
246
|
+
var i = match.index;
|
247
|
+
|
248
|
+
if (match[1])
|
249
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
250
|
+
|
251
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
252
|
+
|
253
|
+
if (range && !range.isMultiLine()) {
|
254
|
+
if (forceMultiline) {
|
255
|
+
range = this.getSectionRange(session, row);
|
256
|
+
} else if (foldStyle != "all")
|
257
|
+
range = null;
|
258
|
+
}
|
259
|
+
|
260
|
+
return range;
|
261
|
+
}
|
262
|
+
|
263
|
+
if (foldStyle === "markbegin")
|
264
|
+
return;
|
265
|
+
|
266
|
+
var match = line.match(this.foldingStopMarker);
|
267
|
+
if (match) {
|
268
|
+
var i = match.index + match[0].length;
|
269
|
+
|
270
|
+
if (match[1])
|
271
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
272
|
+
|
273
|
+
return session.getCommentFoldRange(row, i, -1);
|
274
|
+
}
|
275
|
+
};
|
276
|
+
|
277
|
+
this.getSectionRange = function(session, row) {
|
278
|
+
var line = session.getLine(row);
|
279
|
+
var startIndent = line.search(/\S/);
|
280
|
+
var startRow = row;
|
281
|
+
var startColumn = line.length;
|
282
|
+
row = row + 1;
|
283
|
+
var endRow = row;
|
284
|
+
var maxRow = session.getLength();
|
285
|
+
while (++row < maxRow) {
|
286
|
+
line = session.getLine(row);
|
287
|
+
var indent = line.search(/\S/);
|
288
|
+
if (indent === -1)
|
289
|
+
continue;
|
290
|
+
if (startIndent > indent)
|
291
|
+
break;
|
292
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
293
|
+
|
294
|
+
if (subRange) {
|
295
|
+
if (subRange.start.row <= startRow) {
|
296
|
+
break;
|
297
|
+
} else if (subRange.isMultiLine()) {
|
298
|
+
row = subRange.end.row;
|
299
|
+
} else if (startIndent == indent) {
|
300
|
+
break;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
endRow = row;
|
304
|
+
}
|
305
|
+
|
306
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
307
|
+
};
|
308
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
309
|
+
var startColumn = line.search(/\s*$/);
|
310
|
+
var maxRow = session.getLength();
|
311
|
+
var startRow = row;
|
312
|
+
|
313
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
314
|
+
var depth = 1;
|
315
|
+
while (++row < maxRow) {
|
316
|
+
line = session.getLine(row);
|
317
|
+
var m = re.exec(line);
|
318
|
+
if (!m) continue;
|
319
|
+
if (m[1]) depth--;
|
320
|
+
else depth++;
|
321
|
+
|
322
|
+
if (!depth) break;
|
323
|
+
}
|
324
|
+
|
325
|
+
var endRow = row;
|
326
|
+
if (endRow > startRow) {
|
327
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
328
|
+
}
|
329
|
+
};
|
330
|
+
|
331
|
+
}).call(FoldMode.prototype);
|
332
|
+
|
333
|
+
});
|
334
|
+
|
335
|
+
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
336
|
+
"use strict";
|
337
|
+
|
338
|
+
var Range = require("../range").Range;
|
339
|
+
|
340
|
+
var MatchingBraceOutdent = function() {};
|
341
|
+
|
342
|
+
(function() {
|
343
|
+
|
344
|
+
this.checkOutdent = function(line, input) {
|
345
|
+
if (! /^\s+$/.test(line))
|
346
|
+
return false;
|
347
|
+
|
348
|
+
return /^\s*\}/.test(input);
|
349
|
+
};
|
350
|
+
|
351
|
+
this.autoOutdent = function(doc, row) {
|
352
|
+
var line = doc.getLine(row);
|
353
|
+
var match = line.match(/^(\s*\})/);
|
354
|
+
|
355
|
+
if (!match) return 0;
|
356
|
+
|
357
|
+
var column = match[1].length;
|
358
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
359
|
+
|
360
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
361
|
+
|
362
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
363
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
364
|
+
};
|
365
|
+
|
366
|
+
this.$getIndent = function(line) {
|
367
|
+
return line.match(/^\s*/)[0];
|
368
|
+
};
|
369
|
+
|
370
|
+
}).call(MatchingBraceOutdent.prototype);
|
371
|
+
|
372
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
373
|
+
});
|
374
|
+
|
375
|
+
define("ace/mode/red",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/red_highlight_rules","ace/mode/folding/cstyle","ace/mode/matching_brace_outdent","ace/range"], function(require, exports, module) {
|
376
|
+
"use strict";
|
377
|
+
|
378
|
+
var oop = require("../lib/oop");
|
379
|
+
var TextMode = require("./text").Mode;
|
380
|
+
var RedHighlightRules = require("./red_highlight_rules").RedHighlightRules;
|
381
|
+
var RedFoldMode = require("./folding/cstyle").FoldMode;
|
382
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
383
|
+
var Range = require("../range").Range;
|
384
|
+
|
385
|
+
var Mode = function() {
|
386
|
+
this.HighlightRules = RedHighlightRules;
|
387
|
+
this.foldingRules = new RedFoldMode();
|
388
|
+
this.$outdent = new MatchingBraceOutdent();
|
389
|
+
this.$behaviour = this.$defaultBehaviour;
|
390
|
+
};
|
391
|
+
oop.inherits(Mode, TextMode);
|
392
|
+
|
393
|
+
(function() {
|
394
|
+
|
395
|
+
this.lineCommentStart = ";";
|
396
|
+
this.blockComment = { start: "comment {", end: "}" };
|
397
|
+
|
398
|
+
this.getNextLineIndent = function(state, line, tab) {
|
399
|
+
var indent = this.$getIndent(line);
|
400
|
+
|
401
|
+
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
|
402
|
+
var tokens = tokenizedLine.tokens;
|
403
|
+
var endState = tokenizedLine.state;
|
404
|
+
|
405
|
+
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
406
|
+
return indent;
|
407
|
+
}
|
408
|
+
|
409
|
+
if (state == "start") {
|
410
|
+
var match = line.match(/^.*[\{\[\(]\s*$/);
|
411
|
+
if (match) {
|
412
|
+
indent += tab;
|
413
|
+
}
|
414
|
+
} else if (state == "doc-start") {
|
415
|
+
if (endState == "start") {
|
416
|
+
return "";
|
417
|
+
}
|
418
|
+
var match = line.match(/^\s*(\/?)\*/);
|
419
|
+
if (match) {
|
420
|
+
if (match[1]) {
|
421
|
+
indent += " ";
|
422
|
+
}
|
423
|
+
indent += "* ";
|
424
|
+
}
|
425
|
+
}
|
426
|
+
|
427
|
+
return indent;
|
428
|
+
};
|
429
|
+
|
430
|
+
this.checkOutdent = function(state, line, input) {
|
431
|
+
return this.$outdent.checkOutdent(line, input);
|
432
|
+
};
|
433
|
+
|
434
|
+
this.autoOutdent = function(state, doc, row) {
|
435
|
+
this.$outdent.autoOutdent(doc, row);
|
436
|
+
};
|
437
|
+
|
438
|
+
this.$id = "ace/mode/red";
|
439
|
+
}).call(Mode.prototype);
|
440
|
+
|
441
|
+
exports.Mode = Mode;
|
442
|
+
});
|
443
|
+
(function() {
|
444
|
+
window.require(["ace/mode/red"], function(m) {
|
445
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
446
|
+
module.exports = m;
|
447
|
+
}
|
448
|
+
});
|
449
|
+
})();
|
450
|
+
|