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,676 @@
|
|
1
|
+
define("ace/mode/vala_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 ValaHighlightRules = function() {
|
8
|
+
this.$rules = { start:
|
9
|
+
[ { token:
|
10
|
+
[ 'meta.using.vala',
|
11
|
+
'keyword.other.using.vala',
|
12
|
+
'meta.using.vala',
|
13
|
+
'storage.modifier.using.vala',
|
14
|
+
'meta.using.vala',
|
15
|
+
'punctuation.terminator.vala' ],
|
16
|
+
regex: '^(\\s*)(using)\\b(?:(\\s*)([^ ;$]+)(\\s*)((?:;)?))?' },
|
17
|
+
{ include: '#code' } ],
|
18
|
+
'#all-types':
|
19
|
+
[ { include: '#primitive-arrays' },
|
20
|
+
{ include: '#primitive-types' },
|
21
|
+
{ include: '#object-types' } ],
|
22
|
+
'#annotations':
|
23
|
+
[ { token:
|
24
|
+
[ 'storage.type.annotation.vala',
|
25
|
+
'punctuation.definition.annotation-arguments.begin.vala' ],
|
26
|
+
regex: '(@[^ (]+)(\\()',
|
27
|
+
push:
|
28
|
+
[ { token: 'punctuation.definition.annotation-arguments.end.vala',
|
29
|
+
regex: '\\)',
|
30
|
+
next: 'pop' },
|
31
|
+
{ token:
|
32
|
+
[ 'constant.other.key.vala',
|
33
|
+
'text',
|
34
|
+
'keyword.operator.assignment.vala' ],
|
35
|
+
regex: '(\\w*)(\\s*)(=)' },
|
36
|
+
{ include: '#code' },
|
37
|
+
{ token: 'punctuation.seperator.property.vala', regex: ',' },
|
38
|
+
{ defaultToken: 'meta.declaration.annotation.vala' } ] },
|
39
|
+
{ token: 'storage.type.annotation.vala', regex: '@\\w*' } ],
|
40
|
+
'#anonymous-classes-and-new':
|
41
|
+
[ { token: 'keyword.control.new.vala',
|
42
|
+
regex: '\\bnew\\b',
|
43
|
+
push_disabled:
|
44
|
+
[ { token: 'text',
|
45
|
+
regex: '(?<=\\)|\\])(?!\\s*{)|(?<=})|(?=;)',
|
46
|
+
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
47
|
+
originalRegex: '(?<=\\)|\\])(?!\\s*{)|(?<=})|(?=;)',
|
48
|
+
next: 'pop' },
|
49
|
+
{ token: [ 'storage.type.vala', 'text' ],
|
50
|
+
regex: '(\\w+)(\\s*)(?=\\[)',
|
51
|
+
push:
|
52
|
+
[ { token: 'text', regex: '}|(?=;|\\))', next: 'pop' },
|
53
|
+
{ token: 'text',
|
54
|
+
regex: '\\[',
|
55
|
+
push:
|
56
|
+
[ { token: 'text', regex: '\\]', next: 'pop' },
|
57
|
+
{ include: '#code' } ] },
|
58
|
+
{ token: 'text',
|
59
|
+
regex: '{',
|
60
|
+
push:
|
61
|
+
[ { token: 'text', regex: '(?=})', next: 'pop' },
|
62
|
+
{ include: '#code' } ] } ] },
|
63
|
+
{ token: 'text',
|
64
|
+
regex: '(?=\\w.*\\()',
|
65
|
+
push:
|
66
|
+
[ { token: 'text',
|
67
|
+
regex: '(?<=\\))',
|
68
|
+
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
69
|
+
originalRegex: '(?<=\\))',
|
70
|
+
next: 'pop' },
|
71
|
+
{ include: '#object-types' },
|
72
|
+
{ token: 'text',
|
73
|
+
regex: '\\(',
|
74
|
+
push:
|
75
|
+
[ { token: 'text', regex: '\\)', next: 'pop' },
|
76
|
+
{ include: '#code' } ] } ] },
|
77
|
+
{ token: 'meta.inner-class.vala',
|
78
|
+
regex: '{',
|
79
|
+
push:
|
80
|
+
[ { token: 'meta.inner-class.vala', regex: '}', next: 'pop' },
|
81
|
+
{ include: '#class-body' },
|
82
|
+
{ defaultToken: 'meta.inner-class.vala' } ] } ] } ],
|
83
|
+
'#assertions':
|
84
|
+
[ { token:
|
85
|
+
[ 'keyword.control.assert.vala',
|
86
|
+
'meta.declaration.assertion.vala' ],
|
87
|
+
regex: '\\b(assert|requires|ensures)(\\s)',
|
88
|
+
push:
|
89
|
+
[ { token: 'meta.declaration.assertion.vala',
|
90
|
+
regex: '$',
|
91
|
+
next: 'pop' },
|
92
|
+
{ token: 'keyword.operator.assert.expression-seperator.vala',
|
93
|
+
regex: ':' },
|
94
|
+
{ include: '#code' },
|
95
|
+
{ defaultToken: 'meta.declaration.assertion.vala' } ] } ],
|
96
|
+
'#class':
|
97
|
+
[ { token: 'meta.class.vala',
|
98
|
+
regex: '(?=\\w?[\\w\\s]*(?:class|(?:@)?interface|enum|struct|namespace)\\s+\\w+)',
|
99
|
+
push:
|
100
|
+
[ { token: 'paren.vala',
|
101
|
+
regex: '}',
|
102
|
+
next: 'pop' },
|
103
|
+
{ include: '#storage-modifiers' },
|
104
|
+
{ include: '#comments' },
|
105
|
+
{ token:
|
106
|
+
[ 'storage.modifier.vala',
|
107
|
+
'meta.class.identifier.vala',
|
108
|
+
'entity.name.type.class.vala' ],
|
109
|
+
regex: '(class|(?:@)?interface|enum|struct|namespace)(\\s+)([\\w\\.]+)' },
|
110
|
+
{ token: 'storage.modifier.extends.vala',
|
111
|
+
regex: ':',
|
112
|
+
push:
|
113
|
+
[ { token: 'meta.definition.class.inherited.classes.vala',
|
114
|
+
regex: '(?={|,)',
|
115
|
+
next: 'pop' },
|
116
|
+
{ include: '#object-types-inherited' },
|
117
|
+
{ include: '#comments' },
|
118
|
+
{ defaultToken: 'meta.definition.class.inherited.classes.vala' } ] },
|
119
|
+
{ token:
|
120
|
+
[ 'storage.modifier.implements.vala',
|
121
|
+
'meta.definition.class.implemented.interfaces.vala' ],
|
122
|
+
regex: '(,)(\\s)',
|
123
|
+
push:
|
124
|
+
[ { token: 'meta.definition.class.implemented.interfaces.vala',
|
125
|
+
regex: '(?=\\{)',
|
126
|
+
next: 'pop' },
|
127
|
+
{ include: '#object-types-inherited' },
|
128
|
+
{ include: '#comments' },
|
129
|
+
{ defaultToken: 'meta.definition.class.implemented.interfaces.vala' } ] },
|
130
|
+
{ token: 'paren.vala',
|
131
|
+
regex: '{',
|
132
|
+
push:
|
133
|
+
[ { token: 'paren.vala', regex: '(?=})', next: 'pop' },
|
134
|
+
{ include: '#class-body' },
|
135
|
+
{ defaultToken: 'meta.class.body.vala' } ] },
|
136
|
+
{ defaultToken: 'meta.class.vala' } ],
|
137
|
+
comment: 'attempting to put namespace in here.' } ],
|
138
|
+
'#class-body':
|
139
|
+
[ { include: '#comments' },
|
140
|
+
{ include: '#class' },
|
141
|
+
{ include: '#enums' },
|
142
|
+
{ include: '#methods' },
|
143
|
+
{ include: '#annotations' },
|
144
|
+
{ include: '#storage-modifiers' },
|
145
|
+
{ include: '#code' } ],
|
146
|
+
'#code':
|
147
|
+
[ { include: '#comments' },
|
148
|
+
{ include: '#class' },
|
149
|
+
{ token: 'text',
|
150
|
+
regex: '{',
|
151
|
+
push:
|
152
|
+
[ { token: 'text', regex: '}', next: 'pop' },
|
153
|
+
{ include: '#code' } ] },
|
154
|
+
{ include: '#assertions' },
|
155
|
+
{ include: '#parens' },
|
156
|
+
{ include: '#constants-and-special-vars' },
|
157
|
+
{ include: '#anonymous-classes-and-new' },
|
158
|
+
{ include: '#keywords' },
|
159
|
+
{ include: '#storage-modifiers' },
|
160
|
+
{ include: '#strings' },
|
161
|
+
{ include: '#all-types' } ],
|
162
|
+
'#comments':
|
163
|
+
[ { token: 'punctuation.definition.comment.vala',
|
164
|
+
regex: '/\\*\\*/' },
|
165
|
+
{ include: 'text.html.javadoc' },
|
166
|
+
{ include: '#comments-inline' } ],
|
167
|
+
'#comments-inline':
|
168
|
+
[ { token: 'punctuation.definition.comment.vala',
|
169
|
+
regex: '/\\*',
|
170
|
+
push:
|
171
|
+
[ { token: 'punctuation.definition.comment.vala',
|
172
|
+
regex: '\\*/',
|
173
|
+
next: 'pop' },
|
174
|
+
{ defaultToken: 'comment.block.vala' } ] },
|
175
|
+
{ token:
|
176
|
+
[ 'text',
|
177
|
+
'punctuation.definition.comment.vala',
|
178
|
+
'comment.line.double-slash.vala' ],
|
179
|
+
regex: '(\\s*)(//)(.*$)' } ],
|
180
|
+
'#constants-and-special-vars':
|
181
|
+
[ { token: 'constant.language.vala',
|
182
|
+
regex: '\\b(?:true|false|null)\\b' },
|
183
|
+
{ token: 'variable.language.vala',
|
184
|
+
regex: '\\b(?:this|base)\\b' },
|
185
|
+
{ token: 'constant.numeric.vala',
|
186
|
+
regex: '\\b(?:0(?:x|X)[0-9a-fA-F]*|(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:(?:e|E)(?:\\+|-)?[0-9]+)?)(?:[LlFfUuDd]|UL|ul)?\\b' },
|
187
|
+
{ token: [ 'keyword.operator.dereference.vala', 'constant.other.vala' ],
|
188
|
+
regex: '((?:\\.)?)\\b([A-Z][A-Z0-9_]+)(?!<|\\.class|\\s*\\w+\\s*=)\\b' } ],
|
189
|
+
'#enums':
|
190
|
+
[ { token: 'text',
|
191
|
+
regex: '^(?=\\s*[A-Z0-9_]+\\s*(?:{|\\(|,))',
|
192
|
+
push:
|
193
|
+
[ { token: 'text', regex: '(?=;|})', next: 'pop' },
|
194
|
+
{ token: 'constant.other.enum.vala',
|
195
|
+
regex: '\\w+',
|
196
|
+
push:
|
197
|
+
[ { token: 'meta.enum.vala', regex: '(?=,|;|})', next: 'pop' },
|
198
|
+
{ include: '#parens' },
|
199
|
+
{ token: 'text',
|
200
|
+
regex: '{',
|
201
|
+
push:
|
202
|
+
[ { token: 'text', regex: '}', next: 'pop' },
|
203
|
+
{ include: '#class-body' } ] },
|
204
|
+
{ defaultToken: 'meta.enum.vala' } ] } ] } ],
|
205
|
+
'#keywords':
|
206
|
+
[ { token: 'keyword.control.catch-exception.vala',
|
207
|
+
regex: '\\b(?:try|catch|finally|throw)\\b' },
|
208
|
+
{ token: 'keyword.control.vala', regex: '\\?|:|\\?\\?' },
|
209
|
+
{ token: 'keyword.control.vala',
|
210
|
+
regex: '\\b(?:return|break|case|continue|default|do|while|for|foreach|switch|if|else|in|yield|get|set|value)\\b' },
|
211
|
+
{ token: 'keyword.operator.vala',
|
212
|
+
regex: '\\b(?:typeof|is|as)\\b' },
|
213
|
+
{ token: 'keyword.operator.comparison.vala',
|
214
|
+
regex: '==|!=|<=|>=|<>|<|>' },
|
215
|
+
{ token: 'keyword.operator.assignment.vala', regex: '=' },
|
216
|
+
{ token: 'keyword.operator.increment-decrement.vala',
|
217
|
+
regex: '\\-\\-|\\+\\+' },
|
218
|
+
{ token: 'keyword.operator.arithmetic.vala',
|
219
|
+
regex: '\\-|\\+|\\*|\\/|%' },
|
220
|
+
{ token: 'keyword.operator.logical.vala', regex: '!|&&|\\|\\|' },
|
221
|
+
{ token: 'keyword.operator.dereference.vala',
|
222
|
+
regex: '\\.(?=\\S)',
|
223
|
+
originalRegex: '(?<=\\S)\\.(?=\\S)' },
|
224
|
+
{ token: 'punctuation.terminator.vala', regex: ';' },
|
225
|
+
{ token: 'keyword.operator.ownership', regex: 'owned|unowned' } ],
|
226
|
+
'#methods':
|
227
|
+
[ { token: 'meta.method.vala',
|
228
|
+
regex: '(?!new)(?=\\w.*\\s+)(?=[^=]+\\()',
|
229
|
+
push:
|
230
|
+
[ { token: 'paren.vala', regex: '}|(?=;)', next: 'pop' },
|
231
|
+
{ include: '#storage-modifiers' },
|
232
|
+
{ token: [ 'entity.name.function.vala', 'meta.method.identifier.vala' ],
|
233
|
+
regex: '([\\~\\w\\.]+)(\\s*\\()',
|
234
|
+
push:
|
235
|
+
[ { token: 'meta.method.identifier.vala',
|
236
|
+
regex: '\\)',
|
237
|
+
next: 'pop' },
|
238
|
+
{ include: '#parameters' },
|
239
|
+
{ defaultToken: 'meta.method.identifier.vala' } ] },
|
240
|
+
{ token: 'meta.method.return-type.vala',
|
241
|
+
regex: '(?=\\w.*\\s+\\w+\\s*\\()',
|
242
|
+
push:
|
243
|
+
[ { token: 'meta.method.return-type.vala',
|
244
|
+
regex: '(?=\\w+\\s*\\()',
|
245
|
+
next: 'pop' },
|
246
|
+
{ include: '#all-types' },
|
247
|
+
{ defaultToken: 'meta.method.return-type.vala' } ] },
|
248
|
+
{ include: '#throws' },
|
249
|
+
{ token: 'paren.vala',
|
250
|
+
regex: '{',
|
251
|
+
push:
|
252
|
+
[ { token: 'paren.vala', regex: '(?=})', next: 'pop' },
|
253
|
+
{ include: '#code' },
|
254
|
+
{ defaultToken: 'meta.method.body.vala' } ] },
|
255
|
+
{ defaultToken: 'meta.method.vala' } ] } ],
|
256
|
+
'#namespace':
|
257
|
+
[ { token: 'text',
|
258
|
+
regex: '^(?=\\s*[A-Z0-9_]+\\s*(?:{|\\(|,))',
|
259
|
+
push:
|
260
|
+
[ { token: 'text', regex: '(?=;|})', next: 'pop' },
|
261
|
+
{ token: 'constant.other.namespace.vala',
|
262
|
+
regex: '\\w+',
|
263
|
+
push:
|
264
|
+
[ { token: 'meta.namespace.vala', regex: '(?=,|;|})', next: 'pop' },
|
265
|
+
{ include: '#parens' },
|
266
|
+
{ token: 'text',
|
267
|
+
regex: '{',
|
268
|
+
push:
|
269
|
+
[ { token: 'text', regex: '}', next: 'pop' },
|
270
|
+
{ include: '#code' } ] },
|
271
|
+
{ defaultToken: 'meta.namespace.vala' } ] } ],
|
272
|
+
comment: 'This is not quite right. See the class grammar right now' } ],
|
273
|
+
'#object-types':
|
274
|
+
[ { token: 'storage.type.generic.vala',
|
275
|
+
regex: '\\b(?:[a-z]\\w*\\.)*[A-Z]+\\w*<',
|
276
|
+
push:
|
277
|
+
[ { token: 'storage.type.generic.vala',
|
278
|
+
regex: '>|[^\\w\\s,\\?<\\[()\\]]',
|
279
|
+
TODO: 'FIXME: regexp doesn\'t have js equivalent',
|
280
|
+
originalRegex: '>|[^\\w\\s,\\?<\\[(?:[,]+)\\]]',
|
281
|
+
next: 'pop' },
|
282
|
+
{ include: '#object-types' },
|
283
|
+
{ token: 'storage.type.generic.vala',
|
284
|
+
regex: '<',
|
285
|
+
push:
|
286
|
+
[ { token: 'storage.type.generic.vala',
|
287
|
+
regex: '>|[^\\w\\s,\\[\\]<]',
|
288
|
+
next: 'pop' },
|
289
|
+
{ defaultToken: 'storage.type.generic.vala' } ],
|
290
|
+
comment: 'This is just to support <>\'s with no actual type prefix' },
|
291
|
+
{ defaultToken: 'storage.type.generic.vala' } ] },
|
292
|
+
{ token: 'storage.type.object.array.vala',
|
293
|
+
regex: '\\b(?:[a-z]\\w*\\.)*[A-Z]+\\w*(?=\\[)',
|
294
|
+
push:
|
295
|
+
[ { token: 'storage.type.object.array.vala',
|
296
|
+
regex: '(?=[^\\]\\s])',
|
297
|
+
next: 'pop' },
|
298
|
+
{ token: 'text',
|
299
|
+
regex: '\\[',
|
300
|
+
push:
|
301
|
+
[ { token: 'text', regex: '\\]', next: 'pop' },
|
302
|
+
{ include: '#code' } ] },
|
303
|
+
{ defaultToken: 'storage.type.object.array.vala' } ] },
|
304
|
+
{ token:
|
305
|
+
[ 'storage.type.vala',
|
306
|
+
'keyword.operator.dereference.vala',
|
307
|
+
'storage.type.vala' ],
|
308
|
+
regex: '\\b(?:([a-z]\\w*)(\\.))*([A-Z]+\\w*\\b)' } ],
|
309
|
+
'#object-types-inherited':
|
310
|
+
[ { token: 'entity.other.inherited-class.vala',
|
311
|
+
regex: '\\b(?:[a-z]\\w*\\.)*[A-Z]+\\w*<',
|
312
|
+
push:
|
313
|
+
[ { token: 'entity.other.inherited-class.vala',
|
314
|
+
regex: '>|[^\\w\\s,<]',
|
315
|
+
next: 'pop' },
|
316
|
+
{ include: '#object-types' },
|
317
|
+
{ token: 'storage.type.generic.vala',
|
318
|
+
regex: '<',
|
319
|
+
push:
|
320
|
+
[ { token: 'storage.type.generic.vala',
|
321
|
+
regex: '>|[^\\w\\s,<]',
|
322
|
+
next: 'pop' },
|
323
|
+
{ defaultToken: 'storage.type.generic.vala' } ],
|
324
|
+
comment: 'This is just to support <>\'s with no actual type prefix' },
|
325
|
+
{ defaultToken: 'entity.other.inherited-class.vala' } ] },
|
326
|
+
{ token:
|
327
|
+
[ 'entity.other.inherited-class.vala',
|
328
|
+
'keyword.operator.dereference.vala',
|
329
|
+
'entity.other.inherited-class.vala' ],
|
330
|
+
regex: '\\b(?:([a-z]\\w*)(\\.))*([A-Z]+\\w*)' } ],
|
331
|
+
'#parameters':
|
332
|
+
[ { token: 'storage.modifier.vala', regex: 'final' },
|
333
|
+
{ include: '#primitive-arrays' },
|
334
|
+
{ include: '#primitive-types' },
|
335
|
+
{ include: '#object-types' },
|
336
|
+
{ token: 'variable.parameter.vala', regex: '\\w+' } ],
|
337
|
+
'#parens':
|
338
|
+
[ { token: 'text',
|
339
|
+
regex: '\\(',
|
340
|
+
push:
|
341
|
+
[ { token: 'text', regex: '\\)', next: 'pop' },
|
342
|
+
{ include: '#code' } ] } ],
|
343
|
+
'#primitive-arrays':
|
344
|
+
[ { token: 'storage.type.primitive.array.vala',
|
345
|
+
regex: '\\b(?:bool|byte|sbyte|char|decimal|double|float|int|uint|long|ulong|object|short|ushort|string|void|int8|int16|int32|int64|uint8|uint16|uint32|uint64)(?:\\[\\])*\\b' } ],
|
346
|
+
'#primitive-types':
|
347
|
+
[ { token: 'storage.type.primitive.vala',
|
348
|
+
regex: '\\b(?:var|bool|byte|sbyte|char|decimal|double|float|int|uint|long|ulong|object|short|ushort|string|void|signal|int8|int16|int32|int64|uint8|uint16|uint32|uint64)\\b',
|
349
|
+
comment: 'var is not really a primitive, but acts like one in most cases' } ],
|
350
|
+
'#storage-modifiers':
|
351
|
+
[ { token: 'storage.modifier.vala',
|
352
|
+
regex: '\\b(?:public|private|protected|internal|static|final|sealed|virtual|override|abstract|readonly|volatile|dynamic|async|unsafe|out|ref|weak|owned|unowned|const)\\b',
|
353
|
+
comment: 'Not sure about unsafe and readonly' } ],
|
354
|
+
'#strings':
|
355
|
+
[ { token: 'punctuation.definition.string.begin.vala',
|
356
|
+
regex: '@"',
|
357
|
+
push:
|
358
|
+
[ { token: 'punctuation.definition.string.end.vala',
|
359
|
+
regex: '"',
|
360
|
+
next: 'pop' },
|
361
|
+
{ token: 'constant.character.escape.vala',
|
362
|
+
regex: '\\\\.|%[\\w\\.\\-]+|\\$(?:\\w+|\\([\\w\\s\\+\\-\\*\\/]+\\))' },
|
363
|
+
{ defaultToken: 'string.quoted.interpolated.vala' } ] },
|
364
|
+
{ token: 'punctuation.definition.string.begin.vala',
|
365
|
+
regex: '"',
|
366
|
+
push:
|
367
|
+
[ { token: 'punctuation.definition.string.end.vala',
|
368
|
+
regex: '"',
|
369
|
+
next: 'pop' },
|
370
|
+
{ token: 'constant.character.escape.vala', regex: '\\\\.' },
|
371
|
+
{ token: 'constant.character.escape.vala',
|
372
|
+
regex: '%[\\w\\.\\-]+' },
|
373
|
+
{ defaultToken: 'string.quoted.double.vala' } ] },
|
374
|
+
{ token: 'punctuation.definition.string.begin.vala',
|
375
|
+
regex: '\'',
|
376
|
+
push:
|
377
|
+
[ { token: 'punctuation.definition.string.end.vala',
|
378
|
+
regex: '\'',
|
379
|
+
next: 'pop' },
|
380
|
+
{ token: 'constant.character.escape.vala', regex: '\\\\.' },
|
381
|
+
{ defaultToken: 'string.quoted.single.vala' } ] },
|
382
|
+
{ token: 'punctuation.definition.string.begin.vala',
|
383
|
+
regex: '"""',
|
384
|
+
push:
|
385
|
+
[ { token: 'punctuation.definition.string.end.vala',
|
386
|
+
regex: '"""',
|
387
|
+
next: 'pop' },
|
388
|
+
{ token: 'constant.character.escape.vala',
|
389
|
+
regex: '%[\\w\\.\\-]+' },
|
390
|
+
{ defaultToken: 'string.quoted.triple.vala' } ] } ],
|
391
|
+
'#throws':
|
392
|
+
[ { token: 'storage.modifier.vala',
|
393
|
+
regex: 'throws',
|
394
|
+
push:
|
395
|
+
[ { token: 'meta.throwables.vala', regex: '(?={|;)', next: 'pop' },
|
396
|
+
{ include: '#object-types' },
|
397
|
+
{ defaultToken: 'meta.throwables.vala' } ] } ],
|
398
|
+
'#values':
|
399
|
+
[ { include: '#strings' },
|
400
|
+
{ include: '#object-types' },
|
401
|
+
{ include: '#constants-and-special-vars' } ] };
|
402
|
+
|
403
|
+
this.normalizeRules();
|
404
|
+
};
|
405
|
+
|
406
|
+
ValaHighlightRules.metaData = {
|
407
|
+
comment: 'Based heavily on the Java bundle\'s language syntax. TODO:\n* Closures\n* Delegates\n* Properties: Better support for properties.\n* Annotations\n* Error domains\n* Named arguments\n* Array slicing, negative indexes, multidimensional\n* construct blocks\n* lock blocks?\n* regex literals\n* DocBlock syntax highlighting. (Currently importing javadoc)\n* Folding rule for comments.\n',
|
408
|
+
fileTypes: [ 'vala' ],
|
409
|
+
foldingStartMarker: '(\\{\\s*(//.*)?$|^\\s*// \\{\\{\\{)',
|
410
|
+
foldingStopMarker: '^\\s*(\\}|// \\}\\}\\}$)',
|
411
|
+
name: 'Vala',
|
412
|
+
scopeName: 'source.vala' };
|
413
|
+
|
414
|
+
|
415
|
+
oop.inherits(ValaHighlightRules, TextHighlightRules);
|
416
|
+
|
417
|
+
exports.ValaHighlightRules = ValaHighlightRules;
|
418
|
+
});
|
419
|
+
|
420
|
+
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
421
|
+
"use strict";
|
422
|
+
|
423
|
+
var oop = require("../../lib/oop");
|
424
|
+
var Range = require("../../range").Range;
|
425
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
426
|
+
|
427
|
+
var FoldMode = exports.FoldMode = function(commentRegex) {
|
428
|
+
if (commentRegex) {
|
429
|
+
this.foldingStartMarker = new RegExp(
|
430
|
+
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
431
|
+
);
|
432
|
+
this.foldingStopMarker = new RegExp(
|
433
|
+
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
434
|
+
);
|
435
|
+
}
|
436
|
+
};
|
437
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
438
|
+
|
439
|
+
(function() {
|
440
|
+
|
441
|
+
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
442
|
+
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
443
|
+
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
444
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
445
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
446
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
447
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
448
|
+
var line = session.getLine(row);
|
449
|
+
|
450
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
451
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
452
|
+
return "";
|
453
|
+
}
|
454
|
+
|
455
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
456
|
+
|
457
|
+
if (!fw && this.startRegionRe.test(line))
|
458
|
+
return "start"; // lineCommentRegionStart
|
459
|
+
|
460
|
+
return fw;
|
461
|
+
};
|
462
|
+
|
463
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
464
|
+
var line = session.getLine(row);
|
465
|
+
|
466
|
+
if (this.startRegionRe.test(line))
|
467
|
+
return this.getCommentRegionBlock(session, line, row);
|
468
|
+
|
469
|
+
var match = line.match(this.foldingStartMarker);
|
470
|
+
if (match) {
|
471
|
+
var i = match.index;
|
472
|
+
|
473
|
+
if (match[1])
|
474
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
475
|
+
|
476
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
477
|
+
|
478
|
+
if (range && !range.isMultiLine()) {
|
479
|
+
if (forceMultiline) {
|
480
|
+
range = this.getSectionRange(session, row);
|
481
|
+
} else if (foldStyle != "all")
|
482
|
+
range = null;
|
483
|
+
}
|
484
|
+
|
485
|
+
return range;
|
486
|
+
}
|
487
|
+
|
488
|
+
if (foldStyle === "markbegin")
|
489
|
+
return;
|
490
|
+
|
491
|
+
var match = line.match(this.foldingStopMarker);
|
492
|
+
if (match) {
|
493
|
+
var i = match.index + match[0].length;
|
494
|
+
|
495
|
+
if (match[1])
|
496
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
497
|
+
|
498
|
+
return session.getCommentFoldRange(row, i, -1);
|
499
|
+
}
|
500
|
+
};
|
501
|
+
|
502
|
+
this.getSectionRange = function(session, row) {
|
503
|
+
var line = session.getLine(row);
|
504
|
+
var startIndent = line.search(/\S/);
|
505
|
+
var startRow = row;
|
506
|
+
var startColumn = line.length;
|
507
|
+
row = row + 1;
|
508
|
+
var endRow = row;
|
509
|
+
var maxRow = session.getLength();
|
510
|
+
while (++row < maxRow) {
|
511
|
+
line = session.getLine(row);
|
512
|
+
var indent = line.search(/\S/);
|
513
|
+
if (indent === -1)
|
514
|
+
continue;
|
515
|
+
if (startIndent > indent)
|
516
|
+
break;
|
517
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
518
|
+
|
519
|
+
if (subRange) {
|
520
|
+
if (subRange.start.row <= startRow) {
|
521
|
+
break;
|
522
|
+
} else if (subRange.isMultiLine()) {
|
523
|
+
row = subRange.end.row;
|
524
|
+
} else if (startIndent == indent) {
|
525
|
+
break;
|
526
|
+
}
|
527
|
+
}
|
528
|
+
endRow = row;
|
529
|
+
}
|
530
|
+
|
531
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
532
|
+
};
|
533
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
534
|
+
var startColumn = line.search(/\s*$/);
|
535
|
+
var maxRow = session.getLength();
|
536
|
+
var startRow = row;
|
537
|
+
|
538
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
539
|
+
var depth = 1;
|
540
|
+
while (++row < maxRow) {
|
541
|
+
line = session.getLine(row);
|
542
|
+
var m = re.exec(line);
|
543
|
+
if (!m) continue;
|
544
|
+
if (m[1]) depth--;
|
545
|
+
else depth++;
|
546
|
+
|
547
|
+
if (!depth) break;
|
548
|
+
}
|
549
|
+
|
550
|
+
var endRow = row;
|
551
|
+
if (endRow > startRow) {
|
552
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
553
|
+
}
|
554
|
+
};
|
555
|
+
|
556
|
+
}).call(FoldMode.prototype);
|
557
|
+
|
558
|
+
});
|
559
|
+
|
560
|
+
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
561
|
+
"use strict";
|
562
|
+
|
563
|
+
var Range = require("../range").Range;
|
564
|
+
|
565
|
+
var MatchingBraceOutdent = function() {};
|
566
|
+
|
567
|
+
(function() {
|
568
|
+
|
569
|
+
this.checkOutdent = function(line, input) {
|
570
|
+
if (! /^\s+$/.test(line))
|
571
|
+
return false;
|
572
|
+
|
573
|
+
return /^\s*\}/.test(input);
|
574
|
+
};
|
575
|
+
|
576
|
+
this.autoOutdent = function(doc, row) {
|
577
|
+
var line = doc.getLine(row);
|
578
|
+
var match = line.match(/^(\s*\})/);
|
579
|
+
|
580
|
+
if (!match) return 0;
|
581
|
+
|
582
|
+
var column = match[1].length;
|
583
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
584
|
+
|
585
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
586
|
+
|
587
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
588
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
589
|
+
};
|
590
|
+
|
591
|
+
this.$getIndent = function(line) {
|
592
|
+
return line.match(/^\s*/)[0];
|
593
|
+
};
|
594
|
+
|
595
|
+
}).call(MatchingBraceOutdent.prototype);
|
596
|
+
|
597
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
598
|
+
});
|
599
|
+
|
600
|
+
define("ace/mode/vala",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/vala_highlight_rules","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/mode/matching_brace_outdent"], function(require, exports, module) {
|
601
|
+
"use strict";
|
602
|
+
|
603
|
+
var oop = require("../lib/oop");
|
604
|
+
var TextMode = require("./text").Mode;
|
605
|
+
var Tokenizer = require("../tokenizer").Tokenizer;
|
606
|
+
var ValaHighlightRules = require("./vala_highlight_rules").ValaHighlightRules;
|
607
|
+
var FoldMode = require("./folding/cstyle").FoldMode;
|
608
|
+
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
609
|
+
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
610
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
611
|
+
|
612
|
+
var Mode = function() {
|
613
|
+
this.HighlightRules = ValaHighlightRules;
|
614
|
+
|
615
|
+
this.$outdent = new MatchingBraceOutdent();
|
616
|
+
this.$behaviour = new CstyleBehaviour();
|
617
|
+
this.foldingRules = new CStyleFoldMode();
|
618
|
+
};
|
619
|
+
oop.inherits(Mode, TextMode);
|
620
|
+
|
621
|
+
(function() {
|
622
|
+
this.lineCommentStart = "//";
|
623
|
+
this.blockComment = {start: "/*", end: "*/"};
|
624
|
+
|
625
|
+
this.getNextLineIndent = function(state, line, tab) {
|
626
|
+
var indent = this.$getIndent(line);
|
627
|
+
|
628
|
+
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
|
629
|
+
var tokens = tokenizedLine.tokens;
|
630
|
+
var endState = tokenizedLine.state;
|
631
|
+
|
632
|
+
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
633
|
+
return indent;
|
634
|
+
}
|
635
|
+
|
636
|
+
if (state == "start" || state == "no_regex") {
|
637
|
+
var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
|
638
|
+
if (match) {
|
639
|
+
indent += tab;
|
640
|
+
}
|
641
|
+
} else if (state == "doc-start") {
|
642
|
+
if (endState == "start" || endState == "no_regex") {
|
643
|
+
return "";
|
644
|
+
}
|
645
|
+
var match = line.match(/^\s*(\/?)\*/);
|
646
|
+
if (match) {
|
647
|
+
if (match[1]) {
|
648
|
+
indent += " ";
|
649
|
+
}
|
650
|
+
indent += "* ";
|
651
|
+
}
|
652
|
+
}
|
653
|
+
|
654
|
+
return indent;
|
655
|
+
};
|
656
|
+
|
657
|
+
this.checkOutdent = function(state, line, input) {
|
658
|
+
return this.$outdent.checkOutdent(line, input);
|
659
|
+
};
|
660
|
+
|
661
|
+
this.autoOutdent = function(state, doc, row) {
|
662
|
+
this.$outdent.autoOutdent(doc, row);
|
663
|
+
};
|
664
|
+
this.$id = "ace/mode/vala";
|
665
|
+
}).call(Mode.prototype);
|
666
|
+
|
667
|
+
exports.Mode = Mode;
|
668
|
+
});
|
669
|
+
(function() {
|
670
|
+
window.require(["ace/mode/vala"], function(m) {
|
671
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
672
|
+
module.exports = m;
|
673
|
+
}
|
674
|
+
});
|
675
|
+
})();
|
676
|
+
|