fluentd-ui 0.3.13 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fluentd-ui might be problematic. Click here for more details.
- data/ChangeLog +9 -0
- data/Gemfile.lock +47 -44
- data/README.md +4 -4
- data/app/assets/javascripts/vue/in_tail_format.js +7 -2
- data/app/assets/stylesheets/common.css.scss +16 -0
- data/app/controllers/concerns/setting_history_concern.rb +6 -0
- data/app/controllers/fluentd/settings_controller.rb +37 -8
- data/app/models/fluent_gem.rb +6 -3
- data/app/models/fluentd/agent.rb +1 -0
- data/app/models/fluentd/agent/common.rb +4 -0
- data/app/models/fluentd/agent/fluentd_gem.rb +9 -13
- data/app/models/fluentd/agent/local_common.rb +23 -0
- data/app/models/fluentd/agent/td_agent.rb +4 -0
- data/app/models/fluentd/agent/td_agent/macosx.rb +0 -4
- data/app/models/fluentd/agent/td_agent/unix.rb +0 -4
- data/app/views/fluentd/settings/edit.html.haml +1 -3
- data/app/views/fluentd/settings/histories/show.html.haml +10 -0
- data/app/views/fluentd/settings/running_backup/show.html.haml +11 -0
- data/app/views/shared/settings/_diff.html.erb +21 -0
- data/circle.yml +5 -0
- data/config/application.rb +1 -0
- data/config/locales/translation_en.yml +7 -0
- data/config/locales/translation_ja.yml +7 -0
- data/fluentd-ui.gemspec +1 -0
- data/lib/fluentd-ui.rb +5 -1
- data/lib/fluentd-ui/version.rb +1 -1
- data/spec/features/fluentd/setting/histories_spec.rb +23 -1
- data/spec/features/fluentd/setting/running_backup_spec.rb +22 -1
- data/spec/models/fluentd/agent/local_common_spec.rb +4 -2
- data/spec/models/fluentd/agent_spec.rb +1 -48
- data/spec/models/plugin_spec.rb +2 -2
- data/spec/spec_helper.rb +10 -0
- data/spec/support/fluentd_agent_common_behavior.rb +53 -0
- data/vendor/assets/javascripts/bower/.gitignore +10 -0
- data/vendor/assets/javascripts/bower/vue/.bower.json +4 -4
- data/vendor/assets/javascripts/bower/vue/bower.json +17 -0
- data/vendor/assets/javascripts/bower/vue/dist/vue.js +329 -198
- data/vendor/assets/javascripts/bower/vue/dist/vue.min.js +3 -3
- metadata +107 -291
- checksums.yaml +0 -7
- data/vendor/assets/javascripts/bower/codemirror/AUTHORS +0 -423
- data/vendor/assets/javascripts/bower/codemirror/CONTRIBUTING.md +0 -76
- data/vendor/assets/javascripts/bower/codemirror/LICENSE +0 -19
- data/vendor/assets/javascripts/bower/codemirror/README.md +0 -11
- data/vendor/assets/javascripts/bower/codemirror/addon/comment/comment.js +0 -183
- data/vendor/assets/javascripts/bower/codemirror/addon/comment/continuecomment.js +0 -85
- data/vendor/assets/javascripts/bower/codemirror/addon/dialog/dialog.css +0 -32
- data/vendor/assets/javascripts/bower/codemirror/addon/dialog/dialog.js +0 -155
- data/vendor/assets/javascripts/bower/codemirror/addon/display/fullscreen.css +0 -6
- data/vendor/assets/javascripts/bower/codemirror/addon/display/fullscreen.js +0 -41
- data/vendor/assets/javascripts/bower/codemirror/addon/display/panel.js +0 -94
- data/vendor/assets/javascripts/bower/codemirror/addon/display/placeholder.js +0 -58
- data/vendor/assets/javascripts/bower/codemirror/addon/display/rulers.js +0 -64
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/closebrackets.js +0 -159
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/closetag.js +0 -159
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/continuelist.js +0 -51
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/matchbrackets.js +0 -120
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/matchtags.js +0 -66
- data/vendor/assets/javascripts/bower/codemirror/addon/edit/trailingspace.js +0 -27
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/brace-fold.js +0 -105
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/comment-fold.js +0 -57
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldcode.js +0 -145
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldgutter.css +0 -20
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/foldgutter.js +0 -134
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/indent-fold.js +0 -44
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/markdown-fold.js +0 -49
- data/vendor/assets/javascripts/bower/codemirror/addon/fold/xml-fold.js +0 -182
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/anyword-hint.js +0 -41
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/css-hint.js +0 -56
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/html-hint.js +0 -348
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/javascript-hint.js +0 -146
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/show-hint.css +0 -38
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/show-hint.js +0 -389
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/sql-hint.js +0 -197
- data/vendor/assets/javascripts/bower/codemirror/addon/hint/xml-hint.js +0 -110
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/coffeescript-lint.js +0 -41
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/css-lint.js +0 -35
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/javascript-lint.js +0 -136
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/json-lint.js +0 -31
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/lint.css +0 -73
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/lint.js +0 -204
- data/vendor/assets/javascripts/bower/codemirror/addon/lint/yaml-lint.js +0 -28
- data/vendor/assets/javascripts/bower/codemirror/addon/merge/merge.css +0 -112
- data/vendor/assets/javascripts/bower/codemirror/addon/merge/merge.js +0 -643
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/loadmode.js +0 -64
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/multiplex.js +0 -118
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/multiplex_test.js +0 -33
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/overlay.js +0 -85
- data/vendor/assets/javascripts/bower/codemirror/addon/mode/simple.js +0 -213
- data/vendor/assets/javascripts/bower/codemirror/addon/runmode/colorize.js +0 -40
- data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode-standalone.js +0 -157
- data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode.js +0 -72
- data/vendor/assets/javascripts/bower/codemirror/addon/runmode/runmode.node.js +0 -120
- data/vendor/assets/javascripts/bower/codemirror/addon/scroll/annotatescrollbar.js +0 -76
- data/vendor/assets/javascripts/bower/codemirror/addon/scroll/scrollpastend.js +0 -46
- data/vendor/assets/javascripts/bower/codemirror/addon/scroll/simplescrollbars.css +0 -66
- data/vendor/assets/javascripts/bower/codemirror/addon/scroll/simplescrollbars.js +0 -139
- data/vendor/assets/javascripts/bower/codemirror/addon/search/match-highlighter.js +0 -128
- data/vendor/assets/javascripts/bower/codemirror/addon/search/matchesonscrollbar.css +0 -8
- data/vendor/assets/javascripts/bower/codemirror/addon/search/matchesonscrollbar.js +0 -90
- data/vendor/assets/javascripts/bower/codemirror/addon/search/search.js +0 -164
- data/vendor/assets/javascripts/bower/codemirror/addon/search/searchcursor.js +0 -189
- data/vendor/assets/javascripts/bower/codemirror/addon/selection/active-line.js +0 -71
- data/vendor/assets/javascripts/bower/codemirror/addon/selection/mark-selection.js +0 -118
- data/vendor/assets/javascripts/bower/codemirror/addon/tern/tern.css +0 -86
- data/vendor/assets/javascripts/bower/codemirror/addon/tern/tern.js +0 -670
- data/vendor/assets/javascripts/bower/codemirror/addon/tern/worker.js +0 -44
- data/vendor/assets/javascripts/bower/codemirror/addon/wrap/hardwrap.js +0 -139
- data/vendor/assets/javascripts/bower/codemirror/keymap/emacs.js +0 -411
- data/vendor/assets/javascripts/bower/codemirror/keymap/sublime.js +0 -540
- data/vendor/assets/javascripts/bower/codemirror/keymap/vim.js +0 -4901
- data/vendor/assets/javascripts/bower/codemirror/mode/apl/apl.js +0 -175
- data/vendor/assets/javascripts/bower/codemirror/mode/asterisk/asterisk.js +0 -198
- data/vendor/assets/javascripts/bower/codemirror/mode/clike/clike.js +0 -489
- data/vendor/assets/javascripts/bower/codemirror/mode/clike/scala.html +0 -767
- data/vendor/assets/javascripts/bower/codemirror/mode/clojure/clojure.js +0 -243
- data/vendor/assets/javascripts/bower/codemirror/mode/cobol/cobol.js +0 -255
- data/vendor/assets/javascripts/bower/codemirror/mode/coffeescript/coffeescript.js +0 -369
- data/vendor/assets/javascripts/bower/codemirror/mode/commonlisp/commonlisp.js +0 -122
- data/vendor/assets/javascripts/bower/codemirror/mode/css/css.js +0 -717
- data/vendor/assets/javascripts/bower/codemirror/mode/css/less.html +0 -152
- data/vendor/assets/javascripts/bower/codemirror/mode/css/less_test.js +0 -51
- data/vendor/assets/javascripts/bower/codemirror/mode/css/scss.html +0 -157
- data/vendor/assets/javascripts/bower/codemirror/mode/css/scss_test.js +0 -110
- data/vendor/assets/javascripts/bower/codemirror/mode/css/test.js +0 -135
- data/vendor/assets/javascripts/bower/codemirror/mode/cypher/cypher.js +0 -146
- data/vendor/assets/javascripts/bower/codemirror/mode/d/d.js +0 -218
- data/vendor/assets/javascripts/bower/codemirror/mode/dart/dart.js +0 -50
- data/vendor/assets/javascripts/bower/codemirror/mode/diff/diff.js +0 -47
- data/vendor/assets/javascripts/bower/codemirror/mode/django/django.js +0 -67
- data/vendor/assets/javascripts/bower/codemirror/mode/dockerfile/dockerfile.js +0 -76
- data/vendor/assets/javascripts/bower/codemirror/mode/dtd/dtd.js +0 -142
- data/vendor/assets/javascripts/bower/codemirror/mode/dylan/dylan.js +0 -299
- data/vendor/assets/javascripts/bower/codemirror/mode/ebnf/ebnf.js +0 -195
- data/vendor/assets/javascripts/bower/codemirror/mode/ecl/ecl.js +0 -207
- data/vendor/assets/javascripts/bower/codemirror/mode/eiffel/eiffel.js +0 -162
- data/vendor/assets/javascripts/bower/codemirror/mode/erlang/erlang.js +0 -622
- data/vendor/assets/javascripts/bower/codemirror/mode/fortran/fortran.js +0 -188
- data/vendor/assets/javascripts/bower/codemirror/mode/gas/gas.js +0 -345
- data/vendor/assets/javascripts/bower/codemirror/mode/gfm/gfm.js +0 -123
- data/vendor/assets/javascripts/bower/codemirror/mode/gfm/test.js +0 -213
- data/vendor/assets/javascripts/bower/codemirror/mode/gherkin/gherkin.js +0 -178
- data/vendor/assets/javascripts/bower/codemirror/mode/go/go.js +0 -184
- data/vendor/assets/javascripts/bower/codemirror/mode/groovy/groovy.js +0 -226
- data/vendor/assets/javascripts/bower/codemirror/mode/haml/haml.js +0 -159
- data/vendor/assets/javascripts/bower/codemirror/mode/haml/test.js +0 -97
- data/vendor/assets/javascripts/bower/codemirror/mode/haskell/haskell.js +0 -267
- data/vendor/assets/javascripts/bower/codemirror/mode/haxe/haxe.js +0 -518
- data/vendor/assets/javascripts/bower/codemirror/mode/htmlembedded/htmlembedded.js +0 -86
- data/vendor/assets/javascripts/bower/codemirror/mode/htmlmixed/htmlmixed.js +0 -121
- data/vendor/assets/javascripts/bower/codemirror/mode/http/http.js +0 -113
- data/vendor/assets/javascripts/bower/codemirror/mode/idl/idl.js +0 -290
- data/vendor/assets/javascripts/bower/codemirror/mode/jade/jade.js +0 -590
- data/vendor/assets/javascripts/bower/codemirror/mode/javascript/javascript.js +0 -686
- data/vendor/assets/javascripts/bower/codemirror/mode/javascript/json-ld.html +0 -72
- data/vendor/assets/javascripts/bower/codemirror/mode/javascript/test.js +0 -200
- data/vendor/assets/javascripts/bower/codemirror/mode/javascript/typescript.html +0 -61
- data/vendor/assets/javascripts/bower/codemirror/mode/jinja2/jinja2.js +0 -142
- data/vendor/assets/javascripts/bower/codemirror/mode/julia/julia.js +0 -301
- data/vendor/assets/javascripts/bower/codemirror/mode/kotlin/kotlin.js +0 -280
- data/vendor/assets/javascripts/bower/codemirror/mode/livescript/livescript.js +0 -280
- data/vendor/assets/javascripts/bower/codemirror/mode/lua/lua.js +0 -159
- data/vendor/assets/javascripts/bower/codemirror/mode/markdown/markdown.js +0 -765
- data/vendor/assets/javascripts/bower/codemirror/mode/markdown/test.js +0 -754
- data/vendor/assets/javascripts/bower/codemirror/mode/meta.js +0 -165
- data/vendor/assets/javascripts/bower/codemirror/mode/mirc/mirc.js +0 -193
- data/vendor/assets/javascripts/bower/codemirror/mode/mllike/mllike.js +0 -205
- data/vendor/assets/javascripts/bower/codemirror/mode/modelica/modelica.js +0 -245
- data/vendor/assets/javascripts/bower/codemirror/mode/nginx/nginx.js +0 -178
- data/vendor/assets/javascripts/bower/codemirror/mode/ntriples/ntriples.js +0 -186
- data/vendor/assets/javascripts/bower/codemirror/mode/octave/octave.js +0 -135
- data/vendor/assets/javascripts/bower/codemirror/mode/pascal/pascal.js +0 -109
- data/vendor/assets/javascripts/bower/codemirror/mode/pegjs/pegjs.js +0 -114
- data/vendor/assets/javascripts/bower/codemirror/mode/perl/perl.js +0 -832
- data/vendor/assets/javascripts/bower/codemirror/mode/php/php.js +0 -226
- data/vendor/assets/javascripts/bower/codemirror/mode/php/test.js +0 -154
- data/vendor/assets/javascripts/bower/codemirror/mode/pig/pig.js +0 -188
- data/vendor/assets/javascripts/bower/codemirror/mode/properties/properties.js +0 -78
- data/vendor/assets/javascripts/bower/codemirror/mode/puppet/puppet.js +0 -220
- data/vendor/assets/javascripts/bower/codemirror/mode/python/python.js +0 -359
- data/vendor/assets/javascripts/bower/codemirror/mode/q/q.js +0 -139
- data/vendor/assets/javascripts/bower/codemirror/mode/r/r.js +0 -162
- data/vendor/assets/javascripts/bower/codemirror/mode/rpm/rpm.js +0 -101
- data/vendor/assets/javascripts/bower/codemirror/mode/rst/rst.js +0 -557
- data/vendor/assets/javascripts/bower/codemirror/mode/ruby/ruby.js +0 -285
- data/vendor/assets/javascripts/bower/codemirror/mode/ruby/test.js +0 -14
- data/vendor/assets/javascripts/bower/codemirror/mode/rust/rust.js +0 -451
- data/vendor/assets/javascripts/bower/codemirror/mode/sass/sass.js +0 -327
- data/vendor/assets/javascripts/bower/codemirror/mode/scheme/scheme.js +0 -248
- data/vendor/assets/javascripts/bower/codemirror/mode/shell/shell.js +0 -139
- data/vendor/assets/javascripts/bower/codemirror/mode/shell/test.js +0 -58
- data/vendor/assets/javascripts/bower/codemirror/mode/sieve/sieve.js +0 -193
- data/vendor/assets/javascripts/bower/codemirror/mode/slim/slim.js +0 -575
- data/vendor/assets/javascripts/bower/codemirror/mode/slim/test.js +0 -96
- data/vendor/assets/javascripts/bower/codemirror/mode/smalltalk/smalltalk.js +0 -168
- data/vendor/assets/javascripts/bower/codemirror/mode/smarty/smarty.js +0 -221
- data/vendor/assets/javascripts/bower/codemirror/mode/smartymixed/smartymixed.js +0 -197
- data/vendor/assets/javascripts/bower/codemirror/mode/solr/solr.js +0 -104
- data/vendor/assets/javascripts/bower/codemirror/mode/soy/soy.js +0 -198
- data/vendor/assets/javascripts/bower/codemirror/mode/sparql/sparql.js +0 -174
- data/vendor/assets/javascripts/bower/codemirror/mode/spreadsheet/spreadsheet.js +0 -109
- data/vendor/assets/javascripts/bower/codemirror/mode/sql/sql.js +0 -391
- data/vendor/assets/javascripts/bower/codemirror/mode/stex/stex.js +0 -251
- data/vendor/assets/javascripts/bower/codemirror/mode/stex/test.js +0 -123
- data/vendor/assets/javascripts/bower/codemirror/mode/tcl/tcl.js +0 -147
- data/vendor/assets/javascripts/bower/codemirror/mode/textile/test.js +0 -417
- data/vendor/assets/javascripts/bower/codemirror/mode/textile/textile.js +0 -469
- data/vendor/assets/javascripts/bower/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
- data/vendor/assets/javascripts/bower/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -369
- data/vendor/assets/javascripts/bower/codemirror/mode/tiki/tiki.css +0 -26
- data/vendor/assets/javascripts/bower/codemirror/mode/tiki/tiki.js +0 -323
- data/vendor/assets/javascripts/bower/codemirror/mode/toml/toml.js +0 -88
- data/vendor/assets/javascripts/bower/codemirror/mode/tornado/tornado.js +0 -68
- data/vendor/assets/javascripts/bower/codemirror/mode/turtle/turtle.js +0 -162
- data/vendor/assets/javascripts/bower/codemirror/mode/vb/vb.js +0 -274
- data/vendor/assets/javascripts/bower/codemirror/mode/vbscript/vbscript.js +0 -350
- data/vendor/assets/javascripts/bower/codemirror/mode/velocity/velocity.js +0 -201
- data/vendor/assets/javascripts/bower/codemirror/mode/verilog/test.js +0 -273
- data/vendor/assets/javascripts/bower/codemirror/mode/verilog/verilog.js +0 -364
- data/vendor/assets/javascripts/bower/codemirror/mode/xml/test.js +0 -51
- data/vendor/assets/javascripts/bower/codemirror/mode/xml/xml.js +0 -384
- data/vendor/assets/javascripts/bower/codemirror/mode/xquery/test.js +0 -67
- data/vendor/assets/javascripts/bower/codemirror/mode/xquery/xquery.js +0 -447
- data/vendor/assets/javascripts/bower/codemirror/mode/yaml/yaml.js +0 -117
- data/vendor/assets/javascripts/bower/codemirror/mode/z80/z80.js +0 -100
- data/vendor/assets/javascripts/bower/vue/LICENSE +0 -21
- data/vendor/assets/javascripts/bower/vue/src/api/child.js +0 -53
- data/vendor/assets/javascripts/bower/vue/src/api/data.js +0 -161
- data/vendor/assets/javascripts/bower/vue/src/api/dom.js +0 -211
- data/vendor/assets/javascripts/bower/vue/src/api/events.js +0 -176
- data/vendor/assets/javascripts/bower/vue/src/api/global.js +0 -146
- data/vendor/assets/javascripts/bower/vue/src/api/lifecycle.js +0 -72
- data/vendor/assets/javascripts/bower/vue/src/batcher.js +0 -65
- data/vendor/assets/javascripts/bower/vue/src/cache.js +0 -112
- data/vendor/assets/javascripts/bower/vue/src/compiler/compile.js +0 -549
- data/vendor/assets/javascripts/bower/vue/src/compiler/transclude.js +0 -146
- data/vendor/assets/javascripts/bower/vue/src/config.js +0 -79
- data/vendor/assets/javascripts/bower/vue/src/directive.js +0 -219
- data/vendor/assets/javascripts/bower/vue/src/directives/attr.js +0 -32
- data/vendor/assets/javascripts/bower/vue/src/directives/class.js +0 -18
- data/vendor/assets/javascripts/bower/vue/src/directives/cloak.js +0 -12
- data/vendor/assets/javascripts/bower/vue/src/directives/component.js +0 -196
- data/vendor/assets/javascripts/bower/vue/src/directives/el.js +0 -13
- data/vendor/assets/javascripts/bower/vue/src/directives/html.js +0 -38
- data/vendor/assets/javascripts/bower/vue/src/directives/if.js +0 -87
- data/vendor/assets/javascripts/bower/vue/src/directives/index.js +0 -22
- data/vendor/assets/javascripts/bower/vue/src/directives/model/checkbox.js +0 -25
- data/vendor/assets/javascripts/bower/vue/src/directives/model/default.js +0 -123
- data/vendor/assets/javascripts/bower/vue/src/directives/model/index.js +0 -56
- data/vendor/assets/javascripts/bower/vue/src/directives/model/radio.js +0 -26
- data/vendor/assets/javascripts/bower/vue/src/directives/model/select.js +0 -166
- data/vendor/assets/javascripts/bower/vue/src/directives/on.js +0 -59
- data/vendor/assets/javascripts/bower/vue/src/directives/partial.js +0 -44
- data/vendor/assets/javascripts/bower/vue/src/directives/ref.js +0 -24
- data/vendor/assets/javascripts/bower/vue/src/directives/repeat.js +0 -503
- data/vendor/assets/javascripts/bower/vue/src/directives/show.js +0 -8
- data/vendor/assets/javascripts/bower/vue/src/directives/style.js +0 -58
- data/vendor/assets/javascripts/bower/vue/src/directives/text.js +0 -15
- data/vendor/assets/javascripts/bower/vue/src/directives/transition.js +0 -12
- data/vendor/assets/javascripts/bower/vue/src/directives/with.js +0 -47
- data/vendor/assets/javascripts/bower/vue/src/filters/array-filters.js +0 -87
- data/vendor/assets/javascripts/bower/vue/src/filters/index.js +0 -135
- data/vendor/assets/javascripts/bower/vue/src/instance/compile.js +0 -179
- data/vendor/assets/javascripts/bower/vue/src/instance/events.js +0 -122
- data/vendor/assets/javascripts/bower/vue/src/instance/init.js +0 -76
- data/vendor/assets/javascripts/bower/vue/src/instance/scope.js +0 -217
- data/vendor/assets/javascripts/bower/vue/src/observer/array.js +0 -90
- data/vendor/assets/javascripts/bower/vue/src/observer/dep.js +0 -50
- data/vendor/assets/javascripts/bower/vue/src/observer/index.js +0 -235
- data/vendor/assets/javascripts/bower/vue/src/observer/object.js +0 -66
- data/vendor/assets/javascripts/bower/vue/src/parsers/directive.js +0 -159
- data/vendor/assets/javascripts/bower/vue/src/parsers/expression.js +0 -226
- data/vendor/assets/javascripts/bower/vue/src/parsers/path.js +0 -300
- data/vendor/assets/javascripts/bower/vue/src/parsers/template.js +0 -248
- data/vendor/assets/javascripts/bower/vue/src/parsers/text.js +0 -178
- data/vendor/assets/javascripts/bower/vue/src/transition/css.js +0 -189
- data/vendor/assets/javascripts/bower/vue/src/transition/index.js +0 -151
- data/vendor/assets/javascripts/bower/vue/src/transition/js.js +0 -43
- data/vendor/assets/javascripts/bower/vue/src/util/debug.js +0 -50
- data/vendor/assets/javascripts/bower/vue/src/util/dom.js +0 -197
- data/vendor/assets/javascripts/bower/vue/src/util/env.js +0 -74
- data/vendor/assets/javascripts/bower/vue/src/util/filter.js +0 -72
- data/vendor/assets/javascripts/bower/vue/src/util/index.js +0 -8
- data/vendor/assets/javascripts/bower/vue/src/util/lang.js +0 -175
- data/vendor/assets/javascripts/bower/vue/src/util/merge-option.js +0 -255
- data/vendor/assets/javascripts/bower/vue/src/vue.js +0 -84
- data/vendor/assets/javascripts/bower/vue/src/watcher.js +0 -240
@@ -1,88 +0,0 @@
|
|
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("toml", function () {
|
15
|
-
return {
|
16
|
-
startState: function () {
|
17
|
-
return {
|
18
|
-
inString: false,
|
19
|
-
stringType: "",
|
20
|
-
lhs: true,
|
21
|
-
inArray: 0
|
22
|
-
};
|
23
|
-
},
|
24
|
-
token: function (stream, state) {
|
25
|
-
//check for state changes
|
26
|
-
if (!state.inString && ((stream.peek() == '"') || (stream.peek() == "'"))) {
|
27
|
-
state.stringType = stream.peek();
|
28
|
-
stream.next(); // Skip quote
|
29
|
-
state.inString = true; // Update state
|
30
|
-
}
|
31
|
-
if (stream.sol() && state.inArray === 0) {
|
32
|
-
state.lhs = true;
|
33
|
-
}
|
34
|
-
//return state
|
35
|
-
if (state.inString) {
|
36
|
-
while (state.inString && !stream.eol()) {
|
37
|
-
if (stream.peek() === state.stringType) {
|
38
|
-
stream.next(); // Skip quote
|
39
|
-
state.inString = false; // Clear flag
|
40
|
-
} else if (stream.peek() === '\\') {
|
41
|
-
stream.next();
|
42
|
-
stream.next();
|
43
|
-
} else {
|
44
|
-
stream.match(/^.[^\\\"\']*/);
|
45
|
-
}
|
46
|
-
}
|
47
|
-
return state.lhs ? "property string" : "string"; // Token style
|
48
|
-
} else if (state.inArray && stream.peek() === ']') {
|
49
|
-
stream.next();
|
50
|
-
state.inArray--;
|
51
|
-
return 'bracket';
|
52
|
-
} else if (state.lhs && stream.peek() === '[' && stream.skipTo(']')) {
|
53
|
-
stream.next();//skip closing ]
|
54
|
-
// array of objects has an extra open & close []
|
55
|
-
if (stream.peek() === ']') stream.next();
|
56
|
-
return "atom";
|
57
|
-
} else if (stream.peek() === "#") {
|
58
|
-
stream.skipToEnd();
|
59
|
-
return "comment";
|
60
|
-
} else if (stream.eatSpace()) {
|
61
|
-
return null;
|
62
|
-
} else if (state.lhs && stream.eatWhile(function (c) { return c != '=' && c != ' '; })) {
|
63
|
-
return "property";
|
64
|
-
} else if (state.lhs && stream.peek() === "=") {
|
65
|
-
stream.next();
|
66
|
-
state.lhs = false;
|
67
|
-
return null;
|
68
|
-
} else if (!state.lhs && stream.match(/^\d\d\d\d[\d\-\:\.T]*Z/)) {
|
69
|
-
return 'atom'; //date
|
70
|
-
} else if (!state.lhs && (stream.match('true') || stream.match('false'))) {
|
71
|
-
return 'atom';
|
72
|
-
} else if (!state.lhs && stream.peek() === '[') {
|
73
|
-
state.inArray++;
|
74
|
-
stream.next();
|
75
|
-
return 'bracket';
|
76
|
-
} else if (!state.lhs && stream.match(/^\-?\d+(?:\.\d+)?/)) {
|
77
|
-
return 'number';
|
78
|
-
} else if (!stream.eatSpace()) {
|
79
|
-
stream.next();
|
80
|
-
}
|
81
|
-
return null;
|
82
|
-
}
|
83
|
-
};
|
84
|
-
});
|
85
|
-
|
86
|
-
CodeMirror.defineMIME('text/x-toml', 'toml');
|
87
|
-
|
88
|
-
});
|
@@ -1,68 +0,0 @@
|
|
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("../htmlmixed/htmlmixed"),
|
7
|
-
require("../../addon/mode/overlay"));
|
8
|
-
else if (typeof define == "function" && define.amd) // AMD
|
9
|
-
define(["../../lib/codemirror", "../htmlmixed/htmlmixed",
|
10
|
-
"../../addon/mode/overlay"], mod);
|
11
|
-
else // Plain browser env
|
12
|
-
mod(CodeMirror);
|
13
|
-
})(function(CodeMirror) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
CodeMirror.defineMode("tornado:inner", function() {
|
17
|
-
var keywords = ["and","as","assert","autoescape","block","break","class","comment","context",
|
18
|
-
"continue","datetime","def","del","elif","else","end","escape","except",
|
19
|
-
"exec","extends","false","finally","for","from","global","if","import","in",
|
20
|
-
"include","is","json_encode","lambda","length","linkify","load","module",
|
21
|
-
"none","not","or","pass","print","put","raise","raw","return","self","set",
|
22
|
-
"squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];
|
23
|
-
keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b");
|
24
|
-
|
25
|
-
function tokenBase (stream, state) {
|
26
|
-
stream.eatWhile(/[^\{]/);
|
27
|
-
var ch = stream.next();
|
28
|
-
if (ch == "{") {
|
29
|
-
if (ch = stream.eat(/\{|%|#/)) {
|
30
|
-
state.tokenize = inTag(ch);
|
31
|
-
return "tag";
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
35
|
-
function inTag (close) {
|
36
|
-
if (close == "{") {
|
37
|
-
close = "}";
|
38
|
-
}
|
39
|
-
return function (stream, state) {
|
40
|
-
var ch = stream.next();
|
41
|
-
if ((ch == close) && stream.eat("}")) {
|
42
|
-
state.tokenize = tokenBase;
|
43
|
-
return "tag";
|
44
|
-
}
|
45
|
-
if (stream.match(keywords)) {
|
46
|
-
return "keyword";
|
47
|
-
}
|
48
|
-
return close == "#" ? "comment" : "string";
|
49
|
-
};
|
50
|
-
}
|
51
|
-
return {
|
52
|
-
startState: function () {
|
53
|
-
return {tokenize: tokenBase};
|
54
|
-
},
|
55
|
-
token: function (stream, state) {
|
56
|
-
return state.tokenize(stream, state);
|
57
|
-
}
|
58
|
-
};
|
59
|
-
});
|
60
|
-
|
61
|
-
CodeMirror.defineMode("tornado", function(config) {
|
62
|
-
var htmlBase = CodeMirror.getMode(config, "text/html");
|
63
|
-
var tornadoInner = CodeMirror.getMode(config, "tornado:inner");
|
64
|
-
return CodeMirror.overlayMode(htmlBase, tornadoInner);
|
65
|
-
});
|
66
|
-
|
67
|
-
CodeMirror.defineMIME("text/x-tornado", "tornado");
|
68
|
-
});
|
@@ -1,162 +0,0 @@
|
|
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("turtle", function(config) {
|
15
|
-
var indentUnit = config.indentUnit;
|
16
|
-
var curPunc;
|
17
|
-
|
18
|
-
function wordRegexp(words) {
|
19
|
-
return new RegExp("^(?:" + words.join("|") + ")$", "i");
|
20
|
-
}
|
21
|
-
var ops = wordRegexp([]);
|
22
|
-
var keywords = wordRegexp(["@prefix", "@base", "a"]);
|
23
|
-
var operatorChars = /[*+\-<>=&|]/;
|
24
|
-
|
25
|
-
function tokenBase(stream, state) {
|
26
|
-
var ch = stream.next();
|
27
|
-
curPunc = null;
|
28
|
-
if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) {
|
29
|
-
stream.match(/^[^\s\u00a0>]*>?/);
|
30
|
-
return "atom";
|
31
|
-
}
|
32
|
-
else if (ch == "\"" || ch == "'") {
|
33
|
-
state.tokenize = tokenLiteral(ch);
|
34
|
-
return state.tokenize(stream, state);
|
35
|
-
}
|
36
|
-
else if (/[{}\(\),\.;\[\]]/.test(ch)) {
|
37
|
-
curPunc = ch;
|
38
|
-
return null;
|
39
|
-
}
|
40
|
-
else if (ch == "#") {
|
41
|
-
stream.skipToEnd();
|
42
|
-
return "comment";
|
43
|
-
}
|
44
|
-
else if (operatorChars.test(ch)) {
|
45
|
-
stream.eatWhile(operatorChars);
|
46
|
-
return null;
|
47
|
-
}
|
48
|
-
else if (ch == ":") {
|
49
|
-
return "operator";
|
50
|
-
} else {
|
51
|
-
stream.eatWhile(/[_\w\d]/);
|
52
|
-
if(stream.peek() == ":") {
|
53
|
-
return "variable-3";
|
54
|
-
} else {
|
55
|
-
var word = stream.current();
|
56
|
-
|
57
|
-
if(keywords.test(word)) {
|
58
|
-
return "meta";
|
59
|
-
}
|
60
|
-
|
61
|
-
if(ch >= "A" && ch <= "Z") {
|
62
|
-
return "comment";
|
63
|
-
} else {
|
64
|
-
return "keyword";
|
65
|
-
}
|
66
|
-
}
|
67
|
-
var word = stream.current();
|
68
|
-
if (ops.test(word))
|
69
|
-
return null;
|
70
|
-
else if (keywords.test(word))
|
71
|
-
return "meta";
|
72
|
-
else
|
73
|
-
return "variable";
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
function tokenLiteral(quote) {
|
78
|
-
return function(stream, state) {
|
79
|
-
var escaped = false, ch;
|
80
|
-
while ((ch = stream.next()) != null) {
|
81
|
-
if (ch == quote && !escaped) {
|
82
|
-
state.tokenize = tokenBase;
|
83
|
-
break;
|
84
|
-
}
|
85
|
-
escaped = !escaped && ch == "\\";
|
86
|
-
}
|
87
|
-
return "string";
|
88
|
-
};
|
89
|
-
}
|
90
|
-
|
91
|
-
function pushContext(state, type, col) {
|
92
|
-
state.context = {prev: state.context, indent: state.indent, col: col, type: type};
|
93
|
-
}
|
94
|
-
function popContext(state) {
|
95
|
-
state.indent = state.context.indent;
|
96
|
-
state.context = state.context.prev;
|
97
|
-
}
|
98
|
-
|
99
|
-
return {
|
100
|
-
startState: function() {
|
101
|
-
return {tokenize: tokenBase,
|
102
|
-
context: null,
|
103
|
-
indent: 0,
|
104
|
-
col: 0};
|
105
|
-
},
|
106
|
-
|
107
|
-
token: function(stream, state) {
|
108
|
-
if (stream.sol()) {
|
109
|
-
if (state.context && state.context.align == null) state.context.align = false;
|
110
|
-
state.indent = stream.indentation();
|
111
|
-
}
|
112
|
-
if (stream.eatSpace()) return null;
|
113
|
-
var style = state.tokenize(stream, state);
|
114
|
-
|
115
|
-
if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") {
|
116
|
-
state.context.align = true;
|
117
|
-
}
|
118
|
-
|
119
|
-
if (curPunc == "(") pushContext(state, ")", stream.column());
|
120
|
-
else if (curPunc == "[") pushContext(state, "]", stream.column());
|
121
|
-
else if (curPunc == "{") pushContext(state, "}", stream.column());
|
122
|
-
else if (/[\]\}\)]/.test(curPunc)) {
|
123
|
-
while (state.context && state.context.type == "pattern") popContext(state);
|
124
|
-
if (state.context && curPunc == state.context.type) popContext(state);
|
125
|
-
}
|
126
|
-
else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state);
|
127
|
-
else if (/atom|string|variable/.test(style) && state.context) {
|
128
|
-
if (/[\}\]]/.test(state.context.type))
|
129
|
-
pushContext(state, "pattern", stream.column());
|
130
|
-
else if (state.context.type == "pattern" && !state.context.align) {
|
131
|
-
state.context.align = true;
|
132
|
-
state.context.col = stream.column();
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
return style;
|
137
|
-
},
|
138
|
-
|
139
|
-
indent: function(state, textAfter) {
|
140
|
-
var firstChar = textAfter && textAfter.charAt(0);
|
141
|
-
var context = state.context;
|
142
|
-
if (/[\]\}]/.test(firstChar))
|
143
|
-
while (context && context.type == "pattern") context = context.prev;
|
144
|
-
|
145
|
-
var closing = context && firstChar == context.type;
|
146
|
-
if (!context)
|
147
|
-
return 0;
|
148
|
-
else if (context.type == "pattern")
|
149
|
-
return context.col;
|
150
|
-
else if (context.align)
|
151
|
-
return context.col + (closing ? 0 : 1);
|
152
|
-
else
|
153
|
-
return context.indent + (closing ? 0 : indentUnit);
|
154
|
-
},
|
155
|
-
|
156
|
-
lineComment: "#"
|
157
|
-
};
|
158
|
-
});
|
159
|
-
|
160
|
-
CodeMirror.defineMIME("text/turtle", "turtle");
|
161
|
-
|
162
|
-
});
|
@@ -1,274 +0,0 @@
|
|
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("vb", function(conf, parserConf) {
|
15
|
-
var ERRORCLASS = 'error';
|
16
|
-
|
17
|
-
function wordRegexp(words) {
|
18
|
-
return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
|
19
|
-
}
|
20
|
-
|
21
|
-
var singleOperators = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]");
|
22
|
-
var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]');
|
23
|
-
var doubleOperators = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))");
|
24
|
-
var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))");
|
25
|
-
var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");
|
26
|
-
var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*");
|
27
|
-
|
28
|
-
var openingKeywords = ['class','module', 'sub','enum','select','while','if','function', 'get','set','property', 'try'];
|
29
|
-
var middleKeywords = ['else','elseif','case', 'catch'];
|
30
|
-
var endKeywords = ['next','loop'];
|
31
|
-
|
32
|
-
var wordOperators = wordRegexp(['and', 'or', 'not', 'xor', 'in']);
|
33
|
-
var commonkeywords = ['as', 'dim', 'break', 'continue','optional', 'then', 'until',
|
34
|
-
'goto', 'byval','byref','new','handles','property', 'return',
|
35
|
-
'const','private', 'protected', 'friend', 'public', 'shared', 'static', 'true','false'];
|
36
|
-
var commontypes = ['integer','string','double','decimal','boolean','short','char', 'float','single'];
|
37
|
-
|
38
|
-
var keywords = wordRegexp(commonkeywords);
|
39
|
-
var types = wordRegexp(commontypes);
|
40
|
-
var stringPrefixes = '"';
|
41
|
-
|
42
|
-
var opening = wordRegexp(openingKeywords);
|
43
|
-
var middle = wordRegexp(middleKeywords);
|
44
|
-
var closing = wordRegexp(endKeywords);
|
45
|
-
var doubleClosing = wordRegexp(['end']);
|
46
|
-
var doOpening = wordRegexp(['do']);
|
47
|
-
|
48
|
-
var indentInfo = null;
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
function indent(_stream, state) {
|
54
|
-
state.currentIndent++;
|
55
|
-
}
|
56
|
-
|
57
|
-
function dedent(_stream, state) {
|
58
|
-
state.currentIndent--;
|
59
|
-
}
|
60
|
-
// tokenizers
|
61
|
-
function tokenBase(stream, state) {
|
62
|
-
if (stream.eatSpace()) {
|
63
|
-
return null;
|
64
|
-
}
|
65
|
-
|
66
|
-
var ch = stream.peek();
|
67
|
-
|
68
|
-
// Handle Comments
|
69
|
-
if (ch === "'") {
|
70
|
-
stream.skipToEnd();
|
71
|
-
return 'comment';
|
72
|
-
}
|
73
|
-
|
74
|
-
|
75
|
-
// Handle Number Literals
|
76
|
-
if (stream.match(/^((&H)|(&O))?[0-9\.a-f]/i, false)) {
|
77
|
-
var floatLiteral = false;
|
78
|
-
// Floats
|
79
|
-
if (stream.match(/^\d*\.\d+F?/i)) { floatLiteral = true; }
|
80
|
-
else if (stream.match(/^\d+\.\d*F?/)) { floatLiteral = true; }
|
81
|
-
else if (stream.match(/^\.\d+F?/)) { floatLiteral = true; }
|
82
|
-
|
83
|
-
if (floatLiteral) {
|
84
|
-
// Float literals may be "imaginary"
|
85
|
-
stream.eat(/J/i);
|
86
|
-
return 'number';
|
87
|
-
}
|
88
|
-
// Integers
|
89
|
-
var intLiteral = false;
|
90
|
-
// Hex
|
91
|
-
if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; }
|
92
|
-
// Octal
|
93
|
-
else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; }
|
94
|
-
// Decimal
|
95
|
-
else if (stream.match(/^[1-9]\d*F?/)) {
|
96
|
-
// Decimal literals may be "imaginary"
|
97
|
-
stream.eat(/J/i);
|
98
|
-
// TODO - Can you have imaginary longs?
|
99
|
-
intLiteral = true;
|
100
|
-
}
|
101
|
-
// Zero by itself with no other piece of number.
|
102
|
-
else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; }
|
103
|
-
if (intLiteral) {
|
104
|
-
// Integer literals may be "long"
|
105
|
-
stream.eat(/L/i);
|
106
|
-
return 'number';
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
// Handle Strings
|
111
|
-
if (stream.match(stringPrefixes)) {
|
112
|
-
state.tokenize = tokenStringFactory(stream.current());
|
113
|
-
return state.tokenize(stream, state);
|
114
|
-
}
|
115
|
-
|
116
|
-
// Handle operators and Delimiters
|
117
|
-
if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) {
|
118
|
-
return null;
|
119
|
-
}
|
120
|
-
if (stream.match(doubleOperators)
|
121
|
-
|| stream.match(singleOperators)
|
122
|
-
|| stream.match(wordOperators)) {
|
123
|
-
return 'operator';
|
124
|
-
}
|
125
|
-
if (stream.match(singleDelimiters)) {
|
126
|
-
return null;
|
127
|
-
}
|
128
|
-
if (stream.match(doOpening)) {
|
129
|
-
indent(stream,state);
|
130
|
-
state.doInCurrentLine = true;
|
131
|
-
return 'keyword';
|
132
|
-
}
|
133
|
-
if (stream.match(opening)) {
|
134
|
-
if (! state.doInCurrentLine)
|
135
|
-
indent(stream,state);
|
136
|
-
else
|
137
|
-
state.doInCurrentLine = false;
|
138
|
-
return 'keyword';
|
139
|
-
}
|
140
|
-
if (stream.match(middle)) {
|
141
|
-
return 'keyword';
|
142
|
-
}
|
143
|
-
|
144
|
-
if (stream.match(doubleClosing)) {
|
145
|
-
dedent(stream,state);
|
146
|
-
dedent(stream,state);
|
147
|
-
return 'keyword';
|
148
|
-
}
|
149
|
-
if (stream.match(closing)) {
|
150
|
-
dedent(stream,state);
|
151
|
-
return 'keyword';
|
152
|
-
}
|
153
|
-
|
154
|
-
if (stream.match(types)) {
|
155
|
-
return 'keyword';
|
156
|
-
}
|
157
|
-
|
158
|
-
if (stream.match(keywords)) {
|
159
|
-
return 'keyword';
|
160
|
-
}
|
161
|
-
|
162
|
-
if (stream.match(identifiers)) {
|
163
|
-
return 'variable';
|
164
|
-
}
|
165
|
-
|
166
|
-
// Handle non-detected items
|
167
|
-
stream.next();
|
168
|
-
return ERRORCLASS;
|
169
|
-
}
|
170
|
-
|
171
|
-
function tokenStringFactory(delimiter) {
|
172
|
-
var singleline = delimiter.length == 1;
|
173
|
-
var OUTCLASS = 'string';
|
174
|
-
|
175
|
-
return function(stream, state) {
|
176
|
-
while (!stream.eol()) {
|
177
|
-
stream.eatWhile(/[^'"]/);
|
178
|
-
if (stream.match(delimiter)) {
|
179
|
-
state.tokenize = tokenBase;
|
180
|
-
return OUTCLASS;
|
181
|
-
} else {
|
182
|
-
stream.eat(/['"]/);
|
183
|
-
}
|
184
|
-
}
|
185
|
-
if (singleline) {
|
186
|
-
if (parserConf.singleLineStringErrors) {
|
187
|
-
return ERRORCLASS;
|
188
|
-
} else {
|
189
|
-
state.tokenize = tokenBase;
|
190
|
-
}
|
191
|
-
}
|
192
|
-
return OUTCLASS;
|
193
|
-
};
|
194
|
-
}
|
195
|
-
|
196
|
-
|
197
|
-
function tokenLexer(stream, state) {
|
198
|
-
var style = state.tokenize(stream, state);
|
199
|
-
var current = stream.current();
|
200
|
-
|
201
|
-
// Handle '.' connected identifiers
|
202
|
-
if (current === '.') {
|
203
|
-
style = state.tokenize(stream, state);
|
204
|
-
current = stream.current();
|
205
|
-
if (style === 'variable') {
|
206
|
-
return 'variable';
|
207
|
-
} else {
|
208
|
-
return ERRORCLASS;
|
209
|
-
}
|
210
|
-
}
|
211
|
-
|
212
|
-
|
213
|
-
var delimiter_index = '[({'.indexOf(current);
|
214
|
-
if (delimiter_index !== -1) {
|
215
|
-
indent(stream, state );
|
216
|
-
}
|
217
|
-
if (indentInfo === 'dedent') {
|
218
|
-
if (dedent(stream, state)) {
|
219
|
-
return ERRORCLASS;
|
220
|
-
}
|
221
|
-
}
|
222
|
-
delimiter_index = '])}'.indexOf(current);
|
223
|
-
if (delimiter_index !== -1) {
|
224
|
-
if (dedent(stream, state)) {
|
225
|
-
return ERRORCLASS;
|
226
|
-
}
|
227
|
-
}
|
228
|
-
|
229
|
-
return style;
|
230
|
-
}
|
231
|
-
|
232
|
-
var external = {
|
233
|
-
electricChars:"dDpPtTfFeE ",
|
234
|
-
startState: function() {
|
235
|
-
return {
|
236
|
-
tokenize: tokenBase,
|
237
|
-
lastToken: null,
|
238
|
-
currentIndent: 0,
|
239
|
-
nextLineIndent: 0,
|
240
|
-
doInCurrentLine: false
|
241
|
-
|
242
|
-
|
243
|
-
};
|
244
|
-
},
|
245
|
-
|
246
|
-
token: function(stream, state) {
|
247
|
-
if (stream.sol()) {
|
248
|
-
state.currentIndent += state.nextLineIndent;
|
249
|
-
state.nextLineIndent = 0;
|
250
|
-
state.doInCurrentLine = 0;
|
251
|
-
}
|
252
|
-
var style = tokenLexer(stream, state);
|
253
|
-
|
254
|
-
state.lastToken = {style:style, content: stream.current()};
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
return style;
|
259
|
-
},
|
260
|
-
|
261
|
-
indent: function(state, textAfter) {
|
262
|
-
var trueText = textAfter.replace(/^\s+|\s+$/g, '') ;
|
263
|
-
if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return conf.indentUnit*(state.currentIndent-1);
|
264
|
-
if(state.currentIndent < 0) return 0;
|
265
|
-
return state.currentIndent * conf.indentUnit;
|
266
|
-
}
|
267
|
-
|
268
|
-
};
|
269
|
-
return external;
|
270
|
-
});
|
271
|
-
|
272
|
-
CodeMirror.defineMIME("text/x-vb", "vb");
|
273
|
-
|
274
|
-
});
|