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,303 @@
|
|
1
|
+
define("ace/mode/julia_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 JuliaHighlightRules = function() {
|
8
|
+
this.$rules = { start:
|
9
|
+
[ { include: '#function_decl' },
|
10
|
+
{ include: '#function_call' },
|
11
|
+
{ include: '#type_decl' },
|
12
|
+
{ include: '#keyword' },
|
13
|
+
{ include: '#operator' },
|
14
|
+
{ include: '#number' },
|
15
|
+
{ include: '#string' },
|
16
|
+
{ include: '#comment' } ],
|
17
|
+
'#bracket':
|
18
|
+
[ { token: 'keyword.bracket.julia',
|
19
|
+
regex: '\\(|\\)|\\[|\\]|\\{|\\}|,' } ],
|
20
|
+
'#comment':
|
21
|
+
[ { token:
|
22
|
+
[ 'punctuation.definition.comment.julia',
|
23
|
+
'comment.line.number-sign.julia' ],
|
24
|
+
regex: '(#)(?!\\{)(.*$)'} ],
|
25
|
+
'#function_call':
|
26
|
+
[ { token: [ 'support.function.julia', 'text' ],
|
27
|
+
regex: '([a-zA-Z0-9_]+!?)([\\w\\xff-\\u218e\\u2455-\\uffff]*\\()'} ],
|
28
|
+
'#function_decl':
|
29
|
+
[ { token: [ 'keyword.other.julia', 'meta.function.julia',
|
30
|
+
'entity.name.function.julia', 'meta.function.julia','text' ],
|
31
|
+
regex: '(function|macro)(\\s*)([a-zA-Z0-9_\\{]+!?)([\\w\\xff-\\u218e\\u2455-\\uffff]*)([(\\\\{])'} ],
|
32
|
+
'#keyword':
|
33
|
+
[ { token: 'keyword.other.julia',
|
34
|
+
regex: '\\b(?:function|type|immutable|macro|quote|abstract|bitstype|typealias|module|baremodule|new)\\b' },
|
35
|
+
{ token: 'keyword.control.julia',
|
36
|
+
regex: '\\b(?:if|else|elseif|while|for|in|begin|let|end|do|try|catch|finally|return|break|continue)\\b' },
|
37
|
+
{ token: 'storage.modifier.variable.julia',
|
38
|
+
regex: '\\b(?:global|local|const|export|import|importall|using)\\b' },
|
39
|
+
{ token: 'variable.macro.julia', regex: '@[\\w\\xff-\\u218e\\u2455-\\uffff]+\\b' } ],
|
40
|
+
'#number':
|
41
|
+
[ { token: 'constant.numeric.julia',
|
42
|
+
regex: '\\b0(?:x|X)[0-9a-fA-F]*|(?:\\b[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:(?:e|E)(?:\\+|-)?[0-9]*)?(?:im)?|\\bInf(?:32)?\\b|\\bNaN(?:32)?\\b|\\btrue\\b|\\bfalse\\b' } ],
|
43
|
+
'#operator':
|
44
|
+
[ { token: 'keyword.operator.update.julia',
|
45
|
+
regex: '=|:=|\\+=|-=|\\*=|/=|//=|\\.//=|\\.\\*=|\\\\=|\\.\\\\=|^=|\\.^=|%=|\\|=|&=|\\$=|<<=|>>=' },
|
46
|
+
{ token: 'keyword.operator.ternary.julia', regex: '\\?|:' },
|
47
|
+
{ token: 'keyword.operator.boolean.julia',
|
48
|
+
regex: '\\|\\||&&|!' },
|
49
|
+
{ token: 'keyword.operator.arrow.julia', regex: '->|<-|-->' },
|
50
|
+
{ token: 'keyword.operator.relation.julia',
|
51
|
+
regex: '>|<|>=|<=|==|!=|\\.>|\\.<|\\.>=|\\.>=|\\.==|\\.!=|\\.=|\\.!|<:|:>' },
|
52
|
+
{ token: 'keyword.operator.range.julia', regex: ':' },
|
53
|
+
{ token: 'keyword.operator.shift.julia', regex: '<<|>>' },
|
54
|
+
{ token: 'keyword.operator.bitwise.julia', regex: '\\||\\&|~' },
|
55
|
+
{ token: 'keyword.operator.arithmetic.julia',
|
56
|
+
regex: '\\+|-|\\*|\\.\\*|/|\\./|//|\\.//|%|\\.%|\\\\|\\.\\\\|\\^|\\.\\^' },
|
57
|
+
{ token: 'keyword.operator.isa.julia', regex: '::' },
|
58
|
+
{ token: 'keyword.operator.dots.julia',
|
59
|
+
regex: '\\.(?=[a-zA-Z])|\\.\\.+' },
|
60
|
+
{ token: 'keyword.operator.interpolation.julia',
|
61
|
+
regex: '\\$#?(?=.)' },
|
62
|
+
{ token: [ 'variable', 'keyword.operator.transposed-variable.julia' ],
|
63
|
+
regex: '([\\w\\xff-\\u218e\\u2455-\\uffff]+)((?:\'|\\.\')*\\.?\')' },
|
64
|
+
{ token: 'text',
|
65
|
+
regex: '\\[|\\('},
|
66
|
+
{ token: [ 'text', 'keyword.operator.transposed-matrix.julia' ],
|
67
|
+
regex: "([\\]\\)])((?:'|\\.')*\\.?')"} ],
|
68
|
+
'#string':
|
69
|
+
[ { token: 'punctuation.definition.string.begin.julia',
|
70
|
+
regex: '\'',
|
71
|
+
push:
|
72
|
+
[ { token: 'punctuation.definition.string.end.julia',
|
73
|
+
regex: '\'',
|
74
|
+
next: 'pop' },
|
75
|
+
{ include: '#string_escaped_char' },
|
76
|
+
{ defaultToken: 'string.quoted.single.julia' } ] },
|
77
|
+
{ token: 'punctuation.definition.string.begin.julia',
|
78
|
+
regex: '"',
|
79
|
+
push:
|
80
|
+
[ { token: 'punctuation.definition.string.end.julia',
|
81
|
+
regex: '"',
|
82
|
+
next: 'pop' },
|
83
|
+
{ include: '#string_escaped_char' },
|
84
|
+
{ defaultToken: 'string.quoted.double.julia' } ] },
|
85
|
+
{ token: 'punctuation.definition.string.begin.julia',
|
86
|
+
regex: '\\b[\\w\\xff-\\u218e\\u2455-\\uffff]+"',
|
87
|
+
push:
|
88
|
+
[ { token: 'punctuation.definition.string.end.julia',
|
89
|
+
regex: '"[\\w\\xff-\\u218e\\u2455-\\uffff]*',
|
90
|
+
next: 'pop' },
|
91
|
+
{ include: '#string_custom_escaped_char' },
|
92
|
+
{ defaultToken: 'string.quoted.custom-double.julia' } ] },
|
93
|
+
{ token: 'punctuation.definition.string.begin.julia',
|
94
|
+
regex: '`',
|
95
|
+
push:
|
96
|
+
[ { token: 'punctuation.definition.string.end.julia',
|
97
|
+
regex: '`',
|
98
|
+
next: 'pop' },
|
99
|
+
{ include: '#string_escaped_char' },
|
100
|
+
{ defaultToken: 'string.quoted.backtick.julia' } ] } ],
|
101
|
+
'#string_custom_escaped_char': [ { token: 'constant.character.escape.julia', regex: '\\\\"' } ],
|
102
|
+
'#string_escaped_char':
|
103
|
+
[ { token: 'constant.character.escape.julia',
|
104
|
+
regex: '\\\\(?:\\\\|[0-3]\\d{,2}|[4-7]\\d?|x[a-fA-F0-9]{,2}|u[a-fA-F0-9]{,4}|U[a-fA-F0-9]{,8}|.)' } ],
|
105
|
+
'#type_decl':
|
106
|
+
[ { token:
|
107
|
+
[ 'keyword.control.type.julia',
|
108
|
+
'meta.type.julia',
|
109
|
+
'entity.name.type.julia',
|
110
|
+
'entity.other.inherited-class.julia',
|
111
|
+
'punctuation.separator.inheritance.julia',
|
112
|
+
'entity.other.inherited-class.julia' ],
|
113
|
+
regex: '(type|immutable)(\\s+)([a-zA-Z0-9_]+)(?:(\\s*)(<:)(\\s*[.a-zA-Z0-9_:]+))?' },
|
114
|
+
{ token: [ 'other.typed-variable.julia', 'support.type.julia' ],
|
115
|
+
regex: '([a-zA-Z0-9_]+)(::[a-zA-Z0-9_{}]+)' } ] };
|
116
|
+
|
117
|
+
this.normalizeRules();
|
118
|
+
};
|
119
|
+
|
120
|
+
JuliaHighlightRules.metaData = { fileTypes: [ 'jl' ],
|
121
|
+
firstLineMatch: '^#!.*\\bjulia\\s*$',
|
122
|
+
foldingStartMarker: '^\\s*(?:if|while|for|begin|function|macro|module|baremodule|type|immutable|let)\\b(?!.*\\bend\\b).*$',
|
123
|
+
foldingStopMarker: '^\\s*(?:end)\\b.*$',
|
124
|
+
name: 'Julia',
|
125
|
+
scopeName: 'source.julia' };
|
126
|
+
|
127
|
+
|
128
|
+
oop.inherits(JuliaHighlightRules, TextHighlightRules);
|
129
|
+
|
130
|
+
exports.JuliaHighlightRules = JuliaHighlightRules;
|
131
|
+
});
|
132
|
+
|
133
|
+
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
134
|
+
"use strict";
|
135
|
+
|
136
|
+
var oop = require("../../lib/oop");
|
137
|
+
var Range = require("../../range").Range;
|
138
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
139
|
+
|
140
|
+
var FoldMode = exports.FoldMode = function(commentRegex) {
|
141
|
+
if (commentRegex) {
|
142
|
+
this.foldingStartMarker = new RegExp(
|
143
|
+
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
144
|
+
);
|
145
|
+
this.foldingStopMarker = new RegExp(
|
146
|
+
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
147
|
+
);
|
148
|
+
}
|
149
|
+
};
|
150
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
151
|
+
|
152
|
+
(function() {
|
153
|
+
|
154
|
+
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
155
|
+
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
156
|
+
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
157
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
158
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
159
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
160
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
161
|
+
var line = session.getLine(row);
|
162
|
+
|
163
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
164
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
165
|
+
return "";
|
166
|
+
}
|
167
|
+
|
168
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
169
|
+
|
170
|
+
if (!fw && this.startRegionRe.test(line))
|
171
|
+
return "start"; // lineCommentRegionStart
|
172
|
+
|
173
|
+
return fw;
|
174
|
+
};
|
175
|
+
|
176
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
177
|
+
var line = session.getLine(row);
|
178
|
+
|
179
|
+
if (this.startRegionRe.test(line))
|
180
|
+
return this.getCommentRegionBlock(session, line, row);
|
181
|
+
|
182
|
+
var match = line.match(this.foldingStartMarker);
|
183
|
+
if (match) {
|
184
|
+
var i = match.index;
|
185
|
+
|
186
|
+
if (match[1])
|
187
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
188
|
+
|
189
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
190
|
+
|
191
|
+
if (range && !range.isMultiLine()) {
|
192
|
+
if (forceMultiline) {
|
193
|
+
range = this.getSectionRange(session, row);
|
194
|
+
} else if (foldStyle != "all")
|
195
|
+
range = null;
|
196
|
+
}
|
197
|
+
|
198
|
+
return range;
|
199
|
+
}
|
200
|
+
|
201
|
+
if (foldStyle === "markbegin")
|
202
|
+
return;
|
203
|
+
|
204
|
+
var match = line.match(this.foldingStopMarker);
|
205
|
+
if (match) {
|
206
|
+
var i = match.index + match[0].length;
|
207
|
+
|
208
|
+
if (match[1])
|
209
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
210
|
+
|
211
|
+
return session.getCommentFoldRange(row, i, -1);
|
212
|
+
}
|
213
|
+
};
|
214
|
+
|
215
|
+
this.getSectionRange = function(session, row) {
|
216
|
+
var line = session.getLine(row);
|
217
|
+
var startIndent = line.search(/\S/);
|
218
|
+
var startRow = row;
|
219
|
+
var startColumn = line.length;
|
220
|
+
row = row + 1;
|
221
|
+
var endRow = row;
|
222
|
+
var maxRow = session.getLength();
|
223
|
+
while (++row < maxRow) {
|
224
|
+
line = session.getLine(row);
|
225
|
+
var indent = line.search(/\S/);
|
226
|
+
if (indent === -1)
|
227
|
+
continue;
|
228
|
+
if (startIndent > indent)
|
229
|
+
break;
|
230
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
231
|
+
|
232
|
+
if (subRange) {
|
233
|
+
if (subRange.start.row <= startRow) {
|
234
|
+
break;
|
235
|
+
} else if (subRange.isMultiLine()) {
|
236
|
+
row = subRange.end.row;
|
237
|
+
} else if (startIndent == indent) {
|
238
|
+
break;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
endRow = row;
|
242
|
+
}
|
243
|
+
|
244
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
245
|
+
};
|
246
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
247
|
+
var startColumn = line.search(/\s*$/);
|
248
|
+
var maxRow = session.getLength();
|
249
|
+
var startRow = row;
|
250
|
+
|
251
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
252
|
+
var depth = 1;
|
253
|
+
while (++row < maxRow) {
|
254
|
+
line = session.getLine(row);
|
255
|
+
var m = re.exec(line);
|
256
|
+
if (!m) continue;
|
257
|
+
if (m[1]) depth--;
|
258
|
+
else depth++;
|
259
|
+
|
260
|
+
if (!depth) break;
|
261
|
+
}
|
262
|
+
|
263
|
+
var endRow = row;
|
264
|
+
if (endRow > startRow) {
|
265
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
266
|
+
}
|
267
|
+
};
|
268
|
+
|
269
|
+
}).call(FoldMode.prototype);
|
270
|
+
|
271
|
+
});
|
272
|
+
|
273
|
+
define("ace/mode/julia",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/julia_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
|
274
|
+
"use strict";
|
275
|
+
|
276
|
+
var oop = require("../lib/oop");
|
277
|
+
var TextMode = require("./text").Mode;
|
278
|
+
var JuliaHighlightRules = require("./julia_highlight_rules").JuliaHighlightRules;
|
279
|
+
var FoldMode = require("./folding/cstyle").FoldMode;
|
280
|
+
|
281
|
+
var Mode = function() {
|
282
|
+
this.HighlightRules = JuliaHighlightRules;
|
283
|
+
this.foldingRules = new FoldMode();
|
284
|
+
this.$behaviour = this.$defaultBehaviour;
|
285
|
+
};
|
286
|
+
oop.inherits(Mode, TextMode);
|
287
|
+
|
288
|
+
(function() {
|
289
|
+
this.lineCommentStart = "#";
|
290
|
+
this.blockComment = "";
|
291
|
+
this.$id = "ace/mode/julia";
|
292
|
+
}).call(Mode.prototype);
|
293
|
+
|
294
|
+
exports.Mode = Mode;
|
295
|
+
});
|
296
|
+
(function() {
|
297
|
+
window.require(["ace/mode/julia"], function(m) {
|
298
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
299
|
+
module.exports = m;
|
300
|
+
}
|
301
|
+
});
|
302
|
+
})();
|
303
|
+
|
@@ -0,0 +1,795 @@
|
|
1
|
+
define("ace/mode/kotlin_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 KotlinHighlightRules = function() {
|
8
|
+
this.$rules = {
|
9
|
+
start: [{
|
10
|
+
include: "#comments"
|
11
|
+
}, {
|
12
|
+
token: [
|
13
|
+
"text",
|
14
|
+
"keyword.other.kotlin",
|
15
|
+
"text",
|
16
|
+
"entity.name.package.kotlin",
|
17
|
+
"text"
|
18
|
+
],
|
19
|
+
regex: /^(\s*)(package)\b(?:(\s*)([^ ;$]+)(\s*))?/
|
20
|
+
}, {
|
21
|
+
include: "#imports"
|
22
|
+
}, {
|
23
|
+
include: "#statements"
|
24
|
+
}],
|
25
|
+
"#classes": [{
|
26
|
+
token: "text",
|
27
|
+
regex: /(?=\s*(?:companion|class|object|interface))/,
|
28
|
+
push: [{
|
29
|
+
token: "text",
|
30
|
+
regex: /}|(?=$)/,
|
31
|
+
next: "pop"
|
32
|
+
}, {
|
33
|
+
token: ["keyword.other.kotlin", "text"],
|
34
|
+
regex: /\b((?:companion\s*)?)(class|object|interface)\b/,
|
35
|
+
push: [{
|
36
|
+
token: "text",
|
37
|
+
regex: /(?=<|{|\(|:)/,
|
38
|
+
next: "pop"
|
39
|
+
}, {
|
40
|
+
token: "keyword.other.kotlin",
|
41
|
+
regex: /\bobject\b/
|
42
|
+
}, {
|
43
|
+
token: "entity.name.type.class.kotlin",
|
44
|
+
regex: /\w+/
|
45
|
+
}]
|
46
|
+
}, {
|
47
|
+
token: "text",
|
48
|
+
regex: /</,
|
49
|
+
push: [{
|
50
|
+
token: "text",
|
51
|
+
regex: />/,
|
52
|
+
next: "pop"
|
53
|
+
}, {
|
54
|
+
include: "#generics"
|
55
|
+
}]
|
56
|
+
}, {
|
57
|
+
token: "text",
|
58
|
+
regex: /\(/,
|
59
|
+
push: [{
|
60
|
+
token: "text",
|
61
|
+
regex: /\)/,
|
62
|
+
next: "pop"
|
63
|
+
}, {
|
64
|
+
include: "#parameters"
|
65
|
+
}]
|
66
|
+
}, {
|
67
|
+
token: "keyword.operator.declaration.kotlin",
|
68
|
+
regex: /:/,
|
69
|
+
push: [{
|
70
|
+
token: "text",
|
71
|
+
regex: /(?={|$)/,
|
72
|
+
next: "pop"
|
73
|
+
}, {
|
74
|
+
token: "entity.other.inherited-class.kotlin",
|
75
|
+
regex: /\w+/
|
76
|
+
}, {
|
77
|
+
token: "text",
|
78
|
+
regex: /\(/,
|
79
|
+
push: [{
|
80
|
+
token: "text",
|
81
|
+
regex: /\)/,
|
82
|
+
next: "pop"
|
83
|
+
}, {
|
84
|
+
include: "#expressions"
|
85
|
+
}]
|
86
|
+
}]
|
87
|
+
}, {
|
88
|
+
token: "text",
|
89
|
+
regex: /\{/,
|
90
|
+
push: [{
|
91
|
+
token: "text",
|
92
|
+
regex: /\}/,
|
93
|
+
next: "pop"
|
94
|
+
}, {
|
95
|
+
include: "#statements"
|
96
|
+
}]
|
97
|
+
}]
|
98
|
+
}],
|
99
|
+
"#comments": [{
|
100
|
+
token: "punctuation.definition.comment.kotlin",
|
101
|
+
regex: /\/\*/,
|
102
|
+
push: [{
|
103
|
+
token: "punctuation.definition.comment.kotlin",
|
104
|
+
regex: /\*\//,
|
105
|
+
next: "pop"
|
106
|
+
}, {
|
107
|
+
defaultToken: "comment.block.kotlin"
|
108
|
+
}]
|
109
|
+
}, {
|
110
|
+
token: [
|
111
|
+
"text",
|
112
|
+
"punctuation.definition.comment.kotlin",
|
113
|
+
"comment.line.double-slash.kotlin"
|
114
|
+
],
|
115
|
+
regex: /(\s*)(\/\/)(.*$)/
|
116
|
+
}],
|
117
|
+
"#constants": [{
|
118
|
+
token: "constant.language.kotlin",
|
119
|
+
regex: /\b(?:true|false|null|this|super)\b/
|
120
|
+
}, {
|
121
|
+
token: "constant.numeric.kotlin",
|
122
|
+
regex: /\b(?:0(?:x|X)[0-9a-fA-F]*|(?:[0-9]+\.?[0-9]*|\.[0-9]+)(?:(?:e|E)(?:\+|-)?[0-9]+)?)(?:[LlFfUuDd]|UL|ul)?\b/
|
123
|
+
}, {
|
124
|
+
token: "constant.other.kotlin",
|
125
|
+
regex: /\b[A-Z][A-Z0-9_]+\b/
|
126
|
+
}],
|
127
|
+
"#expressions": [{
|
128
|
+
token: "text",
|
129
|
+
regex: /\(/,
|
130
|
+
push: [{
|
131
|
+
token: "text",
|
132
|
+
regex: /\)/,
|
133
|
+
next: "pop"
|
134
|
+
}, {
|
135
|
+
include: "#expressions"
|
136
|
+
}]
|
137
|
+
}, {
|
138
|
+
include: "#types"
|
139
|
+
}, {
|
140
|
+
include: "#strings"
|
141
|
+
}, {
|
142
|
+
include: "#constants"
|
143
|
+
}, {
|
144
|
+
include: "#comments"
|
145
|
+
}, {
|
146
|
+
include: "#keywords"
|
147
|
+
}],
|
148
|
+
"#functions": [{
|
149
|
+
token: "text",
|
150
|
+
regex: /(?=\s*fun)/,
|
151
|
+
push: [{
|
152
|
+
token: "text",
|
153
|
+
regex: /}|(?=$)/,
|
154
|
+
next: "pop"
|
155
|
+
}, {
|
156
|
+
token: "keyword.other.kotlin",
|
157
|
+
regex: /\bfun\b/,
|
158
|
+
push: [{
|
159
|
+
token: "text",
|
160
|
+
regex: /(?=\()/,
|
161
|
+
next: "pop"
|
162
|
+
}, {
|
163
|
+
token: "text",
|
164
|
+
regex: /</,
|
165
|
+
push: [{
|
166
|
+
token: "text",
|
167
|
+
regex: />/,
|
168
|
+
next: "pop"
|
169
|
+
}, {
|
170
|
+
include: "#generics"
|
171
|
+
}]
|
172
|
+
}, {
|
173
|
+
token: ["text", "entity.name.function.kotlin"],
|
174
|
+
regex: /((?:[\.<\?>\w]+\.)?)(\w+)/
|
175
|
+
}]
|
176
|
+
}, {
|
177
|
+
token: "text",
|
178
|
+
regex: /\(/,
|
179
|
+
push: [{
|
180
|
+
token: "text",
|
181
|
+
regex: /\)/,
|
182
|
+
next: "pop"
|
183
|
+
}, {
|
184
|
+
include: "#parameters"
|
185
|
+
}]
|
186
|
+
}, {
|
187
|
+
token: "keyword.operator.declaration.kotlin",
|
188
|
+
regex: /:/,
|
189
|
+
push: [{
|
190
|
+
token: "text",
|
191
|
+
regex: /(?={|=|$)/,
|
192
|
+
next: "pop"
|
193
|
+
}, {
|
194
|
+
include: "#types"
|
195
|
+
}]
|
196
|
+
}, {
|
197
|
+
token: "text",
|
198
|
+
regex: /\{/,
|
199
|
+
push: [{
|
200
|
+
token: "text",
|
201
|
+
regex: /(?=\})/,
|
202
|
+
next: "pop"
|
203
|
+
}, {
|
204
|
+
include: "#statements"
|
205
|
+
}]
|
206
|
+
}, {
|
207
|
+
token: "keyword.operator.assignment.kotlin",
|
208
|
+
regex: /=/,
|
209
|
+
push: [{
|
210
|
+
token: "text",
|
211
|
+
regex: /(?=$)/,
|
212
|
+
next: "pop"
|
213
|
+
}, {
|
214
|
+
include: "#expressions"
|
215
|
+
}]
|
216
|
+
}]
|
217
|
+
}],
|
218
|
+
"#generics": [{
|
219
|
+
token: "keyword.operator.declaration.kotlin",
|
220
|
+
regex: /:/,
|
221
|
+
push: [{
|
222
|
+
token: "text",
|
223
|
+
regex: /(?=,|>)/,
|
224
|
+
next: "pop"
|
225
|
+
}, {
|
226
|
+
include: "#types"
|
227
|
+
}]
|
228
|
+
}, {
|
229
|
+
include: "#keywords"
|
230
|
+
}, {
|
231
|
+
token: "storage.type.generic.kotlin",
|
232
|
+
regex: /\w+/
|
233
|
+
}],
|
234
|
+
"#getters-and-setters": [{
|
235
|
+
token: ["entity.name.function.kotlin", "text"],
|
236
|
+
regex: /\b(get)\b(\s*\(\s*\))/,
|
237
|
+
push: [{
|
238
|
+
token: "text",
|
239
|
+
regex: /\}|(?=\bset\b)|$/,
|
240
|
+
next: "pop"
|
241
|
+
}, {
|
242
|
+
token: "keyword.operator.assignment.kotlin",
|
243
|
+
regex: /=/,
|
244
|
+
push: [{
|
245
|
+
token: "text",
|
246
|
+
regex: /(?=$|\bset\b)/,
|
247
|
+
next: "pop"
|
248
|
+
}, {
|
249
|
+
include: "#expressions"
|
250
|
+
}]
|
251
|
+
}, {
|
252
|
+
token: "text",
|
253
|
+
regex: /\{/,
|
254
|
+
push: [{
|
255
|
+
token: "text",
|
256
|
+
regex: /\}/,
|
257
|
+
next: "pop"
|
258
|
+
}, {
|
259
|
+
include: "#expressions"
|
260
|
+
}]
|
261
|
+
}]
|
262
|
+
}, {
|
263
|
+
token: ["entity.name.function.kotlin", "text"],
|
264
|
+
regex: /\b(set)\b(\s*)(?=\()/,
|
265
|
+
push: [{
|
266
|
+
token: "text",
|
267
|
+
regex: /\}|(?=\bget\b)|$/,
|
268
|
+
next: "pop"
|
269
|
+
}, {
|
270
|
+
token: "text",
|
271
|
+
regex: /\(/,
|
272
|
+
push: [{
|
273
|
+
token: "text",
|
274
|
+
regex: /\)/,
|
275
|
+
next: "pop"
|
276
|
+
}, {
|
277
|
+
include: "#parameters"
|
278
|
+
}]
|
279
|
+
}, {
|
280
|
+
token: "keyword.operator.assignment.kotlin",
|
281
|
+
regex: /=/,
|
282
|
+
push: [{
|
283
|
+
token: "text",
|
284
|
+
regex: /(?=$|\bset\b)/,
|
285
|
+
next: "pop"
|
286
|
+
}, {
|
287
|
+
include: "#expressions"
|
288
|
+
}]
|
289
|
+
}, {
|
290
|
+
token: "text",
|
291
|
+
regex: /\{/,
|
292
|
+
push: [{
|
293
|
+
token: "text",
|
294
|
+
regex: /\}/,
|
295
|
+
next: "pop"
|
296
|
+
}, {
|
297
|
+
include: "#expressions"
|
298
|
+
}]
|
299
|
+
}]
|
300
|
+
}],
|
301
|
+
"#imports": [{
|
302
|
+
token: [
|
303
|
+
"text",
|
304
|
+
"keyword.other.kotlin",
|
305
|
+
"text",
|
306
|
+
"keyword.other.kotlin"
|
307
|
+
],
|
308
|
+
regex: /^(\s*)(import)(\s+[^ $]+\s+)((?:as)?)/
|
309
|
+
}],
|
310
|
+
"#keywords": [{
|
311
|
+
token: "storage.modifier.kotlin",
|
312
|
+
regex: /\b(?:var|val|public|private|protected|abstract|final|enum|open|attribute|annotation|override|inline|var|val|vararg|lazy|in|out|internal|data|tailrec|operator|infix|const|yield|typealias|typeof)\b/
|
313
|
+
}, {
|
314
|
+
token: "keyword.control.catch-exception.kotlin",
|
315
|
+
regex: /\b(?:try|catch|finally|throw)\b/
|
316
|
+
}, {
|
317
|
+
token: "keyword.control.kotlin",
|
318
|
+
regex: /\b(?:if|else|while|for|do|return|when|where|break|continue)\b/
|
319
|
+
}, {
|
320
|
+
token: "keyword.operator.kotlin",
|
321
|
+
regex: /\b(?:in|is|as|assert)\b/
|
322
|
+
}, {
|
323
|
+
token: "keyword.operator.comparison.kotlin",
|
324
|
+
regex: /==|!=|===|!==|<=|>=|<|>/
|
325
|
+
}, {
|
326
|
+
token: "keyword.operator.assignment.kotlin",
|
327
|
+
regex: /=/
|
328
|
+
}, {
|
329
|
+
token: "keyword.operator.declaration.kotlin",
|
330
|
+
regex: /:/
|
331
|
+
}, {
|
332
|
+
token: "keyword.operator.dot.kotlin",
|
333
|
+
regex: /\./
|
334
|
+
}, {
|
335
|
+
token: "keyword.operator.increment-decrement.kotlin",
|
336
|
+
regex: /\-\-|\+\+/
|
337
|
+
}, {
|
338
|
+
token: "keyword.operator.arithmetic.kotlin",
|
339
|
+
regex: /\-|\+|\*|\/|%/
|
340
|
+
}, {
|
341
|
+
token: "keyword.operator.arithmetic.assign.kotlin",
|
342
|
+
regex: /\+=|\-=|\*=|\/=/
|
343
|
+
}, {
|
344
|
+
token: "keyword.operator.logical.kotlin",
|
345
|
+
regex: /!|&&|\|\|/
|
346
|
+
}, {
|
347
|
+
token: "keyword.operator.range.kotlin",
|
348
|
+
regex: /\.\./
|
349
|
+
}, {
|
350
|
+
token: "punctuation.terminator.kotlin",
|
351
|
+
regex: /;/
|
352
|
+
}],
|
353
|
+
"#namespaces": [{
|
354
|
+
token: "keyword.other.kotlin",
|
355
|
+
regex: /\bnamespace\b/
|
356
|
+
}, {
|
357
|
+
token: "text",
|
358
|
+
regex: /\{/,
|
359
|
+
push: [{
|
360
|
+
token: "text",
|
361
|
+
regex: /\}/,
|
362
|
+
next: "pop"
|
363
|
+
}, {
|
364
|
+
include: "#statements"
|
365
|
+
}]
|
366
|
+
}],
|
367
|
+
"#parameters": [{
|
368
|
+
token: "keyword.operator.declaration.kotlin",
|
369
|
+
regex: /:/,
|
370
|
+
push: [{
|
371
|
+
token: "text",
|
372
|
+
regex: /(?=,|\)|=)/,
|
373
|
+
next: "pop"
|
374
|
+
}, {
|
375
|
+
include: "#types"
|
376
|
+
}]
|
377
|
+
}, {
|
378
|
+
token: "keyword.operator.declaration.kotlin",
|
379
|
+
regex: /=/,
|
380
|
+
push: [{
|
381
|
+
token: "text",
|
382
|
+
regex: /(?=,|\))/,
|
383
|
+
next: "pop"
|
384
|
+
}, {
|
385
|
+
include: "#expressions"
|
386
|
+
}]
|
387
|
+
}, {
|
388
|
+
include: "#keywords"
|
389
|
+
}, {
|
390
|
+
token: "variable.parameter.function.kotlin",
|
391
|
+
regex: /\w+/
|
392
|
+
}],
|
393
|
+
"#statements": [{
|
394
|
+
include: "#namespaces"
|
395
|
+
}, {
|
396
|
+
include: "#typedefs"
|
397
|
+
}, {
|
398
|
+
include: "#classes"
|
399
|
+
}, {
|
400
|
+
include: "#functions"
|
401
|
+
}, {
|
402
|
+
include: "#variables"
|
403
|
+
}, {
|
404
|
+
include: "#getters-and-setters"
|
405
|
+
}, {
|
406
|
+
include: "#expressions"
|
407
|
+
}],
|
408
|
+
"#strings": [{
|
409
|
+
token: "punctuation.definition.string.begin.kotlin",
|
410
|
+
regex: /"""/,
|
411
|
+
push: [{
|
412
|
+
token: "punctuation.definition.string.end.kotlin",
|
413
|
+
regex: /"""/,
|
414
|
+
next: "pop"
|
415
|
+
}, {
|
416
|
+
token: "variable.parameter.template.kotlin",
|
417
|
+
regex: /\$\w+|\$\{[^\}]+\}/
|
418
|
+
}, {
|
419
|
+
token: "constant.character.escape.kotlin",
|
420
|
+
regex: /\\./
|
421
|
+
}, {
|
422
|
+
defaultToken: "string.quoted.third.kotlin"
|
423
|
+
}]
|
424
|
+
}, {
|
425
|
+
token: "punctuation.definition.string.begin.kotlin",
|
426
|
+
regex: /"/,
|
427
|
+
push: [{
|
428
|
+
token: "punctuation.definition.string.end.kotlin",
|
429
|
+
regex: /"/,
|
430
|
+
next: "pop"
|
431
|
+
}, {
|
432
|
+
token: "variable.parameter.template.kotlin",
|
433
|
+
regex: /\$\w+|\$\{[^\}]+\}/
|
434
|
+
}, {
|
435
|
+
token: "constant.character.escape.kotlin",
|
436
|
+
regex: /\\./
|
437
|
+
}, {
|
438
|
+
defaultToken: "string.quoted.double.kotlin"
|
439
|
+
}]
|
440
|
+
}, {
|
441
|
+
token: "punctuation.definition.string.begin.kotlin",
|
442
|
+
regex: /'/,
|
443
|
+
push: [{
|
444
|
+
token: "punctuation.definition.string.end.kotlin",
|
445
|
+
regex: /'/,
|
446
|
+
next: "pop"
|
447
|
+
}, {
|
448
|
+
token: "constant.character.escape.kotlin",
|
449
|
+
regex: /\\./
|
450
|
+
}, {
|
451
|
+
defaultToken: "string.quoted.single.kotlin"
|
452
|
+
}]
|
453
|
+
}, {
|
454
|
+
token: "punctuation.definition.string.begin.kotlin",
|
455
|
+
regex: /`/,
|
456
|
+
push: [{
|
457
|
+
token: "punctuation.definition.string.end.kotlin",
|
458
|
+
regex: /`/,
|
459
|
+
next: "pop"
|
460
|
+
}, {
|
461
|
+
defaultToken: "string.quoted.single.kotlin"
|
462
|
+
}]
|
463
|
+
}],
|
464
|
+
"#typedefs": [{
|
465
|
+
token: "text",
|
466
|
+
regex: /(?=\s*type)/,
|
467
|
+
push: [{
|
468
|
+
token: "text",
|
469
|
+
regex: /(?=$)/,
|
470
|
+
next: "pop"
|
471
|
+
}, {
|
472
|
+
token: "keyword.other.kotlin",
|
473
|
+
regex: /\btype\b/
|
474
|
+
}, {
|
475
|
+
token: "text",
|
476
|
+
regex: /</,
|
477
|
+
push: [{
|
478
|
+
token: "text",
|
479
|
+
regex: />/,
|
480
|
+
next: "pop"
|
481
|
+
}, {
|
482
|
+
include: "#generics"
|
483
|
+
}]
|
484
|
+
}, {
|
485
|
+
include: "#expressions"
|
486
|
+
}]
|
487
|
+
}],
|
488
|
+
"#types": [{
|
489
|
+
token: "storage.type.buildin.kotlin",
|
490
|
+
regex: /\b(?:Any|Unit|String|Int|Boolean|Char|Long|Double|Float|Short|Byte|dynamic)\b/
|
491
|
+
}, {
|
492
|
+
token: "storage.type.buildin.array.kotlin",
|
493
|
+
regex: /\b(?:IntArray|BooleanArray|CharArray|LongArray|DoubleArray|FloatArray|ShortArray|ByteArray)\b/
|
494
|
+
}, {
|
495
|
+
token: [
|
496
|
+
"storage.type.buildin.collection.kotlin",
|
497
|
+
"text"
|
498
|
+
],
|
499
|
+
regex: /\b(Array|List|Map)(<\b)/,
|
500
|
+
push: [{
|
501
|
+
token: "text",
|
502
|
+
regex: />/,
|
503
|
+
next: "pop"
|
504
|
+
}, {
|
505
|
+
include: "#types"
|
506
|
+
}, {
|
507
|
+
include: "#keywords"
|
508
|
+
}]
|
509
|
+
}, {
|
510
|
+
token: "text",
|
511
|
+
regex: /\w+</,
|
512
|
+
push: [{
|
513
|
+
token: "text",
|
514
|
+
regex: />/,
|
515
|
+
next: "pop"
|
516
|
+
}, {
|
517
|
+
include: "#types"
|
518
|
+
}, {
|
519
|
+
include: "#keywords"
|
520
|
+
}]
|
521
|
+
}, {
|
522
|
+
token: ["keyword.operator.tuple.kotlin", "text"],
|
523
|
+
regex: /(#)(\()/,
|
524
|
+
push: [{
|
525
|
+
token: "text",
|
526
|
+
regex: /\)/,
|
527
|
+
next: "pop"
|
528
|
+
}, {
|
529
|
+
include: "#expressions"
|
530
|
+
}]
|
531
|
+
}, {
|
532
|
+
token: "text",
|
533
|
+
regex: /\{/,
|
534
|
+
push: [{
|
535
|
+
token: "text",
|
536
|
+
regex: /\}/,
|
537
|
+
next: "pop"
|
538
|
+
}, {
|
539
|
+
include: "#statements"
|
540
|
+
}]
|
541
|
+
}, {
|
542
|
+
token: "text",
|
543
|
+
regex: /\(/,
|
544
|
+
push: [{
|
545
|
+
token: "text",
|
546
|
+
regex: /\)/,
|
547
|
+
next: "pop"
|
548
|
+
}, {
|
549
|
+
include: "#types"
|
550
|
+
}]
|
551
|
+
}, {
|
552
|
+
token: "keyword.operator.declaration.kotlin",
|
553
|
+
regex: /->/
|
554
|
+
}],
|
555
|
+
"#variables": [{
|
556
|
+
token: "text",
|
557
|
+
regex: /(?=\s*(?:var|val))/,
|
558
|
+
push: [{
|
559
|
+
token: "text",
|
560
|
+
regex: /(?=:|=|$)/,
|
561
|
+
next: "pop"
|
562
|
+
}, {
|
563
|
+
token: "keyword.other.kotlin",
|
564
|
+
regex: /\b(?:var|val)\b/,
|
565
|
+
push: [{
|
566
|
+
token: "text",
|
567
|
+
regex: /(?=:|=|$)/,
|
568
|
+
next: "pop"
|
569
|
+
}, {
|
570
|
+
token: "text",
|
571
|
+
regex: /</,
|
572
|
+
push: [{
|
573
|
+
token: "text",
|
574
|
+
regex: />/,
|
575
|
+
next: "pop"
|
576
|
+
}, {
|
577
|
+
include: "#generics"
|
578
|
+
}]
|
579
|
+
}, {
|
580
|
+
token: ["text", "entity.name.variable.kotlin"],
|
581
|
+
regex: /((?:[\.<\?>\w]+\.)?)(\w+)/
|
582
|
+
}]
|
583
|
+
}, {
|
584
|
+
token: "keyword.operator.declaration.kotlin",
|
585
|
+
regex: /:/,
|
586
|
+
push: [{
|
587
|
+
token: "text",
|
588
|
+
regex: /(?==|$)/,
|
589
|
+
next: "pop"
|
590
|
+
}, {
|
591
|
+
include: "#types"
|
592
|
+
}, {
|
593
|
+
include: "#getters-and-setters"
|
594
|
+
}]
|
595
|
+
}, {
|
596
|
+
token: "keyword.operator.assignment.kotlin",
|
597
|
+
regex: /=/,
|
598
|
+
push: [{
|
599
|
+
token: "text",
|
600
|
+
regex: /(?=$)/,
|
601
|
+
next: "pop"
|
602
|
+
}, {
|
603
|
+
include: "#expressions"
|
604
|
+
}, {
|
605
|
+
include: "#getters-and-setters"
|
606
|
+
}]
|
607
|
+
}]
|
608
|
+
}]
|
609
|
+
};
|
610
|
+
|
611
|
+
this.normalizeRules();
|
612
|
+
};
|
613
|
+
|
614
|
+
KotlinHighlightRules.metaData = {
|
615
|
+
fileTypes: ["kt", "kts"],
|
616
|
+
name: "Kotlin",
|
617
|
+
scopeName: "source.Kotlin"
|
618
|
+
};
|
619
|
+
|
620
|
+
|
621
|
+
oop.inherits(KotlinHighlightRules, TextHighlightRules);
|
622
|
+
|
623
|
+
exports.KotlinHighlightRules = KotlinHighlightRules;
|
624
|
+
});
|
625
|
+
|
626
|
+
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
627
|
+
"use strict";
|
628
|
+
|
629
|
+
var oop = require("../../lib/oop");
|
630
|
+
var Range = require("../../range").Range;
|
631
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
632
|
+
|
633
|
+
var FoldMode = exports.FoldMode = function(commentRegex) {
|
634
|
+
if (commentRegex) {
|
635
|
+
this.foldingStartMarker = new RegExp(
|
636
|
+
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
637
|
+
);
|
638
|
+
this.foldingStopMarker = new RegExp(
|
639
|
+
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
640
|
+
);
|
641
|
+
}
|
642
|
+
};
|
643
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
644
|
+
|
645
|
+
(function() {
|
646
|
+
|
647
|
+
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
648
|
+
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
649
|
+
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
650
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
651
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
652
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
653
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
654
|
+
var line = session.getLine(row);
|
655
|
+
|
656
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
657
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
658
|
+
return "";
|
659
|
+
}
|
660
|
+
|
661
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
662
|
+
|
663
|
+
if (!fw && this.startRegionRe.test(line))
|
664
|
+
return "start"; // lineCommentRegionStart
|
665
|
+
|
666
|
+
return fw;
|
667
|
+
};
|
668
|
+
|
669
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
670
|
+
var line = session.getLine(row);
|
671
|
+
|
672
|
+
if (this.startRegionRe.test(line))
|
673
|
+
return this.getCommentRegionBlock(session, line, row);
|
674
|
+
|
675
|
+
var match = line.match(this.foldingStartMarker);
|
676
|
+
if (match) {
|
677
|
+
var i = match.index;
|
678
|
+
|
679
|
+
if (match[1])
|
680
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
681
|
+
|
682
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
683
|
+
|
684
|
+
if (range && !range.isMultiLine()) {
|
685
|
+
if (forceMultiline) {
|
686
|
+
range = this.getSectionRange(session, row);
|
687
|
+
} else if (foldStyle != "all")
|
688
|
+
range = null;
|
689
|
+
}
|
690
|
+
|
691
|
+
return range;
|
692
|
+
}
|
693
|
+
|
694
|
+
if (foldStyle === "markbegin")
|
695
|
+
return;
|
696
|
+
|
697
|
+
var match = line.match(this.foldingStopMarker);
|
698
|
+
if (match) {
|
699
|
+
var i = match.index + match[0].length;
|
700
|
+
|
701
|
+
if (match[1])
|
702
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
703
|
+
|
704
|
+
return session.getCommentFoldRange(row, i, -1);
|
705
|
+
}
|
706
|
+
};
|
707
|
+
|
708
|
+
this.getSectionRange = function(session, row) {
|
709
|
+
var line = session.getLine(row);
|
710
|
+
var startIndent = line.search(/\S/);
|
711
|
+
var startRow = row;
|
712
|
+
var startColumn = line.length;
|
713
|
+
row = row + 1;
|
714
|
+
var endRow = row;
|
715
|
+
var maxRow = session.getLength();
|
716
|
+
while (++row < maxRow) {
|
717
|
+
line = session.getLine(row);
|
718
|
+
var indent = line.search(/\S/);
|
719
|
+
if (indent === -1)
|
720
|
+
continue;
|
721
|
+
if (startIndent > indent)
|
722
|
+
break;
|
723
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
724
|
+
|
725
|
+
if (subRange) {
|
726
|
+
if (subRange.start.row <= startRow) {
|
727
|
+
break;
|
728
|
+
} else if (subRange.isMultiLine()) {
|
729
|
+
row = subRange.end.row;
|
730
|
+
} else if (startIndent == indent) {
|
731
|
+
break;
|
732
|
+
}
|
733
|
+
}
|
734
|
+
endRow = row;
|
735
|
+
}
|
736
|
+
|
737
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
738
|
+
};
|
739
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
740
|
+
var startColumn = line.search(/\s*$/);
|
741
|
+
var maxRow = session.getLength();
|
742
|
+
var startRow = row;
|
743
|
+
|
744
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
745
|
+
var depth = 1;
|
746
|
+
while (++row < maxRow) {
|
747
|
+
line = session.getLine(row);
|
748
|
+
var m = re.exec(line);
|
749
|
+
if (!m) continue;
|
750
|
+
if (m[1]) depth--;
|
751
|
+
else depth++;
|
752
|
+
|
753
|
+
if (!depth) break;
|
754
|
+
}
|
755
|
+
|
756
|
+
var endRow = row;
|
757
|
+
if (endRow > startRow) {
|
758
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
759
|
+
}
|
760
|
+
};
|
761
|
+
|
762
|
+
}).call(FoldMode.prototype);
|
763
|
+
|
764
|
+
});
|
765
|
+
|
766
|
+
define("ace/mode/kotlin",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/kotlin_highlight_rules","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module) {
|
767
|
+
"use strict";
|
768
|
+
|
769
|
+
var oop = require("../lib/oop");
|
770
|
+
var TextMode = require("./text").Mode;
|
771
|
+
var KotlinHighlightRules = require("./kotlin_highlight_rules").KotlinHighlightRules;
|
772
|
+
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
773
|
+
var FoldMode = require("./folding/cstyle").FoldMode;
|
774
|
+
|
775
|
+
var Mode = function() {
|
776
|
+
this.HighlightRules = KotlinHighlightRules;
|
777
|
+
this.foldingRules = new FoldMode();
|
778
|
+
this.$behaviour = new CstyleBehaviour();
|
779
|
+
};
|
780
|
+
oop.inherits(Mode, TextMode);
|
781
|
+
|
782
|
+
(function() {
|
783
|
+
this.$id = "ace/mode/kotlin";
|
784
|
+
}).call(Mode.prototype);
|
785
|
+
|
786
|
+
exports.Mode = Mode;
|
787
|
+
});
|
788
|
+
(function() {
|
789
|
+
window.require(["ace/mode/kotlin"], function(m) {
|
790
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
791
|
+
module.exports = m;
|
792
|
+
}
|
793
|
+
});
|
794
|
+
})();
|
795
|
+
|