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,418 @@
|
|
1
|
+
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var Range = require("../range").Range;
|
5
|
+
|
6
|
+
var MatchingBraceOutdent = function() {};
|
7
|
+
|
8
|
+
(function() {
|
9
|
+
|
10
|
+
this.checkOutdent = function(line, input) {
|
11
|
+
if (! /^\s+$/.test(line))
|
12
|
+
return false;
|
13
|
+
|
14
|
+
return /^\s*\}/.test(input);
|
15
|
+
};
|
16
|
+
|
17
|
+
this.autoOutdent = function(doc, row) {
|
18
|
+
var line = doc.getLine(row);
|
19
|
+
var match = line.match(/^(\s*\})/);
|
20
|
+
|
21
|
+
if (!match) return 0;
|
22
|
+
|
23
|
+
var column = match[1].length;
|
24
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
25
|
+
|
26
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
27
|
+
|
28
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
29
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
30
|
+
};
|
31
|
+
|
32
|
+
this.$getIndent = function(line) {
|
33
|
+
return line.match(/^\s*/)[0];
|
34
|
+
};
|
35
|
+
|
36
|
+
}).call(MatchingBraceOutdent.prototype);
|
37
|
+
|
38
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
39
|
+
});
|
40
|
+
|
41
|
+
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
42
|
+
"use strict";
|
43
|
+
|
44
|
+
var oop = require("../lib/oop");
|
45
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
46
|
+
|
47
|
+
var DocCommentHighlightRules = function() {
|
48
|
+
this.$rules = {
|
49
|
+
"start" : [ {
|
50
|
+
token : "comment.doc.tag",
|
51
|
+
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
52
|
+
},
|
53
|
+
DocCommentHighlightRules.getTagRule(),
|
54
|
+
{
|
55
|
+
defaultToken : "comment.doc",
|
56
|
+
caseInsensitive: true
|
57
|
+
}]
|
58
|
+
};
|
59
|
+
};
|
60
|
+
|
61
|
+
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
62
|
+
|
63
|
+
DocCommentHighlightRules.getTagRule = function(start) {
|
64
|
+
return {
|
65
|
+
token : "comment.doc.tag.storage.type",
|
66
|
+
regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
67
|
+
};
|
68
|
+
};
|
69
|
+
|
70
|
+
DocCommentHighlightRules.getStartRule = function(start) {
|
71
|
+
return {
|
72
|
+
token : "comment.doc", // doc comment
|
73
|
+
regex : "\\/\\*(?=\\*)",
|
74
|
+
next : start
|
75
|
+
};
|
76
|
+
};
|
77
|
+
|
78
|
+
DocCommentHighlightRules.getEndRule = function (start) {
|
79
|
+
return {
|
80
|
+
token : "comment.doc", // closing comment
|
81
|
+
regex : "\\*\\/",
|
82
|
+
next : start
|
83
|
+
};
|
84
|
+
};
|
85
|
+
|
86
|
+
|
87
|
+
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
88
|
+
|
89
|
+
});
|
90
|
+
|
91
|
+
define("ace/mode/dot_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/doc_comment_highlight_rules"], function(require, exports, module) {
|
92
|
+
"use strict";
|
93
|
+
|
94
|
+
var oop = require("../lib/oop");
|
95
|
+
var lang = require("../lib/lang");
|
96
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
97
|
+
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
98
|
+
|
99
|
+
var DotHighlightRules = function() {
|
100
|
+
|
101
|
+
var keywords = lang.arrayToMap(
|
102
|
+
("strict|node|edge|graph|digraph|subgraph").split("|")
|
103
|
+
);
|
104
|
+
|
105
|
+
var attributes = lang.arrayToMap(
|
106
|
+
("damping|k|url|area|arrowhead|arrowsize|arrowtail|aspect|bb|bgcolor|center|charset|clusterrank|color|colorscheme|comment|compound|concentrate|constraint|decorate|defaultdist|dim|dimen|dir|diredgeconstraints|distortion|dpi|edgeurl|edgehref|edgetarget|edgetooltip|epsilon|esep|fillcolor|fixedsize|fontcolor|fontname|fontnames|fontpath|fontsize|forcelabels|gradientangle|group|headurl|head_lp|headclip|headhref|headlabel|headport|headtarget|headtooltip|height|href|id|image|imagepath|imagescale|label|labelurl|label_scheme|labelangle|labeldistance|labelfloat|labelfontcolor|labelfontname|labelfontsize|labelhref|labeljust|labelloc|labeltarget|labeltooltip|landscape|layer|layerlistsep|layers|layerselect|layersep|layout|len|levels|levelsgap|lhead|lheight|lp|ltail|lwidth|margin|maxiter|mclimit|mindist|minlen|mode|model|mosek|nodesep|nojustify|normalize|nslimit|nslimit1|ordering|orientation|outputorder|overlap|overlap_scaling|pack|packmode|pad|page|pagedir|pencolor|penwidth|peripheries|pin|pos|quadtree|quantum|rank|rankdir|ranksep|ratio|rects|regular|remincross|repulsiveforce|resolution|root|rotate|rotation|samehead|sametail|samplepoints|scale|searchsize|sep|shape|shapefile|showboxes|sides|size|skew|smoothing|sortv|splines|start|style|stylesheet|tailurl|tail_lp|tailclip|tailhref|taillabel|tailport|tailtarget|tailtooltip|target|tooltip|truecolor|vertices|viewport|voro_margin|weight|width|xlabel|xlp|z").split("|")
|
107
|
+
);
|
108
|
+
|
109
|
+
this.$rules = {
|
110
|
+
"start" : [
|
111
|
+
{
|
112
|
+
token : "comment",
|
113
|
+
regex : /\/\/.*$/
|
114
|
+
}, {
|
115
|
+
token : "comment",
|
116
|
+
regex : /#.*$/
|
117
|
+
}, {
|
118
|
+
token : "comment", // multi line comment
|
119
|
+
merge : true,
|
120
|
+
regex : /\/\*/,
|
121
|
+
next : "comment"
|
122
|
+
}, {
|
123
|
+
token : "string",
|
124
|
+
regex : "'(?=.)",
|
125
|
+
next : "qstring"
|
126
|
+
}, {
|
127
|
+
token : "string",
|
128
|
+
regex : '"(?=.)',
|
129
|
+
next : "qqstring"
|
130
|
+
}, {
|
131
|
+
token : "constant.numeric",
|
132
|
+
regex : /[+\-]?\d+(?:(?:\.\d*)?(?:[eE][+\-]?\d+)?)?\b/
|
133
|
+
}, {
|
134
|
+
token : "keyword.operator",
|
135
|
+
regex : /\+|=|\->/
|
136
|
+
}, {
|
137
|
+
token : "punctuation.operator",
|
138
|
+
regex : /,|;/
|
139
|
+
}, {
|
140
|
+
token : "paren.lparen",
|
141
|
+
regex : /[\[{]/
|
142
|
+
}, {
|
143
|
+
token : "paren.rparen",
|
144
|
+
regex : /[\]}]/
|
145
|
+
}, {
|
146
|
+
token: "comment",
|
147
|
+
regex: /^#!.*$/
|
148
|
+
}, {
|
149
|
+
token: function(value) {
|
150
|
+
if (keywords.hasOwnProperty(value.toLowerCase())) {
|
151
|
+
return "keyword";
|
152
|
+
}
|
153
|
+
else if (attributes.hasOwnProperty(value.toLowerCase())) {
|
154
|
+
return "variable";
|
155
|
+
}
|
156
|
+
else {
|
157
|
+
return "text";
|
158
|
+
}
|
159
|
+
},
|
160
|
+
regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"comment" : [
|
164
|
+
{
|
165
|
+
token : "comment", // closing comment
|
166
|
+
regex : "\\*\\/",
|
167
|
+
next : "start"
|
168
|
+
}, {
|
169
|
+
defaultToken : "comment"
|
170
|
+
}
|
171
|
+
],
|
172
|
+
"qqstring" : [
|
173
|
+
{
|
174
|
+
token : "string",
|
175
|
+
regex : '[^"\\\\]+',
|
176
|
+
merge : true
|
177
|
+
}, {
|
178
|
+
token : "string",
|
179
|
+
regex : "\\\\$",
|
180
|
+
next : "qqstring",
|
181
|
+
merge : true
|
182
|
+
}, {
|
183
|
+
token : "string",
|
184
|
+
regex : '"|$',
|
185
|
+
next : "start",
|
186
|
+
merge : true
|
187
|
+
}
|
188
|
+
],
|
189
|
+
"qstring" : [
|
190
|
+
{
|
191
|
+
token : "string",
|
192
|
+
regex : "[^'\\\\]+",
|
193
|
+
merge : true
|
194
|
+
}, {
|
195
|
+
token : "string",
|
196
|
+
regex : "\\\\$",
|
197
|
+
next : "qstring",
|
198
|
+
merge : true
|
199
|
+
}, {
|
200
|
+
token : "string",
|
201
|
+
regex : "'|$",
|
202
|
+
next : "start",
|
203
|
+
merge : true
|
204
|
+
}
|
205
|
+
]
|
206
|
+
};
|
207
|
+
};
|
208
|
+
|
209
|
+
oop.inherits(DotHighlightRules, TextHighlightRules);
|
210
|
+
|
211
|
+
exports.DotHighlightRules = DotHighlightRules;
|
212
|
+
|
213
|
+
});
|
214
|
+
|
215
|
+
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
216
|
+
"use strict";
|
217
|
+
|
218
|
+
var oop = require("../../lib/oop");
|
219
|
+
var Range = require("../../range").Range;
|
220
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
221
|
+
|
222
|
+
var FoldMode = exports.FoldMode = function(commentRegex) {
|
223
|
+
if (commentRegex) {
|
224
|
+
this.foldingStartMarker = new RegExp(
|
225
|
+
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
226
|
+
);
|
227
|
+
this.foldingStopMarker = new RegExp(
|
228
|
+
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
229
|
+
);
|
230
|
+
}
|
231
|
+
};
|
232
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
233
|
+
|
234
|
+
(function() {
|
235
|
+
|
236
|
+
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
237
|
+
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
238
|
+
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
239
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
240
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
241
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
242
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
243
|
+
var line = session.getLine(row);
|
244
|
+
|
245
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
246
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
247
|
+
return "";
|
248
|
+
}
|
249
|
+
|
250
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
251
|
+
|
252
|
+
if (!fw && this.startRegionRe.test(line))
|
253
|
+
return "start"; // lineCommentRegionStart
|
254
|
+
|
255
|
+
return fw;
|
256
|
+
};
|
257
|
+
|
258
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
259
|
+
var line = session.getLine(row);
|
260
|
+
|
261
|
+
if (this.startRegionRe.test(line))
|
262
|
+
return this.getCommentRegionBlock(session, line, row);
|
263
|
+
|
264
|
+
var match = line.match(this.foldingStartMarker);
|
265
|
+
if (match) {
|
266
|
+
var i = match.index;
|
267
|
+
|
268
|
+
if (match[1])
|
269
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
270
|
+
|
271
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
272
|
+
|
273
|
+
if (range && !range.isMultiLine()) {
|
274
|
+
if (forceMultiline) {
|
275
|
+
range = this.getSectionRange(session, row);
|
276
|
+
} else if (foldStyle != "all")
|
277
|
+
range = null;
|
278
|
+
}
|
279
|
+
|
280
|
+
return range;
|
281
|
+
}
|
282
|
+
|
283
|
+
if (foldStyle === "markbegin")
|
284
|
+
return;
|
285
|
+
|
286
|
+
var match = line.match(this.foldingStopMarker);
|
287
|
+
if (match) {
|
288
|
+
var i = match.index + match[0].length;
|
289
|
+
|
290
|
+
if (match[1])
|
291
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
292
|
+
|
293
|
+
return session.getCommentFoldRange(row, i, -1);
|
294
|
+
}
|
295
|
+
};
|
296
|
+
|
297
|
+
this.getSectionRange = function(session, row) {
|
298
|
+
var line = session.getLine(row);
|
299
|
+
var startIndent = line.search(/\S/);
|
300
|
+
var startRow = row;
|
301
|
+
var startColumn = line.length;
|
302
|
+
row = row + 1;
|
303
|
+
var endRow = row;
|
304
|
+
var maxRow = session.getLength();
|
305
|
+
while (++row < maxRow) {
|
306
|
+
line = session.getLine(row);
|
307
|
+
var indent = line.search(/\S/);
|
308
|
+
if (indent === -1)
|
309
|
+
continue;
|
310
|
+
if (startIndent > indent)
|
311
|
+
break;
|
312
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
313
|
+
|
314
|
+
if (subRange) {
|
315
|
+
if (subRange.start.row <= startRow) {
|
316
|
+
break;
|
317
|
+
} else if (subRange.isMultiLine()) {
|
318
|
+
row = subRange.end.row;
|
319
|
+
} else if (startIndent == indent) {
|
320
|
+
break;
|
321
|
+
}
|
322
|
+
}
|
323
|
+
endRow = row;
|
324
|
+
}
|
325
|
+
|
326
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
327
|
+
};
|
328
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
329
|
+
var startColumn = line.search(/\s*$/);
|
330
|
+
var maxRow = session.getLength();
|
331
|
+
var startRow = row;
|
332
|
+
|
333
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
334
|
+
var depth = 1;
|
335
|
+
while (++row < maxRow) {
|
336
|
+
line = session.getLine(row);
|
337
|
+
var m = re.exec(line);
|
338
|
+
if (!m) continue;
|
339
|
+
if (m[1]) depth--;
|
340
|
+
else depth++;
|
341
|
+
|
342
|
+
if (!depth) break;
|
343
|
+
}
|
344
|
+
|
345
|
+
var endRow = row;
|
346
|
+
if (endRow > startRow) {
|
347
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
348
|
+
}
|
349
|
+
};
|
350
|
+
|
351
|
+
}).call(FoldMode.prototype);
|
352
|
+
|
353
|
+
});
|
354
|
+
|
355
|
+
define("ace/mode/dot",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/matching_brace_outdent","ace/mode/dot_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
|
356
|
+
"use strict";
|
357
|
+
|
358
|
+
var oop = require("../lib/oop");
|
359
|
+
var TextMode = require("./text").Mode;
|
360
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
361
|
+
var DotHighlightRules = require("./dot_highlight_rules").DotHighlightRules;
|
362
|
+
var DotFoldMode = require("./folding/cstyle").FoldMode;
|
363
|
+
|
364
|
+
var Mode = function() {
|
365
|
+
this.HighlightRules = DotHighlightRules;
|
366
|
+
this.$outdent = new MatchingBraceOutdent();
|
367
|
+
this.foldingRules = new DotFoldMode();
|
368
|
+
this.$behaviour = this.$defaultBehaviour;
|
369
|
+
};
|
370
|
+
oop.inherits(Mode, TextMode);
|
371
|
+
|
372
|
+
(function() {
|
373
|
+
|
374
|
+
this.lineCommentStart = ["//", "#"];
|
375
|
+
this.blockComment = {start: "/*", end: "*/"};
|
376
|
+
|
377
|
+
this.getNextLineIndent = function(state, line, tab) {
|
378
|
+
var indent = this.$getIndent(line);
|
379
|
+
|
380
|
+
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
|
381
|
+
var tokens = tokenizedLine.tokens;
|
382
|
+
var endState = tokenizedLine.state;
|
383
|
+
|
384
|
+
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
385
|
+
return indent;
|
386
|
+
}
|
387
|
+
|
388
|
+
if (state == "start") {
|
389
|
+
var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
|
390
|
+
if (match) {
|
391
|
+
indent += tab;
|
392
|
+
}
|
393
|
+
}
|
394
|
+
|
395
|
+
return indent;
|
396
|
+
};
|
397
|
+
|
398
|
+
this.checkOutdent = function(state, line, input) {
|
399
|
+
return this.$outdent.checkOutdent(line, input);
|
400
|
+
};
|
401
|
+
|
402
|
+
this.autoOutdent = function(state, doc, row) {
|
403
|
+
this.$outdent.autoOutdent(doc, row);
|
404
|
+
};
|
405
|
+
|
406
|
+
this.$id = "ace/mode/dot";
|
407
|
+
}).call(Mode.prototype);
|
408
|
+
|
409
|
+
exports.Mode = Mode;
|
410
|
+
});
|
411
|
+
(function() {
|
412
|
+
window.require(["ace/mode/dot"], function(m) {
|
413
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
414
|
+
module.exports = m;
|
415
|
+
}
|
416
|
+
});
|
417
|
+
})();
|
418
|
+
|
@@ -0,0 +1,496 @@
|
|
1
|
+
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var oop = require("../lib/oop");
|
5
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
6
|
+
|
7
|
+
var DocCommentHighlightRules = function() {
|
8
|
+
this.$rules = {
|
9
|
+
"start" : [ {
|
10
|
+
token : "comment.doc.tag",
|
11
|
+
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
12
|
+
},
|
13
|
+
DocCommentHighlightRules.getTagRule(),
|
14
|
+
{
|
15
|
+
defaultToken : "comment.doc",
|
16
|
+
caseInsensitive: true
|
17
|
+
}]
|
18
|
+
};
|
19
|
+
};
|
20
|
+
|
21
|
+
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
22
|
+
|
23
|
+
DocCommentHighlightRules.getTagRule = function(start) {
|
24
|
+
return {
|
25
|
+
token : "comment.doc.tag.storage.type",
|
26
|
+
regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
27
|
+
};
|
28
|
+
};
|
29
|
+
|
30
|
+
DocCommentHighlightRules.getStartRule = function(start) {
|
31
|
+
return {
|
32
|
+
token : "comment.doc", // doc comment
|
33
|
+
regex : "\\/\\*(?=\\*)",
|
34
|
+
next : start
|
35
|
+
};
|
36
|
+
};
|
37
|
+
|
38
|
+
DocCommentHighlightRules.getEndRule = function (start) {
|
39
|
+
return {
|
40
|
+
token : "comment.doc", // closing comment
|
41
|
+
regex : "\\*\\/",
|
42
|
+
next : start
|
43
|
+
};
|
44
|
+
};
|
45
|
+
|
46
|
+
|
47
|
+
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
48
|
+
|
49
|
+
});
|
50
|
+
|
51
|
+
define("ace/mode/java_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
52
|
+
"use strict";
|
53
|
+
|
54
|
+
var oop = require("../lib/oop");
|
55
|
+
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
56
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
57
|
+
|
58
|
+
var JavaHighlightRules = function() {
|
59
|
+
var keywords = (
|
60
|
+
"abstract|continue|for|new|switch|" +
|
61
|
+
"assert|default|goto|package|synchronized|" +
|
62
|
+
"boolean|do|if|private|this|" +
|
63
|
+
"break|double|implements|protected|throw|" +
|
64
|
+
"byte|else|import|public|throws|" +
|
65
|
+
"case|enum|instanceof|return|transient|" +
|
66
|
+
"catch|extends|int|short|try|" +
|
67
|
+
"char|final|interface|static|void|" +
|
68
|
+
"class|finally|long|strictfp|volatile|" +
|
69
|
+
"const|float|native|super|while|" +
|
70
|
+
"var"
|
71
|
+
);
|
72
|
+
|
73
|
+
var buildinConstants = ("null|Infinity|NaN|undefined");
|
74
|
+
|
75
|
+
|
76
|
+
var langClasses = (
|
77
|
+
"AbstractMethodError|AssertionError|ClassCircularityError|"+
|
78
|
+
"ClassFormatError|Deprecated|EnumConstantNotPresentException|"+
|
79
|
+
"ExceptionInInitializerError|IllegalAccessError|"+
|
80
|
+
"IllegalThreadStateException|InstantiationError|InternalError|"+
|
81
|
+
"NegativeArraySizeException|NoSuchFieldError|Override|Process|"+
|
82
|
+
"ProcessBuilder|SecurityManager|StringIndexOutOfBoundsException|"+
|
83
|
+
"SuppressWarnings|TypeNotPresentException|UnknownError|"+
|
84
|
+
"UnsatisfiedLinkError|UnsupportedClassVersionError|VerifyError|"+
|
85
|
+
"InstantiationException|IndexOutOfBoundsException|"+
|
86
|
+
"ArrayIndexOutOfBoundsException|CloneNotSupportedException|"+
|
87
|
+
"NoSuchFieldException|IllegalArgumentException|NumberFormatException|"+
|
88
|
+
"SecurityException|Void|InheritableThreadLocal|IllegalStateException|"+
|
89
|
+
"InterruptedException|NoSuchMethodException|IllegalAccessException|"+
|
90
|
+
"UnsupportedOperationException|Enum|StrictMath|Package|Compiler|"+
|
91
|
+
"Readable|Runtime|StringBuilder|Math|IncompatibleClassChangeError|"+
|
92
|
+
"NoSuchMethodError|ThreadLocal|RuntimePermission|ArithmeticException|"+
|
93
|
+
"NullPointerException|Long|Integer|Short|Byte|Double|Number|Float|"+
|
94
|
+
"Character|Boolean|StackTraceElement|Appendable|StringBuffer|"+
|
95
|
+
"Iterable|ThreadGroup|Runnable|Thread|IllegalMonitorStateException|"+
|
96
|
+
"StackOverflowError|OutOfMemoryError|VirtualMachineError|"+
|
97
|
+
"ArrayStoreException|ClassCastException|LinkageError|"+
|
98
|
+
"NoClassDefFoundError|ClassNotFoundException|RuntimeException|"+
|
99
|
+
"Exception|ThreadDeath|Error|Throwable|System|ClassLoader|"+
|
100
|
+
"Cloneable|Class|CharSequence|Comparable|String|Object"
|
101
|
+
);
|
102
|
+
|
103
|
+
var keywordMapper = this.createKeywordMapper({
|
104
|
+
"variable.language": "this",
|
105
|
+
"keyword": keywords,
|
106
|
+
"constant.language": buildinConstants,
|
107
|
+
"support.function": langClasses
|
108
|
+
}, "identifier");
|
109
|
+
this.$rules = {
|
110
|
+
"start" : [
|
111
|
+
{
|
112
|
+
token : "comment",
|
113
|
+
regex : "\\/\\/.*$"
|
114
|
+
},
|
115
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
116
|
+
{
|
117
|
+
token : "comment", // multi line comment
|
118
|
+
regex : "\\/\\*",
|
119
|
+
next : "comment"
|
120
|
+
}, {
|
121
|
+
token : "string", // single line
|
122
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
123
|
+
}, {
|
124
|
+
token : "string", // single line
|
125
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
126
|
+
}, {
|
127
|
+
token : "constant.numeric", // hex
|
128
|
+
regex : /0(?:[xX][0-9a-fA-F][0-9a-fA-F_]*|[bB][01][01_]*)[LlSsDdFfYy]?\b/
|
129
|
+
}, {
|
130
|
+
token : "constant.numeric", // float
|
131
|
+
regex : /[+-]?\d[\d_]*(?:(?:\.[\d_]*)?(?:[eE][+-]?[\d_]+)?)?[LlSsDdFfYy]?\b/
|
132
|
+
}, {
|
133
|
+
token : "constant.language.boolean",
|
134
|
+
regex : "(?:true|false)\\b"
|
135
|
+
}, {
|
136
|
+
regex: "(open(?:\\s+))?module(?=\\s*\\w)",
|
137
|
+
token: "keyword",
|
138
|
+
next: [{
|
139
|
+
regex: "{",
|
140
|
+
token: "paren.lparen",
|
141
|
+
next: [{
|
142
|
+
regex: "}",
|
143
|
+
token: "paren.rparen",
|
144
|
+
next: "start"
|
145
|
+
}, {
|
146
|
+
regex: "\\b(requires|transitive|exports|opens|to|uses|provides|with)\\b",
|
147
|
+
token: "keyword"
|
148
|
+
}]
|
149
|
+
}, {
|
150
|
+
token : "text",
|
151
|
+
regex : "\\s+"
|
152
|
+
}, {
|
153
|
+
token : "identifier",
|
154
|
+
regex : "\\w+"
|
155
|
+
}, {
|
156
|
+
token : "punctuation.operator",
|
157
|
+
regex : "."
|
158
|
+
}, {
|
159
|
+
token : "text",
|
160
|
+
regex : "\\s+"
|
161
|
+
}, {
|
162
|
+
regex: "", // exit if there is anything else
|
163
|
+
next: "start"
|
164
|
+
}]
|
165
|
+
}, {
|
166
|
+
token : keywordMapper,
|
167
|
+
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
168
|
+
}, {
|
169
|
+
token : "keyword.operator",
|
170
|
+
regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"
|
171
|
+
}, {
|
172
|
+
token : "lparen",
|
173
|
+
regex : "[[({]"
|
174
|
+
}, {
|
175
|
+
token : "rparen",
|
176
|
+
regex : "[\\])}]"
|
177
|
+
}, {
|
178
|
+
token : "text",
|
179
|
+
regex : "\\s+"
|
180
|
+
}
|
181
|
+
],
|
182
|
+
"comment" : [
|
183
|
+
{
|
184
|
+
token : "comment", // closing comment
|
185
|
+
regex : "\\*\\/",
|
186
|
+
next : "start"
|
187
|
+
}, {
|
188
|
+
defaultToken : "comment"
|
189
|
+
}
|
190
|
+
]
|
191
|
+
};
|
192
|
+
|
193
|
+
|
194
|
+
this.embedRules(DocCommentHighlightRules, "doc-",
|
195
|
+
[ DocCommentHighlightRules.getEndRule("start") ]);
|
196
|
+
this.normalizeRules();
|
197
|
+
};
|
198
|
+
|
199
|
+
oop.inherits(JavaHighlightRules, TextHighlightRules);
|
200
|
+
|
201
|
+
exports.JavaHighlightRules = JavaHighlightRules;
|
202
|
+
});
|
203
|
+
|
204
|
+
define("ace/mode/drools_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/java_highlight_rules","ace/mode/doc_comment_highlight_rules"], function(require, exports, module) {
|
205
|
+
"use strict";
|
206
|
+
|
207
|
+
var oop = require("../lib/oop");
|
208
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
209
|
+
var JavaHighlightRules = require("./java_highlight_rules").JavaHighlightRules;
|
210
|
+
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
211
|
+
|
212
|
+
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
|
213
|
+
var packageIdentifierRe = "[a-zA-Z\\$_\u00a1-\uffff][\\.a-zA-Z\\d\\$_\u00a1-\uffff]*";
|
214
|
+
|
215
|
+
var DroolsHighlightRules = function() {
|
216
|
+
|
217
|
+
var keywords = ("date|effective|expires|lock|on|active|no|loop|auto|focus" +
|
218
|
+
"|activation|group|agenda|ruleflow|duration|timer|calendars|refract|direct" +
|
219
|
+
"|dialect|salience|enabled|attributes|extends|template" +
|
220
|
+
"|function|contains|matches|eval|excludes|soundslike" +
|
221
|
+
"|memberof|not|in|or|and|exists|forall|over|from|entry|point|accumulate|acc|collect" +
|
222
|
+
"|action|reverse|result|end|init|instanceof|extends|super|boolean|char|byte|short" +
|
223
|
+
"|int|long|float|double|this|void|class|new|case|final|if|else|for|while|do" +
|
224
|
+
"|default|try|catch|finally|switch|synchronized|return|throw|break|continue|assert" +
|
225
|
+
"|modify|static|public|protected|private|abstract|native|transient|volatile" +
|
226
|
+
"|strictfp|throws|interface|enum|implements|type|window|trait|no-loop|str"
|
227
|
+
);
|
228
|
+
|
229
|
+
var langClasses = (
|
230
|
+
"AbstractMethodError|AssertionError|ClassCircularityError|"+
|
231
|
+
"ClassFormatError|Deprecated|EnumConstantNotPresentException|"+
|
232
|
+
"ExceptionInInitializerError|IllegalAccessError|"+
|
233
|
+
"IllegalThreadStateException|InstantiationError|InternalError|"+
|
234
|
+
"NegativeArraySizeException|NoSuchFieldError|Override|Process|"+
|
235
|
+
"ProcessBuilder|SecurityManager|StringIndexOutOfBoundsException|"+
|
236
|
+
"SuppressWarnings|TypeNotPresentException|UnknownError|"+
|
237
|
+
"UnsatisfiedLinkError|UnsupportedClassVersionError|VerifyError|"+
|
238
|
+
"InstantiationException|IndexOutOfBoundsException|"+
|
239
|
+
"ArrayIndexOutOfBoundsException|CloneNotSupportedException|"+
|
240
|
+
"NoSuchFieldException|IllegalArgumentException|NumberFormatException|"+
|
241
|
+
"SecurityException|Void|InheritableThreadLocal|IllegalStateException|"+
|
242
|
+
"InterruptedException|NoSuchMethodException|IllegalAccessException|"+
|
243
|
+
"UnsupportedOperationException|Enum|StrictMath|Package|Compiler|"+
|
244
|
+
"Readable|Runtime|StringBuilder|Math|IncompatibleClassChangeError|"+
|
245
|
+
"NoSuchMethodError|ThreadLocal|RuntimePermission|ArithmeticException|"+
|
246
|
+
"NullPointerException|Long|Integer|Short|Byte|Double|Number|Float|"+
|
247
|
+
"Character|Boolean|StackTraceElement|Appendable|StringBuffer|"+
|
248
|
+
"Iterable|ThreadGroup|Runnable|Thread|IllegalMonitorStateException|"+
|
249
|
+
"StackOverflowError|OutOfMemoryError|VirtualMachineError|"+
|
250
|
+
"ArrayStoreException|ClassCastException|LinkageError|"+
|
251
|
+
"NoClassDefFoundError|ClassNotFoundException|RuntimeException|"+
|
252
|
+
"Exception|ThreadDeath|Error|Throwable|System|ClassLoader|"+
|
253
|
+
"Cloneable|Class|CharSequence|Comparable|String|Object"
|
254
|
+
);
|
255
|
+
|
256
|
+
var keywordMapper = this.createKeywordMapper({
|
257
|
+
"variable.language": "this",
|
258
|
+
"keyword": keywords,
|
259
|
+
"constant.language": "null",
|
260
|
+
"support.class" : langClasses,
|
261
|
+
"support.function" : "retract|update|modify|insert"
|
262
|
+
}, "identifier");
|
263
|
+
var stringRules = function() {
|
264
|
+
return [{
|
265
|
+
token : "string", // single line
|
266
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
267
|
+
}, {
|
268
|
+
token : "string", // single line
|
269
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
270
|
+
}];
|
271
|
+
};
|
272
|
+
|
273
|
+
|
274
|
+
var basicPreRules = function(blockCommentRules) {
|
275
|
+
return [{
|
276
|
+
token : "comment",
|
277
|
+
regex : "\\/\\/.*$"
|
278
|
+
},
|
279
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
280
|
+
{
|
281
|
+
token : "comment", // multi line comment
|
282
|
+
regex : "\\/\\*",
|
283
|
+
next : blockCommentRules
|
284
|
+
}, {
|
285
|
+
token : "constant.numeric", // hex
|
286
|
+
regex : "0[xX][0-9a-fA-F]+\\b"
|
287
|
+
}, {
|
288
|
+
token : "constant.numeric", // float
|
289
|
+
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
290
|
+
}, {
|
291
|
+
token : "constant.language.boolean",
|
292
|
+
regex : "(?:true|false)\\b"
|
293
|
+
}];
|
294
|
+
};
|
295
|
+
|
296
|
+
var blockCommentRules = function(returnRule) {
|
297
|
+
return [
|
298
|
+
{
|
299
|
+
token : "comment.block", // closing comment
|
300
|
+
regex : "\\*\\/",
|
301
|
+
next : returnRule
|
302
|
+
}, {
|
303
|
+
defaultToken : "comment.block"
|
304
|
+
}
|
305
|
+
];
|
306
|
+
};
|
307
|
+
|
308
|
+
var basicPostRules = function() {
|
309
|
+
return [{
|
310
|
+
token : keywordMapper,
|
311
|
+
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
312
|
+
}, {
|
313
|
+
token : "keyword.operator",
|
314
|
+
regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"
|
315
|
+
}, {
|
316
|
+
token : "lparen",
|
317
|
+
regex : "[[({]"
|
318
|
+
}, {
|
319
|
+
token : "rparen",
|
320
|
+
regex : "[\\])}]"
|
321
|
+
}, {
|
322
|
+
token : "text",
|
323
|
+
regex : "\\s+"
|
324
|
+
}];
|
325
|
+
};
|
326
|
+
|
327
|
+
|
328
|
+
this.$rules = {
|
329
|
+
"start" : [].concat(basicPreRules("block.comment"), [
|
330
|
+
{
|
331
|
+
token : "entity.name.type",
|
332
|
+
regex : "@[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
333
|
+
}, {
|
334
|
+
token : ["keyword","text","entity.name.type"],
|
335
|
+
regex : "(package)(\\s+)(" + packageIdentifierRe +")"
|
336
|
+
}, {
|
337
|
+
token : ["keyword","text","keyword","text","entity.name.type"],
|
338
|
+
regex : "(import)(\\s+)(function)(\\s+)(" + packageIdentifierRe +")"
|
339
|
+
}, {
|
340
|
+
token : ["keyword","text","entity.name.type"],
|
341
|
+
regex : "(import)(\\s+)(" + packageIdentifierRe +")"
|
342
|
+
}, {
|
343
|
+
token : ["keyword","text","entity.name.type","text","variable"],
|
344
|
+
regex : "(global)(\\s+)(" + packageIdentifierRe +")(\\s+)(" + identifierRe +")"
|
345
|
+
}, {
|
346
|
+
token : ["keyword","text","keyword","text","entity.name.type"],
|
347
|
+
regex : "(declare)(\\s+)(trait)(\\s+)(" + identifierRe +")"
|
348
|
+
}, {
|
349
|
+
token : ["keyword","text","entity.name.type"],
|
350
|
+
regex : "(declare)(\\s+)(" + identifierRe +")"
|
351
|
+
}, {
|
352
|
+
token : ["keyword","text","entity.name.type"],
|
353
|
+
regex : "(extends)(\\s+)(" + packageIdentifierRe +")"
|
354
|
+
}, {
|
355
|
+
token : ["keyword","text"],
|
356
|
+
regex : "(rule)(\\s+)",
|
357
|
+
next : "asset.name"
|
358
|
+
}],
|
359
|
+
stringRules(),
|
360
|
+
[{
|
361
|
+
token : ["variable.other","text","text"],
|
362
|
+
regex : "(" + identifierRe + ")(\\s*)(:)"
|
363
|
+
}, {
|
364
|
+
token : ["keyword","text"],
|
365
|
+
regex : "(query)(\\s+)",
|
366
|
+
next : "asset.name"
|
367
|
+
}, {
|
368
|
+
token : ["keyword","text"],
|
369
|
+
regex : "(when)(\\s*)"
|
370
|
+
}, {
|
371
|
+
token : ["keyword","text"],
|
372
|
+
regex : "(then)(\\s*)",
|
373
|
+
next : "java-start"
|
374
|
+
}, {
|
375
|
+
token : "paren.lparen",
|
376
|
+
regex : /[\[({]/
|
377
|
+
}, {
|
378
|
+
token : "paren.rparen",
|
379
|
+
regex : /[\])}]/
|
380
|
+
}], basicPostRules()),
|
381
|
+
"block.comment" : blockCommentRules("start"),
|
382
|
+
"asset.name" : [
|
383
|
+
{
|
384
|
+
token : "entity.name",
|
385
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
386
|
+
}, {
|
387
|
+
token : "entity.name",
|
388
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
389
|
+
}, {
|
390
|
+
token : "entity.name",
|
391
|
+
regex : identifierRe
|
392
|
+
}, {
|
393
|
+
regex: "",
|
394
|
+
token: "empty",
|
395
|
+
next: "start"
|
396
|
+
}]
|
397
|
+
};
|
398
|
+
this.embedRules(DocCommentHighlightRules, "doc-",
|
399
|
+
[ DocCommentHighlightRules.getEndRule("start") ]);
|
400
|
+
|
401
|
+
this.embedRules(JavaHighlightRules, "java-", [
|
402
|
+
{
|
403
|
+
token : "support.function",
|
404
|
+
regex: "\\b(insert|modify|retract|update)\\b"
|
405
|
+
}, {
|
406
|
+
token : "keyword",
|
407
|
+
regex: "\\bend\\b",
|
408
|
+
next : "start"
|
409
|
+
}]);
|
410
|
+
|
411
|
+
};
|
412
|
+
|
413
|
+
oop.inherits(DroolsHighlightRules, TextHighlightRules);
|
414
|
+
|
415
|
+
exports.DroolsHighlightRules = DroolsHighlightRules;
|
416
|
+
});
|
417
|
+
|
418
|
+
define("ace/mode/folding/drools",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
|
419
|
+
"use strict";
|
420
|
+
|
421
|
+
var oop = require("../../lib/oop");
|
422
|
+
var Range = require("../../range").Range;
|
423
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
424
|
+
var TokenIterator = require("../../token_iterator").TokenIterator;
|
425
|
+
|
426
|
+
var FoldMode = exports.FoldMode = function() {};
|
427
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
428
|
+
|
429
|
+
(function() {
|
430
|
+
this.foldingStartMarker = /\b(rule|declare|query|when|then)\b/;
|
431
|
+
this.foldingStopMarker = /\bend\b/;
|
432
|
+
|
433
|
+
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
434
|
+
var line = session.getLine(row);
|
435
|
+
var match = line.match(this.foldingStartMarker);
|
436
|
+
if (match) {
|
437
|
+
var i = match.index;
|
438
|
+
|
439
|
+
if (match[1]) {
|
440
|
+
var position = {row: row, column: line.length};
|
441
|
+
var iterator = new TokenIterator(session, position.row, position.column);
|
442
|
+
var seek = "end";
|
443
|
+
var token = iterator.getCurrentToken();
|
444
|
+
if (token.value == "when") {
|
445
|
+
seek = "then";
|
446
|
+
}
|
447
|
+
while (token) {
|
448
|
+
if (token.value == seek) {
|
449
|
+
return Range.fromPoints(position ,{
|
450
|
+
row: iterator.getCurrentTokenRow(),
|
451
|
+
column: iterator.getCurrentTokenColumn()
|
452
|
+
});
|
453
|
+
}
|
454
|
+
token = iterator.stepForward();
|
455
|
+
}
|
456
|
+
}
|
457
|
+
|
458
|
+
}
|
459
|
+
};
|
460
|
+
|
461
|
+
}).call(FoldMode.prototype);
|
462
|
+
|
463
|
+
});
|
464
|
+
|
465
|
+
define("ace/mode/drools",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/drools_highlight_rules","ace/mode/folding/drools"], function(require, exports, module) {
|
466
|
+
"use strict";
|
467
|
+
|
468
|
+
var oop = require("../lib/oop");
|
469
|
+
var TextMode = require("./text").Mode;
|
470
|
+
var DroolsHighlightRules = require("./drools_highlight_rules").DroolsHighlightRules;
|
471
|
+
var DroolsFoldMode = require("./folding/drools").FoldMode;
|
472
|
+
|
473
|
+
var Mode = function() {
|
474
|
+
this.HighlightRules = DroolsHighlightRules;
|
475
|
+
this.foldingRules = new DroolsFoldMode();
|
476
|
+
this.$behaviour = this.$defaultBehaviour;
|
477
|
+
|
478
|
+
};
|
479
|
+
oop.inherits(Mode, TextMode);
|
480
|
+
|
481
|
+
(function() {
|
482
|
+
this.lineCommentStart = "//";
|
483
|
+
this.$id = "ace/mode/drools";
|
484
|
+
}).call(Mode.prototype);
|
485
|
+
|
486
|
+
exports.Mode = Mode;
|
487
|
+
|
488
|
+
});
|
489
|
+
(function() {
|
490
|
+
window.require(["ace/mode/drools"], function(m) {
|
491
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
492
|
+
module.exports = m;
|
493
|
+
}
|
494
|
+
});
|
495
|
+
})();
|
496
|
+
|