chaskiq 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -0
- data/lib/chaskiq/version.rb +1 -1
- data/vendor/assets/images/animated-overlay.gif +0 -0
- data/vendor/assets/images/blueimp/img/error.png +0 -0
- data/vendor/assets/images/blueimp/img/error.svg +5 -0
- data/vendor/assets/images/blueimp/img/loading.gif +0 -0
- data/vendor/assets/images/blueimp/img/play-pause.png +0 -0
- data/vendor/assets/images/blueimp/img/play-pause.svg +6 -0
- data/vendor/assets/images/blueimp/img/video-play.png +0 -0
- data/vendor/assets/images/blueimp/img/video-play.svg +5 -0
- data/vendor/assets/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/alpha.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/hue.png +0 -0
- data/vendor/assets/images/bootstrap-colorpicker/saturation.png +0 -0
- data/vendor/assets/images/chosen-sprite.png +0 -0
- data/vendor/assets/images/chosen-sprite@2x.png +0 -0
- data/vendor/assets/images/green.png +0 -0
- data/vendor/assets/images/green@2x.png +0 -0
- data/vendor/assets/images/images/animated-overlay.gif +0 -0
- data/vendor/assets/images/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/assets/images/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/images/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/images/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/images/sort.png +0 -0
- data/vendor/assets/images/sort_asc.png +0 -0
- data/vendor/assets/images/sort_desc.png +0 -0
- data/vendor/assets/images/sprite-skin-flat.png +0 -0
- data/vendor/assets/images/sprite-skin-flat2.png +0 -0
- data/vendor/assets/images/sprite-skin-nice.png +0 -0
- data/vendor/assets/images/sprite-skin-simple.png +0 -0
- data/vendor/assets/images/spritemap.png +0 -0
- data/vendor/assets/images/spritemap@2x.png +0 -0
- data/vendor/assets/javascripts/backbone/backbone.min.js +2 -0
- data/vendor/assets/javascripts/backbone/underscore.min.js +6 -0
- data/vendor/assets/javascripts/chartjs/Chart.min.js +11 -0
- data/vendor/assets/javascripts/codemirror/codemirror.js +7830 -0
- data/vendor/assets/javascripts/codemirror/mode/apl/apl.js +175 -0
- data/vendor/assets/javascripts/codemirror/mode/apl/index.html +72 -0
- data/vendor/assets/javascripts/codemirror/mode/asterisk/asterisk.js +198 -0
- data/vendor/assets/javascripts/codemirror/mode/asterisk/index.html +154 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/clike.js +474 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/index.html +225 -0
- data/vendor/assets/javascripts/codemirror/mode/clike/scala.html +767 -0
- data/vendor/assets/javascripts/codemirror/mode/clojure/clojure.js +243 -0
- data/vendor/assets/javascripts/codemirror/mode/clojure/index.html +88 -0
- data/vendor/assets/javascripts/codemirror/mode/cobol/cobol.js +255 -0
- data/vendor/assets/javascripts/codemirror/mode/cobol/index.html +210 -0
- data/vendor/assets/javascripts/codemirror/mode/coffeescript/coffeescript.js +369 -0
- data/vendor/assets/javascripts/codemirror/mode/coffeescript/index.html +740 -0
- data/vendor/assets/javascripts/codemirror/mode/commonlisp/commonlisp.js +120 -0
- data/vendor/assets/javascripts/codemirror/mode/commonlisp/index.html +177 -0
- data/vendor/assets/javascripts/codemirror/mode/css/css.js +717 -0
- data/vendor/assets/javascripts/codemirror/mode/css/index.html +70 -0
- data/vendor/assets/javascripts/codemirror/mode/css/less.html +152 -0
- data/vendor/assets/javascripts/codemirror/mode/css/less_test.js +51 -0
- data/vendor/assets/javascripts/codemirror/mode/css/scss.html +157 -0
- data/vendor/assets/javascripts/codemirror/mode/css/scss_test.js +110 -0
- data/vendor/assets/javascripts/codemirror/mode/css/test.js +135 -0
- data/vendor/assets/javascripts/codemirror/mode/cypher/cypher.js +146 -0
- data/vendor/assets/javascripts/codemirror/mode/cypher/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/d/d.js +218 -0
- data/vendor/assets/javascripts/codemirror/mode/d/index.html +273 -0
- data/vendor/assets/javascripts/codemirror/mode/diff/diff.js +47 -0
- data/vendor/assets/javascripts/codemirror/mode/diff/index.html +117 -0
- data/vendor/assets/javascripts/codemirror/mode/django/django.js +67 -0
- data/vendor/assets/javascripts/codemirror/mode/django/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/dtd/dtd.js +142 -0
- data/vendor/assets/javascripts/codemirror/mode/dtd/index.html +89 -0
- data/vendor/assets/javascripts/codemirror/mode/dylan/dylan.js +299 -0
- data/vendor/assets/javascripts/codemirror/mode/dylan/index.html +407 -0
- data/vendor/assets/javascripts/codemirror/mode/ecl/ecl.js +207 -0
- data/vendor/assets/javascripts/codemirror/mode/ecl/index.html +52 -0
- data/vendor/assets/javascripts/codemirror/mode/eiffel/eiffel.js +162 -0
- data/vendor/assets/javascripts/codemirror/mode/eiffel/index.html +429 -0
- data/vendor/assets/javascripts/codemirror/mode/erlang/erlang.js +622 -0
- data/vendor/assets/javascripts/codemirror/mode/erlang/index.html +76 -0
- data/vendor/assets/javascripts/codemirror/mode/fortran/fortran.js +188 -0
- data/vendor/assets/javascripts/codemirror/mode/fortran/index.html +81 -0
- data/vendor/assets/javascripts/codemirror/mode/gas/gas.js +345 -0
- data/vendor/assets/javascripts/codemirror/mode/gas/index.html +68 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/gfm.js +122 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/index.html +82 -0
- data/vendor/assets/javascripts/codemirror/mode/gfm/test.js +164 -0
- data/vendor/assets/javascripts/codemirror/mode/gherkin/gherkin.js +178 -0
- data/vendor/assets/javascripts/codemirror/mode/gherkin/index.html +48 -0
- data/vendor/assets/javascripts/codemirror/mode/go/go.js +184 -0
- data/vendor/assets/javascripts/codemirror/mode/go/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/groovy/groovy.js +226 -0
- data/vendor/assets/javascripts/codemirror/mode/groovy/index.html +84 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/haml.js +159 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/index.html +79 -0
- data/vendor/assets/javascripts/codemirror/mode/haml/test.js +97 -0
- data/vendor/assets/javascripts/codemirror/mode/haskell/haskell.js +267 -0
- data/vendor/assets/javascripts/codemirror/mode/haskell/index.html +73 -0
- data/vendor/assets/javascripts/codemirror/mode/haxe/haxe.js +518 -0
- data/vendor/assets/javascripts/codemirror/mode/haxe/index.html +124 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlembedded/htmlembedded.js +86 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlembedded/index.html +58 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlmixed/htmlmixed.js +121 -0
- data/vendor/assets/javascripts/codemirror/mode/htmlmixed/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/http/http.js +113 -0
- data/vendor/assets/javascripts/codemirror/mode/http/index.html +45 -0
- data/vendor/assets/javascripts/codemirror/mode/index.html +125 -0
- data/vendor/assets/javascripts/codemirror/mode/jade/index.html +70 -0
- data/vendor/assets/javascripts/codemirror/mode/jade/jade.js +590 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/index.html +114 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/javascript.js +684 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/json-ld.html +72 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/test.js +194 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript/typescript.html +61 -0
- data/vendor/assets/javascripts/codemirror/mode/jinja2/index.html +54 -0
- data/vendor/assets/javascripts/codemirror/mode/jinja2/jinja2.js +142 -0
- data/vendor/assets/javascripts/codemirror/mode/julia/index.html +195 -0
- data/vendor/assets/javascripts/codemirror/mode/julia/julia.js +301 -0
- data/vendor/assets/javascripts/codemirror/mode/kotlin/index.html +89 -0
- data/vendor/assets/javascripts/codemirror/mode/kotlin/kotlin.js +280 -0
- data/vendor/assets/javascripts/codemirror/mode/livescript/index.html +459 -0
- data/vendor/assets/javascripts/codemirror/mode/livescript/livescript.js +280 -0
- data/vendor/assets/javascripts/codemirror/mode/lua/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/lua/lua.js +159 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/index.html +359 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/markdown.js +758 -0
- data/vendor/assets/javascripts/codemirror/mode/markdown/test.js +754 -0
- data/vendor/assets/javascripts/codemirror/mode/meta.js +144 -0
- data/vendor/assets/javascripts/codemirror/mode/mirc/index.html +160 -0
- data/vendor/assets/javascripts/codemirror/mode/mirc/mirc.js +193 -0
- data/vendor/assets/javascripts/codemirror/mode/mllike/index.html +179 -0
- data/vendor/assets/javascripts/codemirror/mode/mllike/mllike.js +205 -0
- data/vendor/assets/javascripts/codemirror/mode/modelica/index.html +67 -0
- data/vendor/assets/javascripts/codemirror/mode/modelica/modelica.js +245 -0
- data/vendor/assets/javascripts/codemirror/mode/nginx/index.html +181 -0
- data/vendor/assets/javascripts/codemirror/mode/nginx/nginx.js +178 -0
- data/vendor/assets/javascripts/codemirror/mode/ntriples/index.html +45 -0
- data/vendor/assets/javascripts/codemirror/mode/ntriples/ntriples.js +186 -0
- data/vendor/assets/javascripts/codemirror/mode/octave/index.html +83 -0
- data/vendor/assets/javascripts/codemirror/mode/octave/octave.js +135 -0
- data/vendor/assets/javascripts/codemirror/mode/pascal/index.html +61 -0
- data/vendor/assets/javascripts/codemirror/mode/pascal/pascal.js +109 -0
- data/vendor/assets/javascripts/codemirror/mode/pegjs/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/pegjs/pegjs.js +114 -0
- data/vendor/assets/javascripts/codemirror/mode/perl/index.html +75 -0
- data/vendor/assets/javascripts/codemirror/mode/perl/perl.js +832 -0
- data/vendor/assets/javascripts/codemirror/mode/php/index.html +64 -0
- data/vendor/assets/javascripts/codemirror/mode/php/php.js +226 -0
- data/vendor/assets/javascripts/codemirror/mode/php/test.js +154 -0
- data/vendor/assets/javascripts/codemirror/mode/pig/index.html +55 -0
- data/vendor/assets/javascripts/codemirror/mode/pig/pig.js +188 -0
- data/vendor/assets/javascripts/codemirror/mode/properties/index.html +53 -0
- data/vendor/assets/javascripts/codemirror/mode/properties/properties.js +78 -0
- data/vendor/assets/javascripts/codemirror/mode/puppet/index.html +121 -0
- data/vendor/assets/javascripts/codemirror/mode/puppet/puppet.js +220 -0
- data/vendor/assets/javascripts/codemirror/mode/python/index.html +198 -0
- data/vendor/assets/javascripts/codemirror/mode/python/python.js +359 -0
- data/vendor/assets/javascripts/codemirror/mode/q/index.html +144 -0
- data/vendor/assets/javascripts/codemirror/mode/q/q.js +139 -0
- data/vendor/assets/javascripts/codemirror/mode/r/index.html +85 -0
- data/vendor/assets/javascripts/codemirror/mode/r/r.js +162 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/changes/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/index.html +149 -0
- data/vendor/assets/javascripts/codemirror/mode/rpm/rpm.js +101 -0
- data/vendor/assets/javascripts/codemirror/mode/rst/index.html +535 -0
- data/vendor/assets/javascripts/codemirror/mode/rst/rst.js +557 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/index.html +184 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/ruby.js +285 -0
- data/vendor/assets/javascripts/codemirror/mode/ruby/test.js +14 -0
- data/vendor/assets/javascripts/codemirror/mode/rust/index.html +60 -0
- data/vendor/assets/javascripts/codemirror/mode/rust/rust.js +451 -0
- data/vendor/assets/javascripts/codemirror/mode/sass/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/sass/sass.js +327 -0
- data/vendor/assets/javascripts/codemirror/mode/scheme/index.html +77 -0
- data/vendor/assets/javascripts/codemirror/mode/scheme/scheme.js +248 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/index.html +66 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/shell.js +138 -0
- data/vendor/assets/javascripts/codemirror/mode/shell/test.js +58 -0
- data/vendor/assets/javascripts/codemirror/mode/sieve/index.html +93 -0
- data/vendor/assets/javascripts/codemirror/mode/sieve/sieve.js +193 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/index.html +96 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/slim.js +575 -0
- data/vendor/assets/javascripts/codemirror/mode/slim/test.js +96 -0
- data/vendor/assets/javascripts/codemirror/mode/smalltalk/index.html +68 -0
- data/vendor/assets/javascripts/codemirror/mode/smalltalk/smalltalk.js +168 -0
- data/vendor/assets/javascripts/codemirror/mode/smarty/index.html +136 -0
- data/vendor/assets/javascripts/codemirror/mode/smarty/smarty.js +221 -0
- data/vendor/assets/javascripts/codemirror/mode/smartymixed/index.html +114 -0
- data/vendor/assets/javascripts/codemirror/mode/smartymixed/smartymixed.js +197 -0
- data/vendor/assets/javascripts/codemirror/mode/solr/index.html +57 -0
- data/vendor/assets/javascripts/codemirror/mode/solr/solr.js +104 -0
- data/vendor/assets/javascripts/codemirror/mode/sparql/index.html +53 -0
- data/vendor/assets/javascripts/codemirror/mode/sparql/sparql.js +160 -0
- data/vendor/assets/javascripts/codemirror/mode/sql/index.html +84 -0
- data/vendor/assets/javascripts/codemirror/mode/sql/sql.js +393 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/index.html +110 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/stex.js +262 -0
- data/vendor/assets/javascripts/codemirror/mode/stex/test.js +123 -0
- data/vendor/assets/javascripts/codemirror/mode/tcl/index.html +142 -0
- data/vendor/assets/javascripts/codemirror/mode/tcl/tcl.js +147 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/index.html +191 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/test.js +406 -0
- data/vendor/assets/javascripts/codemirror/mode/textile/textile.js +553 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/index.html +154 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/vendor/assets/javascripts/codemirror/mode/tiddlywiki/tiddlywiki.js +369 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/index.html +95 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/tiki.css +26 -0
- data/vendor/assets/javascripts/codemirror/mode/tiki/tiki.js +323 -0
- data/vendor/assets/javascripts/codemirror/mode/toml/index.html +73 -0
- data/vendor/assets/javascripts/codemirror/mode/toml/toml.js +88 -0
- data/vendor/assets/javascripts/codemirror/mode/tornado/index.html +63 -0
- data/vendor/assets/javascripts/codemirror/mode/tornado/tornado.js +68 -0
- data/vendor/assets/javascripts/codemirror/mode/turtle/index.html +50 -0
- data/vendor/assets/javascripts/codemirror/mode/turtle/turtle.js +160 -0
- data/vendor/assets/javascripts/codemirror/mode/vb/index.html +102 -0
- data/vendor/assets/javascripts/codemirror/mode/vb/vb.js +274 -0
- data/vendor/assets/javascripts/codemirror/mode/vbscript/index.html +55 -0
- data/vendor/assets/javascripts/codemirror/mode/vbscript/vbscript.js +350 -0
- data/vendor/assets/javascripts/codemirror/mode/velocity/index.html +118 -0
- data/vendor/assets/javascripts/codemirror/mode/velocity/velocity.js +201 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/index.html +120 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/test.js +273 -0
- data/vendor/assets/javascripts/codemirror/mode/verilog/verilog.js +364 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/index.html +57 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/test.js +51 -0
- data/vendor/assets/javascripts/codemirror/mode/xml/xml.js +384 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/index.html +210 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/test.js +67 -0
- data/vendor/assets/javascripts/codemirror/mode/xquery/xquery.js +447 -0
- data/vendor/assets/javascripts/codemirror/mode/yaml/index.html +80 -0
- data/vendor/assets/javascripts/codemirror/mode/yaml/yaml.js +112 -0
- data/vendor/assets/javascripts/codemirror/mode/z80/index.html +52 -0
- data/vendor/assets/javascripts/codemirror/mode/z80/z80.js +100 -0
- data/vendor/assets/javascripts/datapicker/bootstrap-datepicker.js +1671 -0
- data/vendor/assets/javascripts/flot/curvedLines.js +315 -0
- data/vendor/assets/javascripts/flot/excanvas.min.js +1 -0
- data/vendor/assets/javascripts/flot/jquery.flot.js +3168 -0
- data/vendor/assets/javascripts/flot/jquery.flot.pie.js +820 -0
- data/vendor/assets/javascripts/flot/jquery.flot.resize.js +59 -0
- data/vendor/assets/javascripts/flot/jquery.flot.spline.js +212 -0
- data/vendor/assets/javascripts/flot/jquery.flot.symbol.js +71 -0
- data/vendor/assets/javascripts/flot/jquery.flot.time.js +432 -0
- data/vendor/assets/javascripts/flot/jquery.flot.tooltip.min.js +12 -0
- data/vendor/assets/javascripts/jquery/jquery-2.1.1.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery-ui-i18n.min.js +6 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-af.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ar-DZ.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ar.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-az.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-be.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-bg.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-bs.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ca.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-cs.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-cy-GB.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-da.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-de.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-el.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-AU.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-GB.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-en-NZ.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-eo.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-es.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-et.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-eu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fa.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fo.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr-CA.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr-CH.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-fr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-gl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-he.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-hy.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-id.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-is.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-it.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ja.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ka.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-kk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-km.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ko.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ky.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lb.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lt.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-lv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-mk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ml.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ms.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nb.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nl-BE.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-nn.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-no.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pt-BR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-pt.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-rm.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ro.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ru.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sq.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sr-SR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-sv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-ta.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-th.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-tj.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-tr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-uk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-vi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-HK.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/i18n/jquery.ui.datepicker-zh-TW.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/images/animated-overlay.gif +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui-1.10.4.custom.min.css +7 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui-1.10.4.min.js +7 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.css +1189 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.js +15040 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.css +4 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.js +12 -0
- data/vendor/assets/javascripts/metisMenu/jquery.metisMenu.js +120 -0
- data/vendor/assets/javascripts/morris/morris.js +1888 -0
- data/vendor/assets/javascripts/morris/raphael-2.1.0.min.js +10 -0
- data/vendor/assets/javascripts/pace/pace.min.js +2 -0
- data/vendor/assets/javascripts/peity/jquery.peity.min.js +13 -0
- data/vendor/assets/javascripts/radioactive/radioactive.min.js +1 -0
- data/vendor/assets/javascripts/rickshaw/rickshaw.min.js +3 -0
- data/vendor/assets/javascripts/rickshaw/vendor/d3.v3.js +5 -0
- data/vendor/assets/javascripts/sparkline/jquery.sparkline.min.js +5 -0
- data/vendor/assets/javascripts/summernote/summernote.min.js +6331 -0
- data/vendor/assets/javascripts/toastr/toastr.min.js +2 -0
- data/vendor/assets/stylesheets/codemirror/codemirror.css +309 -0
- data/vendor/assets/stylesheets/codemirror/elegant.css +13 -0
- data/vendor/assets/stylesheets/datapicker/datepicker3.css +789 -0
- data/vendor/assets/stylesheets/summernote/summernote-bs3.css +5970 -0
- data/vendor/assets/stylesheets/summernote/summernote.css +446 -0
- data/vendor/assets/stylesheets/toastr/toastr.css +222 -0
- metadata +362 -3
- data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -0,0 +1,135 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineMode("octave", function() {
|
15
|
+
function wordRegexp(words) {
|
16
|
+
return new RegExp("^((" + words.join(")|(") + "))\\b");
|
17
|
+
}
|
18
|
+
|
19
|
+
var singleOperators = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");
|
20
|
+
var singleDelimiters = new RegExp('^[\\(\\[\\{\\},:=;]');
|
21
|
+
var doubleOperators = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");
|
22
|
+
var doubleDelimiters = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");
|
23
|
+
var tripleDelimiters = new RegExp("^((>>=)|(<<=))");
|
24
|
+
var expressionEnd = new RegExp("^[\\]\\)]");
|
25
|
+
var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");
|
26
|
+
|
27
|
+
var builtins = wordRegexp([
|
28
|
+
'error', 'eval', 'function', 'abs', 'acos', 'atan', 'asin', 'cos',
|
29
|
+
'cosh', 'exp', 'log', 'prod', 'sum', 'log10', 'max', 'min', 'sign', 'sin', 'sinh',
|
30
|
+
'sqrt', 'tan', 'reshape', 'break', 'zeros', 'default', 'margin', 'round', 'ones',
|
31
|
+
'rand', 'syn', 'ceil', 'floor', 'size', 'clear', 'zeros', 'eye', 'mean', 'std', 'cov',
|
32
|
+
'det', 'eig', 'inv', 'norm', 'rank', 'trace', 'expm', 'logm', 'sqrtm', 'linspace', 'plot',
|
33
|
+
'title', 'xlabel', 'ylabel', 'legend', 'text', 'grid', 'meshgrid', 'mesh', 'num2str',
|
34
|
+
'fft', 'ifft', 'arrayfun', 'cellfun', 'input', 'fliplr', 'flipud', 'ismember'
|
35
|
+
]);
|
36
|
+
|
37
|
+
var keywords = wordRegexp([
|
38
|
+
'return', 'case', 'switch', 'else', 'elseif', 'end', 'endif', 'endfunction',
|
39
|
+
'if', 'otherwise', 'do', 'for', 'while', 'try', 'catch', 'classdef', 'properties', 'events',
|
40
|
+
'methods', 'global', 'persistent', 'endfor', 'endwhile', 'printf', 'sprintf', 'disp', 'until',
|
41
|
+
'continue', 'pkg'
|
42
|
+
]);
|
43
|
+
|
44
|
+
|
45
|
+
// tokenizers
|
46
|
+
function tokenTranspose(stream, state) {
|
47
|
+
if (!stream.sol() && stream.peek() === '\'') {
|
48
|
+
stream.next();
|
49
|
+
state.tokenize = tokenBase;
|
50
|
+
return 'operator';
|
51
|
+
}
|
52
|
+
state.tokenize = tokenBase;
|
53
|
+
return tokenBase(stream, state);
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
function tokenComment(stream, state) {
|
58
|
+
if (stream.match(/^.*%}/)) {
|
59
|
+
state.tokenize = tokenBase;
|
60
|
+
return 'comment';
|
61
|
+
};
|
62
|
+
stream.skipToEnd();
|
63
|
+
return 'comment';
|
64
|
+
}
|
65
|
+
|
66
|
+
function tokenBase(stream, state) {
|
67
|
+
// whitespaces
|
68
|
+
if (stream.eatSpace()) return null;
|
69
|
+
|
70
|
+
// Handle one line Comments
|
71
|
+
if (stream.match('%{')){
|
72
|
+
state.tokenize = tokenComment;
|
73
|
+
stream.skipToEnd();
|
74
|
+
return 'comment';
|
75
|
+
}
|
76
|
+
|
77
|
+
if (stream.match(/^[%#]/)){
|
78
|
+
stream.skipToEnd();
|
79
|
+
return 'comment';
|
80
|
+
}
|
81
|
+
|
82
|
+
// Handle Number Literals
|
83
|
+
if (stream.match(/^[0-9\.+-]/, false)) {
|
84
|
+
if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) {
|
85
|
+
stream.tokenize = tokenBase;
|
86
|
+
return 'number'; };
|
87
|
+
if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
|
88
|
+
if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
|
89
|
+
}
|
90
|
+
if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; };
|
91
|
+
|
92
|
+
// Handle Strings
|
93
|
+
if (stream.match(/^"([^"]|(""))*"/)) { return 'string'; } ;
|
94
|
+
if (stream.match(/^'([^']|(''))*'/)) { return 'string'; } ;
|
95
|
+
|
96
|
+
// Handle words
|
97
|
+
if (stream.match(keywords)) { return 'keyword'; } ;
|
98
|
+
if (stream.match(builtins)) { return 'builtin'; } ;
|
99
|
+
if (stream.match(identifiers)) { return 'variable'; } ;
|
100
|
+
|
101
|
+
if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; };
|
102
|
+
if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; };
|
103
|
+
|
104
|
+
if (stream.match(expressionEnd)) {
|
105
|
+
state.tokenize = tokenTranspose;
|
106
|
+
return null;
|
107
|
+
};
|
108
|
+
|
109
|
+
|
110
|
+
// Handle non-detected items
|
111
|
+
stream.next();
|
112
|
+
return 'error';
|
113
|
+
};
|
114
|
+
|
115
|
+
|
116
|
+
return {
|
117
|
+
startState: function() {
|
118
|
+
return {
|
119
|
+
tokenize: tokenBase
|
120
|
+
};
|
121
|
+
},
|
122
|
+
|
123
|
+
token: function(stream, state) {
|
124
|
+
var style = state.tokenize(stream, state);
|
125
|
+
if (style === 'number' || style === 'variable'){
|
126
|
+
state.tokenize = tokenTranspose;
|
127
|
+
}
|
128
|
+
return style;
|
129
|
+
}
|
130
|
+
};
|
131
|
+
});
|
132
|
+
|
133
|
+
CodeMirror.defineMIME("text/x-octave", "octave");
|
134
|
+
|
135
|
+
});
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: Pascal mode</title>
|
4
|
+
<meta charset="utf-8"/>
|
5
|
+
<link rel=stylesheet href="../../doc/docs.css">
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="../../lib/codemirror.css">
|
8
|
+
<script src="../../lib/codemirror.js"></script>
|
9
|
+
<script src="pascal.js"></script>
|
10
|
+
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
11
|
+
<div id=nav>
|
12
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
13
|
+
|
14
|
+
<ul>
|
15
|
+
<li><a href="../../index.html">Home</a>
|
16
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
17
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
18
|
+
</ul>
|
19
|
+
<ul>
|
20
|
+
<li><a href="../index.html">Language modes</a>
|
21
|
+
<li><a class=active href="#">Pascal</a>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<article>
|
26
|
+
<h2>Pascal mode</h2>
|
27
|
+
|
28
|
+
|
29
|
+
<div><textarea id="code" name="code">
|
30
|
+
(* Example Pascal code *)
|
31
|
+
|
32
|
+
while a <> b do writeln('Waiting');
|
33
|
+
|
34
|
+
if a > b then
|
35
|
+
writeln('Condition met')
|
36
|
+
else
|
37
|
+
writeln('Condition not met');
|
38
|
+
|
39
|
+
for i := 1 to 10 do
|
40
|
+
writeln('Iteration: ', i:1);
|
41
|
+
|
42
|
+
repeat
|
43
|
+
a := a + 1
|
44
|
+
until a = 10;
|
45
|
+
|
46
|
+
case i of
|
47
|
+
0: write('zero');
|
48
|
+
1: write('one');
|
49
|
+
2: write('two')
|
50
|
+
end;
|
51
|
+
</textarea></div>
|
52
|
+
|
53
|
+
<script>
|
54
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
55
|
+
lineNumbers: true,
|
56
|
+
mode: "text/x-pascal"
|
57
|
+
});
|
58
|
+
</script>
|
59
|
+
|
60
|
+
<p><strong>MIME types defined:</strong> <code>text/x-pascal</code>.</p>
|
61
|
+
</article>
|
@@ -0,0 +1,109 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineMode("pascal", function() {
|
15
|
+
function words(str) {
|
16
|
+
var obj = {}, words = str.split(" ");
|
17
|
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
18
|
+
return obj;
|
19
|
+
}
|
20
|
+
var keywords = words("and array begin case const div do downto else end file for forward integer " +
|
21
|
+
"boolean char function goto if in label mod nil not of or packed procedure " +
|
22
|
+
"program record repeat set string then to type until var while with");
|
23
|
+
var atoms = {"null": true};
|
24
|
+
|
25
|
+
var isOperatorChar = /[+\-*&%=<>!?|\/]/;
|
26
|
+
|
27
|
+
function tokenBase(stream, state) {
|
28
|
+
var ch = stream.next();
|
29
|
+
if (ch == "#" && state.startOfLine) {
|
30
|
+
stream.skipToEnd();
|
31
|
+
return "meta";
|
32
|
+
}
|
33
|
+
if (ch == '"' || ch == "'") {
|
34
|
+
state.tokenize = tokenString(ch);
|
35
|
+
return state.tokenize(stream, state);
|
36
|
+
}
|
37
|
+
if (ch == "(" && stream.eat("*")) {
|
38
|
+
state.tokenize = tokenComment;
|
39
|
+
return tokenComment(stream, state);
|
40
|
+
}
|
41
|
+
if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
42
|
+
return null;
|
43
|
+
}
|
44
|
+
if (/\d/.test(ch)) {
|
45
|
+
stream.eatWhile(/[\w\.]/);
|
46
|
+
return "number";
|
47
|
+
}
|
48
|
+
if (ch == "/") {
|
49
|
+
if (stream.eat("/")) {
|
50
|
+
stream.skipToEnd();
|
51
|
+
return "comment";
|
52
|
+
}
|
53
|
+
}
|
54
|
+
if (isOperatorChar.test(ch)) {
|
55
|
+
stream.eatWhile(isOperatorChar);
|
56
|
+
return "operator";
|
57
|
+
}
|
58
|
+
stream.eatWhile(/[\w\$_]/);
|
59
|
+
var cur = stream.current();
|
60
|
+
if (keywords.propertyIsEnumerable(cur)) return "keyword";
|
61
|
+
if (atoms.propertyIsEnumerable(cur)) return "atom";
|
62
|
+
return "variable";
|
63
|
+
}
|
64
|
+
|
65
|
+
function tokenString(quote) {
|
66
|
+
return function(stream, state) {
|
67
|
+
var escaped = false, next, end = false;
|
68
|
+
while ((next = stream.next()) != null) {
|
69
|
+
if (next == quote && !escaped) {end = true; break;}
|
70
|
+
escaped = !escaped && next == "\\";
|
71
|
+
}
|
72
|
+
if (end || !escaped) state.tokenize = null;
|
73
|
+
return "string";
|
74
|
+
};
|
75
|
+
}
|
76
|
+
|
77
|
+
function tokenComment(stream, state) {
|
78
|
+
var maybeEnd = false, ch;
|
79
|
+
while (ch = stream.next()) {
|
80
|
+
if (ch == ")" && maybeEnd) {
|
81
|
+
state.tokenize = null;
|
82
|
+
break;
|
83
|
+
}
|
84
|
+
maybeEnd = (ch == "*");
|
85
|
+
}
|
86
|
+
return "comment";
|
87
|
+
}
|
88
|
+
|
89
|
+
// Interface
|
90
|
+
|
91
|
+
return {
|
92
|
+
startState: function() {
|
93
|
+
return {tokenize: null};
|
94
|
+
},
|
95
|
+
|
96
|
+
token: function(stream, state) {
|
97
|
+
if (stream.eatSpace()) return null;
|
98
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
99
|
+
if (style == "comment" || style == "meta") return style;
|
100
|
+
return style;
|
101
|
+
},
|
102
|
+
|
103
|
+
electricChars: "{}"
|
104
|
+
};
|
105
|
+
});
|
106
|
+
|
107
|
+
CodeMirror.defineMIME("text/x-pascal", "pascal");
|
108
|
+
|
109
|
+
});
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>CodeMirror: PEG.js Mode</title>
|
5
|
+
<meta charset="utf-8"/>
|
6
|
+
<link rel=stylesheet href="../../doc/docs.css">
|
7
|
+
|
8
|
+
<link rel="stylesheet" href="../../lib/codemirror.css">
|
9
|
+
<script src="../../lib/codemirror.js"></script>
|
10
|
+
<script src="../javascript/javascript.js"></script>
|
11
|
+
<script src="pegjs.js"></script>
|
12
|
+
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div id=nav>
|
16
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
17
|
+
|
18
|
+
<ul>
|
19
|
+
<li><a href="../../index.html">Home</a>
|
20
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
21
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
22
|
+
</ul>
|
23
|
+
<ul>
|
24
|
+
<li><a href="../index.html">Language modes</a>
|
25
|
+
<li><a class=active href="#">PEG.js Mode</a>
|
26
|
+
</ul>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<article>
|
30
|
+
<h2>PEG.js Mode</h2>
|
31
|
+
<form><textarea id="code" name="code">
|
32
|
+
/*
|
33
|
+
* Classic example grammar, which recognizes simple arithmetic expressions like
|
34
|
+
* "2*(3+4)". The parser generated from this grammar then computes their value.
|
35
|
+
*/
|
36
|
+
|
37
|
+
start
|
38
|
+
= additive
|
39
|
+
|
40
|
+
additive
|
41
|
+
= left:multiplicative "+" right:additive { return left + right; }
|
42
|
+
/ multiplicative
|
43
|
+
|
44
|
+
multiplicative
|
45
|
+
= left:primary "*" right:multiplicative { return left * right; }
|
46
|
+
/ primary
|
47
|
+
|
48
|
+
primary
|
49
|
+
= integer
|
50
|
+
/ "(" additive:additive ")" { return additive; }
|
51
|
+
|
52
|
+
integer "integer"
|
53
|
+
= digits:[0-9]+ { return parseInt(digits.join(""), 10); }
|
54
|
+
|
55
|
+
letter = [a-z]+</textarea></form>
|
56
|
+
<script>
|
57
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
58
|
+
mode: {name: "pegjs"},
|
59
|
+
lineNumbers: true
|
60
|
+
});
|
61
|
+
</script>
|
62
|
+
<h3>The PEG.js Mode</h3>
|
63
|
+
<p> Created by Forbes Lindesay.</p>
|
64
|
+
</article>
|
65
|
+
</body>
|
66
|
+
</html>
|
@@ -0,0 +1,114 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"), require("../javascript/javascript"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror", "../javascript/javascript"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineMode("pegjs", function (config) {
|
15
|
+
var jsMode = CodeMirror.getMode(config, "javascript");
|
16
|
+
|
17
|
+
function identifier(stream) {
|
18
|
+
return stream.match(/^[a-zA-Z_][a-zA-Z0-9_]*/);
|
19
|
+
}
|
20
|
+
|
21
|
+
return {
|
22
|
+
startState: function () {
|
23
|
+
return {
|
24
|
+
inString: false,
|
25
|
+
stringType: null,
|
26
|
+
inComment: false,
|
27
|
+
inChracterClass: false,
|
28
|
+
braced: 0,
|
29
|
+
lhs: true,
|
30
|
+
localState: null
|
31
|
+
};
|
32
|
+
},
|
33
|
+
token: function (stream, state) {
|
34
|
+
if (stream)
|
35
|
+
|
36
|
+
//check for state changes
|
37
|
+
if (!state.inString && !state.inComment && ((stream.peek() == '"') || (stream.peek() == "'"))) {
|
38
|
+
state.stringType = stream.peek();
|
39
|
+
stream.next(); // Skip quote
|
40
|
+
state.inString = true; // Update state
|
41
|
+
}
|
42
|
+
if (!state.inString && !state.inComment && stream.match(/^\/\*/)) {
|
43
|
+
state.inComment = true;
|
44
|
+
}
|
45
|
+
|
46
|
+
//return state
|
47
|
+
if (state.inString) {
|
48
|
+
while (state.inString && !stream.eol()) {
|
49
|
+
if (stream.peek() === state.stringType) {
|
50
|
+
stream.next(); // Skip quote
|
51
|
+
state.inString = false; // Clear flag
|
52
|
+
} else if (stream.peek() === '\\') {
|
53
|
+
stream.next();
|
54
|
+
stream.next();
|
55
|
+
} else {
|
56
|
+
stream.match(/^.[^\\\"\']*/);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
return state.lhs ? "property string" : "string"; // Token style
|
60
|
+
} else if (state.inComment) {
|
61
|
+
while (state.inComment && !stream.eol()) {
|
62
|
+
if (stream.match(/\*\//)) {
|
63
|
+
state.inComment = false; // Clear flag
|
64
|
+
} else {
|
65
|
+
stream.match(/^.[^\*]*/);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
return "comment";
|
69
|
+
} else if (state.inChracterClass) {
|
70
|
+
while (state.inChracterClass && !stream.eol()) {
|
71
|
+
if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) {
|
72
|
+
state.inChracterClass = false;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
} else if (stream.peek() === '[') {
|
76
|
+
stream.next();
|
77
|
+
state.inChracterClass = true;
|
78
|
+
return 'bracket';
|
79
|
+
} else if (stream.match(/^\/\//)) {
|
80
|
+
stream.skipToEnd();
|
81
|
+
return "comment";
|
82
|
+
} else if (state.braced || stream.peek() === '{') {
|
83
|
+
if (state.localState === null) {
|
84
|
+
state.localState = jsMode.startState();
|
85
|
+
}
|
86
|
+
var token = jsMode.token(stream, state.localState);
|
87
|
+
var text = stream.current();
|
88
|
+
if (!token) {
|
89
|
+
for (var i = 0; i < text.length; i++) {
|
90
|
+
if (text[i] === '{') {
|
91
|
+
state.braced++;
|
92
|
+
} else if (text[i] === '}') {
|
93
|
+
state.braced--;
|
94
|
+
}
|
95
|
+
};
|
96
|
+
}
|
97
|
+
return token;
|
98
|
+
} else if (identifier(stream)) {
|
99
|
+
if (stream.peek() === ':') {
|
100
|
+
return 'variable';
|
101
|
+
}
|
102
|
+
return 'variable-2';
|
103
|
+
} else if (['[', ']', '(', ')'].indexOf(stream.peek()) != -1) {
|
104
|
+
stream.next();
|
105
|
+
return 'bracket';
|
106
|
+
} else if (!stream.eatSpace()) {
|
107
|
+
stream.next();
|
108
|
+
}
|
109
|
+
return null;
|
110
|
+
}
|
111
|
+
};
|
112
|
+
}, "javascript");
|
113
|
+
|
114
|
+
});
|
@@ -0,0 +1,75 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: Perl mode</title>
|
4
|
+
<meta charset="utf-8"/>
|
5
|
+
<link rel=stylesheet href="../../doc/docs.css">
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="../../lib/codemirror.css">
|
8
|
+
<script src="../../lib/codemirror.js"></script>
|
9
|
+
<script src="perl.js"></script>
|
10
|
+
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
11
|
+
<div id=nav>
|
12
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
13
|
+
|
14
|
+
<ul>
|
15
|
+
<li><a href="../../index.html">Home</a>
|
16
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
17
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
18
|
+
</ul>
|
19
|
+
<ul>
|
20
|
+
<li><a href="../index.html">Language modes</a>
|
21
|
+
<li><a class=active href="#">Perl</a>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<article>
|
26
|
+
<h2>Perl mode</h2>
|
27
|
+
|
28
|
+
|
29
|
+
<div><textarea id="code" name="code">
|
30
|
+
#!/usr/bin/perl
|
31
|
+
|
32
|
+
use Something qw(func1 func2);
|
33
|
+
|
34
|
+
# strings
|
35
|
+
my $s1 = qq'single line';
|
36
|
+
our $s2 = q(multi-
|
37
|
+
line);
|
38
|
+
|
39
|
+
=item Something
|
40
|
+
Example.
|
41
|
+
=cut
|
42
|
+
|
43
|
+
my $html=<<'HTML'
|
44
|
+
<html>
|
45
|
+
<title>hi!</title>
|
46
|
+
</html>
|
47
|
+
HTML
|
48
|
+
|
49
|
+
print "first,".join(',', 'second', qq~third~);
|
50
|
+
|
51
|
+
if($s1 =~ m[(?<!\s)(l.ne)\z]o) {
|
52
|
+
$h->{$1}=$$.' predefined variables';
|
53
|
+
$s2 =~ s/\-line//ox;
|
54
|
+
$s1 =~ s[
|
55
|
+
line ]
|
56
|
+
[
|
57
|
+
block
|
58
|
+
]ox;
|
59
|
+
}
|
60
|
+
|
61
|
+
1; # numbers and comments
|
62
|
+
|
63
|
+
__END__
|
64
|
+
something...
|
65
|
+
|
66
|
+
</textarea></div>
|
67
|
+
|
68
|
+
<script>
|
69
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
70
|
+
lineNumbers: true
|
71
|
+
});
|
72
|
+
</script>
|
73
|
+
|
74
|
+
<p><strong>MIME types defined:</strong> <code>text/x-perl</code>.</p>
|
75
|
+
</article>
|