ll-plus 2.10.24 → 2.10.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/theme-chalk/code-editor-vue3/addon/comment/comment.js +211 -0
- package/theme-chalk/code-editor-vue3/addon/comment/continuecomment.js +114 -0
- package/theme-chalk/code-editor-vue3/addon/dialog/dialog.css +32 -0
- package/theme-chalk/code-editor-vue3/addon/dialog/dialog.js +163 -0
- package/theme-chalk/code-editor-vue3/addon/display/autorefresh.js +47 -0
- package/theme-chalk/code-editor-vue3/addon/display/fullscreen.css +6 -0
- package/theme-chalk/code-editor-vue3/addon/display/fullscreen.js +41 -0
- package/theme-chalk/code-editor-vue3/addon/display/panel.js +133 -0
- package/theme-chalk/code-editor-vue3/addon/display/placeholder.js +78 -0
- package/theme-chalk/code-editor-vue3/addon/display/rulers.js +51 -0
- package/theme-chalk/code-editor-vue3/addon/edit/closebrackets.js +201 -0
- package/theme-chalk/code-editor-vue3/addon/edit/closetag.js +185 -0
- package/theme-chalk/code-editor-vue3/addon/edit/continuelist.js +101 -0
- package/theme-chalk/code-editor-vue3/addon/edit/matchbrackets.js +160 -0
- package/theme-chalk/code-editor-vue3/addon/edit/matchtags.js +66 -0
- package/theme-chalk/code-editor-vue3/addon/edit/trailingspace.js +27 -0
- package/theme-chalk/code-editor-vue3/addon/fold/brace-fold.js +119 -0
- package/theme-chalk/code-editor-vue3/addon/fold/comment-fold.js +59 -0
- package/theme-chalk/code-editor-vue3/addon/fold/foldcode.js +159 -0
- package/theme-chalk/code-editor-vue3/addon/fold/foldgutter.css +20 -0
- package/theme-chalk/code-editor-vue3/addon/fold/foldgutter.js +169 -0
- package/theme-chalk/code-editor-vue3/addon/fold/indent-fold.js +48 -0
- package/theme-chalk/code-editor-vue3/addon/fold/markdown-fold.js +49 -0
- package/theme-chalk/code-editor-vue3/addon/fold/xml-fold.js +184 -0
- package/theme-chalk/code-editor-vue3/addon/hint/anyword-hint.js +41 -0
- package/theme-chalk/code-editor-vue3/addon/hint/css-hint.js +66 -0
- package/theme-chalk/code-editor-vue3/addon/hint/html-hint.js +351 -0
- package/theme-chalk/code-editor-vue3/addon/hint/javascript-hint.js +162 -0
- package/theme-chalk/code-editor-vue3/addon/hint/show-hint.css +37 -0
- package/theme-chalk/code-editor-vue3/addon/hint/show-hint.js +523 -0
- package/theme-chalk/code-editor-vue3/addon/hint/sql-hint.js +304 -0
- package/theme-chalk/code-editor-vue3/addon/hint/xml-hint.js +132 -0
- package/theme-chalk/code-editor-vue3/addon/lint/coffeescript-lint.js +47 -0
- package/theme-chalk/code-editor-vue3/addon/lint/css-lint.js +40 -0
- package/theme-chalk/code-editor-vue3/addon/lint/html-lint.js +59 -0
- package/theme-chalk/code-editor-vue3/addon/lint/javascript-lint.js +65 -0
- package/theme-chalk/code-editor-vue3/addon/lint/json-lint.js +40 -0
- package/theme-chalk/code-editor-vue3/addon/lint/lint.css +79 -0
- package/theme-chalk/code-editor-vue3/addon/lint/lint.js +288 -0
- package/theme-chalk/code-editor-vue3/addon/lint/yaml-lint.js +41 -0
- package/theme-chalk/code-editor-vue3/addon/merge/merge.css +119 -0
- package/theme-chalk/code-editor-vue3/addon/merge/merge.js +1018 -0
- package/theme-chalk/code-editor-vue3/addon/mode/loadmode.js +66 -0
- package/theme-chalk/code-editor-vue3/addon/mode/multiplex.js +136 -0
- package/theme-chalk/code-editor-vue3/addon/mode/multiplex_test.js +49 -0
- package/theme-chalk/code-editor-vue3/addon/mode/overlay.js +90 -0
- package/theme-chalk/code-editor-vue3/addon/mode/simple.js +216 -0
- package/theme-chalk/code-editor-vue3/addon/runmode/colorize.js +40 -0
- package/theme-chalk/code-editor-vue3/addon/runmode/runmode-standalone.js +334 -0
- package/theme-chalk/code-editor-vue3/addon/runmode/runmode.js +76 -0
- package/theme-chalk/code-editor-vue3/addon/runmode/runmode.node.js +329 -0
- package/theme-chalk/code-editor-vue3/addon/scroll/annotatescrollbar.js +128 -0
- package/theme-chalk/code-editor-vue3/addon/scroll/scrollpastend.js +48 -0
- package/theme-chalk/code-editor-vue3/addon/scroll/simplescrollbars.css +66 -0
- package/theme-chalk/code-editor-vue3/addon/scroll/simplescrollbars.js +152 -0
- package/theme-chalk/code-editor-vue3/addon/search/jump-to-line.js +53 -0
- package/theme-chalk/code-editor-vue3/addon/search/match-highlighter.js +167 -0
- package/theme-chalk/code-editor-vue3/addon/search/matchesonscrollbar.css +8 -0
- package/theme-chalk/code-editor-vue3/addon/search/matchesonscrollbar.js +97 -0
- package/theme-chalk/code-editor-vue3/addon/search/search.js +295 -0
- package/theme-chalk/code-editor-vue3/addon/search/searchcursor.js +305 -0
- package/theme-chalk/code-editor-vue3/addon/selection/active-line.js +72 -0
- package/theme-chalk/code-editor-vue3/addon/selection/mark-selection.js +119 -0
- package/theme-chalk/code-editor-vue3/addon/selection/selection-pointer.js +98 -0
- package/theme-chalk/code-editor-vue3/addon/tern/tern.css +87 -0
- package/theme-chalk/code-editor-vue3/addon/tern/tern.js +756 -0
- package/theme-chalk/code-editor-vue3/addon/tern/worker.js +44 -0
- package/theme-chalk/code-editor-vue3/addon/wrap/hardwrap.js +160 -0
- package/theme-chalk/code-editor-vue3/lib/codemirror.css +344 -0
- package/theme-chalk/code-editor-vue3/lib/codemirror.js +9884 -0
- package/theme-chalk/code-editor-vue3/mode/apl/apl.js +174 -0
- package/theme-chalk/code-editor-vue3/mode/asciiarmor/asciiarmor.js +74 -0
- package/theme-chalk/code-editor-vue3/mode/asn.1/asn.1.js +204 -0
- package/theme-chalk/code-editor-vue3/mode/asterisk/asterisk.js +220 -0
- package/theme-chalk/code-editor-vue3/mode/brainfuck/brainfuck.js +85 -0
- package/theme-chalk/code-editor-vue3/mode/clike/clike.js +942 -0
- package/theme-chalk/code-editor-vue3/mode/clojure/clojure.js +293 -0
- package/theme-chalk/code-editor-vue3/mode/cmake/cmake.js +97 -0
- package/theme-chalk/code-editor-vue3/mode/cobol/cobol.js +255 -0
- package/theme-chalk/code-editor-vue3/mode/coffeescript/coffeescript.js +359 -0
- package/theme-chalk/code-editor-vue3/mode/commonlisp/commonlisp.js +125 -0
- package/theme-chalk/code-editor-vue3/mode/crystal/crystal.js +433 -0
- package/theme-chalk/code-editor-vue3/mode/cypher/cypher.js +152 -0
- package/theme-chalk/code-editor-vue3/mode/d/d.js +223 -0
- package/theme-chalk/code-editor-vue3/mode/dart/dart.js +168 -0
- package/theme-chalk/code-editor-vue3/mode/diff/diff.js +47 -0
- package/theme-chalk/code-editor-vue3/mode/django/django.js +356 -0
- package/theme-chalk/code-editor-vue3/mode/dockerfile/dockerfile.js +211 -0
- package/theme-chalk/code-editor-vue3/mode/dtd/dtd.js +142 -0
- package/theme-chalk/code-editor-vue3/mode/dylan/dylan.js +352 -0
- package/theme-chalk/code-editor-vue3/mode/ebnf/ebnf.js +195 -0
- package/theme-chalk/code-editor-vue3/mode/ecl/ecl.js +206 -0
- package/theme-chalk/code-editor-vue3/mode/eiffel/eiffel.js +160 -0
- package/theme-chalk/code-editor-vue3/mode/elm/elm.js +245 -0
- package/theme-chalk/code-editor-vue3/mode/erlang/erlang.js +619 -0
- package/theme-chalk/code-editor-vue3/mode/factor/factor.js +85 -0
- package/theme-chalk/code-editor-vue3/mode/fcl/fcl.js +173 -0
- package/theme-chalk/code-editor-vue3/mode/forth/forth.js +180 -0
- package/theme-chalk/code-editor-vue3/mode/fortran/fortran.js +188 -0
- package/theme-chalk/code-editor-vue3/mode/gas/gas.js +353 -0
- package/theme-chalk/code-editor-vue3/mode/gfm/gfm.js +129 -0
- package/theme-chalk/code-editor-vue3/mode/gherkin/gherkin.js +178 -0
- package/theme-chalk/code-editor-vue3/mode/go/go.js +187 -0
- package/theme-chalk/code-editor-vue3/mode/groovy/groovy.js +245 -0
- package/theme-chalk/code-editor-vue3/mode/haml/haml.js +161 -0
- package/theme-chalk/code-editor-vue3/mode/handlebars/handlebars.js +70 -0
- package/theme-chalk/code-editor-vue3/mode/haskell/haskell.js +268 -0
- package/theme-chalk/code-editor-vue3/mode/haskell-literate/haskell-literate.js +43 -0
- package/theme-chalk/code-editor-vue3/mode/haxe/haxe.js +515 -0
- package/theme-chalk/code-editor-vue3/mode/htmlmixed/htmlmixed.js +153 -0
- package/theme-chalk/code-editor-vue3/mode/http/http.js +113 -0
- package/theme-chalk/code-editor-vue3/mode/idl/idl.js +290 -0
- package/theme-chalk/code-editor-vue3/mode/jinja2/jinja2.js +193 -0
- package/theme-chalk/code-editor-vue3/mode/julia/julia.js +390 -0
- package/theme-chalk/code-editor-vue3/mode/livescript/livescript.js +280 -0
- package/theme-chalk/code-editor-vue3/mode/lua/lua.js +160 -0
- package/theme-chalk/code-editor-vue3/mode/markdown/markdown.js +886 -0
- package/theme-chalk/code-editor-vue3/mode/mathematica/mathematica.js +176 -0
- package/theme-chalk/code-editor-vue3/mode/mbox/mbox.js +129 -0
- package/theme-chalk/code-editor-vue3/mode/meta.js +221 -0
- package/theme-chalk/code-editor-vue3/mode/mirc/mirc.js +193 -0
- package/theme-chalk/code-editor-vue3/mode/mllike/mllike.js +359 -0
- package/theme-chalk/code-editor-vue3/mode/modelica/modelica.js +245 -0
- package/theme-chalk/code-editor-vue3/mode/mscgen/mscgen.js +175 -0
- package/theme-chalk/code-editor-vue3/mode/mumps/mumps.js +148 -0
- package/theme-chalk/code-editor-vue3/mode/nginx/nginx.js +178 -0
- package/theme-chalk/code-editor-vue3/mode/nsis/nsis.js +95 -0
- package/theme-chalk/code-editor-vue3/mode/ntriples/ntriples.js +195 -0
- package/theme-chalk/code-editor-vue3/mode/octave/octave.js +139 -0
- package/theme-chalk/code-editor-vue3/mode/oz/oz.js +252 -0
- package/theme-chalk/code-editor-vue3/mode/pascal/pascal.js +136 -0
- package/theme-chalk/code-editor-vue3/mode/pegjs/pegjs.js +111 -0
- package/theme-chalk/code-editor-vue3/mode/perl/perl.js +836 -0
- package/theme-chalk/code-editor-vue3/mode/php/php.js +234 -0
- package/theme-chalk/code-editor-vue3/mode/pig/pig.js +178 -0
- package/theme-chalk/code-editor-vue3/mode/powershell/powershell.js +398 -0
- package/theme-chalk/code-editor-vue3/mode/properties/properties.js +78 -0
- package/theme-chalk/code-editor-vue3/mode/protobuf/protobuf.js +72 -0
- package/theme-chalk/code-editor-vue3/mode/pug/pug.js +591 -0
- package/theme-chalk/code-editor-vue3/mode/puppet/puppet.js +220 -0
- package/theme-chalk/code-editor-vue3/mode/python/python.js +402 -0
- package/theme-chalk/code-editor-vue3/mode/q/q.js +139 -0
- package/theme-chalk/code-editor-vue3/mode/r/r.js +190 -0
- package/theme-chalk/code-editor-vue3/mode/rpm/changes/index.html +66 -0
- package/theme-chalk/code-editor-vue3/mode/rpm/rpm.js +109 -0
- package/theme-chalk/code-editor-vue3/mode/rst/rst.js +557 -0
- package/theme-chalk/code-editor-vue3/mode/ruby/ruby.js +303 -0
- package/theme-chalk/code-editor-vue3/mode/rust/rust.js +72 -0
- package/theme-chalk/code-editor-vue3/mode/sas/sas.js +303 -0
- package/theme-chalk/code-editor-vue3/mode/sass/sass.js +459 -0
- package/theme-chalk/code-editor-vue3/mode/scheme/scheme.js +284 -0
- package/theme-chalk/code-editor-vue3/mode/shell/shell.js +168 -0
- package/theme-chalk/code-editor-vue3/mode/sieve/sieve.js +193 -0
- package/theme-chalk/code-editor-vue3/mode/slim/slim.js +575 -0
- package/theme-chalk/code-editor-vue3/mode/smalltalk/smalltalk.js +168 -0
- package/theme-chalk/code-editor-vue3/mode/smarty/smarty.js +225 -0
- package/theme-chalk/code-editor-vue3/mode/solr/solr.js +104 -0
- package/theme-chalk/code-editor-vue3/mode/soy/soy.js +665 -0
- package/theme-chalk/code-editor-vue3/mode/sparql/sparql.js +184 -0
- package/theme-chalk/code-editor-vue3/mode/spreadsheet/spreadsheet.js +112 -0
- package/theme-chalk/code-editor-vue3/mode/sql/sql.js +525 -0
- package/theme-chalk/code-editor-vue3/mode/stex/stex.js +264 -0
- package/theme-chalk/code-editor-vue3/mode/stylus/stylus.js +775 -0
- package/theme-chalk/code-editor-vue3/mode/swift/swift.js +221 -0
- package/theme-chalk/code-editor-vue3/mode/tcl/tcl.js +140 -0
- package/theme-chalk/code-editor-vue3/mode/textile/textile.js +469 -0
- package/theme-chalk/code-editor-vue3/mode/tiddlywiki/tiddlywiki.css +14 -0
- package/theme-chalk/code-editor-vue3/mode/tiddlywiki/tiddlywiki.js +308 -0
- package/theme-chalk/code-editor-vue3/mode/tiki/tiki.css +26 -0
- package/theme-chalk/code-editor-vue3/mode/tiki/tiki.js +312 -0
- package/theme-chalk/code-editor-vue3/mode/toml/toml.js +88 -0
- package/theme-chalk/code-editor-vue3/mode/tornado/tornado.js +68 -0
- package/theme-chalk/code-editor-vue3/mode/troff/troff.js +84 -0
- package/theme-chalk/code-editor-vue3/mode/ttcn/ttcn.js +283 -0
- package/theme-chalk/code-editor-vue3/mode/ttcn-cfg/ttcn-cfg.js +214 -0
- package/theme-chalk/code-editor-vue3/mode/turtle/turtle.js +162 -0
- package/theme-chalk/code-editor-vue3/mode/twig/twig.js +141 -0
- package/theme-chalk/code-editor-vue3/mode/vb/vb.js +275 -0
- package/theme-chalk/code-editor-vue3/mode/vbscript/vbscript.js +350 -0
- package/theme-chalk/code-editor-vue3/mode/velocity/velocity.js +202 -0
- package/theme-chalk/code-editor-vue3/mode/verilog/verilog.js +781 -0
- package/theme-chalk/code-editor-vue3/mode/vhdl/vhdl.js +189 -0
- package/theme-chalk/code-editor-vue3/mode/wast/wast.js +132 -0
- package/theme-chalk/code-editor-vue3/mode/webidl/webidl.js +195 -0
- package/theme-chalk/code-editor-vue3/mode/xml/xml.js +417 -0
- package/theme-chalk/code-editor-vue3/mode/xquery/xquery.js +448 -0
- package/theme-chalk/code-editor-vue3/mode/yacas/yacas.js +204 -0
- package/theme-chalk/code-editor-vue3/mode/yaml/yaml.js +120 -0
- package/theme-chalk/code-editor-vue3/mode/yaml-frontmatter/yaml-frontmatter.js +72 -0
- package/theme-chalk/code-editor-vue3/mode/z80/z80.js +116 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
|
3
|
+
|
|
4
|
+
// Modelica support for CodeMirror, copyright (c) by Lennart Ochel
|
|
5
|
+
|
|
6
|
+
(function(mod) {
|
|
7
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
|
8
|
+
mod(require("../../lib/codemirror"));
|
|
9
|
+
else if (typeof define == "function" && define.amd) // AMD
|
|
10
|
+
define(["../../lib/codemirror"], mod);
|
|
11
|
+
else // Plain browser env
|
|
12
|
+
mod(CodeMirror);
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
(function(CodeMirror) {
|
|
16
|
+
"use strict";
|
|
17
|
+
|
|
18
|
+
CodeMirror.defineMode("modelica", function(config, parserConfig) {
|
|
19
|
+
|
|
20
|
+
var indentUnit = config.indentUnit;
|
|
21
|
+
var keywords = parserConfig.keywords || {};
|
|
22
|
+
var builtin = parserConfig.builtin || {};
|
|
23
|
+
var atoms = parserConfig.atoms || {};
|
|
24
|
+
|
|
25
|
+
var isSingleOperatorChar = /[;=\(:\),{}.*<>+\-\/^\[\]]/;
|
|
26
|
+
var isDoubleOperatorChar = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/;
|
|
27
|
+
var isDigit = /[0-9]/;
|
|
28
|
+
var isNonDigit = /[_a-zA-Z]/;
|
|
29
|
+
|
|
30
|
+
function tokenLineComment(stream, state) {
|
|
31
|
+
stream.skipToEnd();
|
|
32
|
+
state.tokenize = null;
|
|
33
|
+
return "comment";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function tokenBlockComment(stream, state) {
|
|
37
|
+
var maybeEnd = false, ch;
|
|
38
|
+
while (ch = stream.next()) {
|
|
39
|
+
if (maybeEnd && ch == "/") {
|
|
40
|
+
state.tokenize = null;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
maybeEnd = (ch == "*");
|
|
44
|
+
}
|
|
45
|
+
return "comment";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function tokenString(stream, state) {
|
|
49
|
+
var escaped = false, ch;
|
|
50
|
+
while ((ch = stream.next()) != null) {
|
|
51
|
+
if (ch == '"' && !escaped) {
|
|
52
|
+
state.tokenize = null;
|
|
53
|
+
state.sol = false;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
escaped = !escaped && ch == "\\";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return "string";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function tokenIdent(stream, state) {
|
|
63
|
+
stream.eatWhile(isDigit);
|
|
64
|
+
while (stream.eat(isDigit) || stream.eat(isNonDigit)) { }
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
var cur = stream.current();
|
|
68
|
+
|
|
69
|
+
if(state.sol && (cur == "package" || cur == "model" || cur == "when" || cur == "connector")) state.level++;
|
|
70
|
+
else if(state.sol && cur == "end" && state.level > 0) state.level--;
|
|
71
|
+
|
|
72
|
+
state.tokenize = null;
|
|
73
|
+
state.sol = false;
|
|
74
|
+
|
|
75
|
+
if (keywords.propertyIsEnumerable(cur)) return "keyword";
|
|
76
|
+
else if (builtin.propertyIsEnumerable(cur)) return "builtin";
|
|
77
|
+
else if (atoms.propertyIsEnumerable(cur)) return "atom";
|
|
78
|
+
else return "variable";
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function tokenQIdent(stream, state) {
|
|
82
|
+
while (stream.eat(/[^']/)) { }
|
|
83
|
+
|
|
84
|
+
state.tokenize = null;
|
|
85
|
+
state.sol = false;
|
|
86
|
+
|
|
87
|
+
if(stream.eat("'"))
|
|
88
|
+
return "variable";
|
|
89
|
+
else
|
|
90
|
+
return "error";
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function tokenUnsignedNumber(stream, state) {
|
|
94
|
+
stream.eatWhile(isDigit);
|
|
95
|
+
if (stream.eat('.')) {
|
|
96
|
+
stream.eatWhile(isDigit);
|
|
97
|
+
}
|
|
98
|
+
if (stream.eat('e') || stream.eat('E')) {
|
|
99
|
+
if (!stream.eat('-'))
|
|
100
|
+
stream.eat('+');
|
|
101
|
+
stream.eatWhile(isDigit);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
state.tokenize = null;
|
|
105
|
+
state.sol = false;
|
|
106
|
+
return "number";
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Interface
|
|
110
|
+
return {
|
|
111
|
+
startState: function() {
|
|
112
|
+
return {
|
|
113
|
+
tokenize: null,
|
|
114
|
+
level: 0,
|
|
115
|
+
sol: true
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
token: function(stream, state) {
|
|
120
|
+
if(state.tokenize != null) {
|
|
121
|
+
return state.tokenize(stream, state);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if(stream.sol()) {
|
|
125
|
+
state.sol = true;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// WHITESPACE
|
|
129
|
+
if(stream.eatSpace()) {
|
|
130
|
+
state.tokenize = null;
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
var ch = stream.next();
|
|
135
|
+
|
|
136
|
+
// LINECOMMENT
|
|
137
|
+
if(ch == '/' && stream.eat('/')) {
|
|
138
|
+
state.tokenize = tokenLineComment;
|
|
139
|
+
}
|
|
140
|
+
// BLOCKCOMMENT
|
|
141
|
+
else if(ch == '/' && stream.eat('*')) {
|
|
142
|
+
state.tokenize = tokenBlockComment;
|
|
143
|
+
}
|
|
144
|
+
// TWO SYMBOL TOKENS
|
|
145
|
+
else if(isDoubleOperatorChar.test(ch+stream.peek())) {
|
|
146
|
+
stream.next();
|
|
147
|
+
state.tokenize = null;
|
|
148
|
+
return "operator";
|
|
149
|
+
}
|
|
150
|
+
// SINGLE SYMBOL TOKENS
|
|
151
|
+
else if(isSingleOperatorChar.test(ch)) {
|
|
152
|
+
state.tokenize = null;
|
|
153
|
+
return "operator";
|
|
154
|
+
}
|
|
155
|
+
// IDENT
|
|
156
|
+
else if(isNonDigit.test(ch)) {
|
|
157
|
+
state.tokenize = tokenIdent;
|
|
158
|
+
}
|
|
159
|
+
// Q-IDENT
|
|
160
|
+
else if(ch == "'" && stream.peek() && stream.peek() != "'") {
|
|
161
|
+
state.tokenize = tokenQIdent;
|
|
162
|
+
}
|
|
163
|
+
// STRING
|
|
164
|
+
else if(ch == '"') {
|
|
165
|
+
state.tokenize = tokenString;
|
|
166
|
+
}
|
|
167
|
+
// UNSIGNED_NUMBER
|
|
168
|
+
else if(isDigit.test(ch)) {
|
|
169
|
+
state.tokenize = tokenUnsignedNumber;
|
|
170
|
+
}
|
|
171
|
+
// ERROR
|
|
172
|
+
else {
|
|
173
|
+
state.tokenize = null;
|
|
174
|
+
return "error";
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return state.tokenize(stream, state);
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
indent: function(state, textAfter) {
|
|
181
|
+
if (state.tokenize != null) return CodeMirror.Pass;
|
|
182
|
+
|
|
183
|
+
var level = state.level;
|
|
184
|
+
if(/(algorithm)/.test(textAfter)) level--;
|
|
185
|
+
if(/(equation)/.test(textAfter)) level--;
|
|
186
|
+
if(/(initial algorithm)/.test(textAfter)) level--;
|
|
187
|
+
if(/(initial equation)/.test(textAfter)) level--;
|
|
188
|
+
if(/(end)/.test(textAfter)) level--;
|
|
189
|
+
|
|
190
|
+
if(level > 0)
|
|
191
|
+
return indentUnit*level;
|
|
192
|
+
else
|
|
193
|
+
return 0;
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
blockCommentStart: "/*",
|
|
197
|
+
blockCommentEnd: "*/",
|
|
198
|
+
lineComment: "//"
|
|
199
|
+
};
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
function words(str) {
|
|
203
|
+
var obj = {}, words = str.split(" ");
|
|
204
|
+
for (var i=0; i<words.length; ++i)
|
|
205
|
+
obj[words[i]] = true;
|
|
206
|
+
return obj;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
var modelicaKeywords = "algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within";
|
|
210
|
+
var modelicaBuiltin = "abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh";
|
|
211
|
+
var modelicaAtoms = "Real Boolean Integer String";
|
|
212
|
+
|
|
213
|
+
function def(mimes, mode) {
|
|
214
|
+
if (typeof mimes == "string")
|
|
215
|
+
mimes = [mimes];
|
|
216
|
+
|
|
217
|
+
var words = [];
|
|
218
|
+
|
|
219
|
+
function add(obj) {
|
|
220
|
+
if (obj)
|
|
221
|
+
for (var prop in obj)
|
|
222
|
+
if (obj.hasOwnProperty(prop))
|
|
223
|
+
words.push(prop);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
add(mode.keywords);
|
|
227
|
+
add(mode.builtin);
|
|
228
|
+
add(mode.atoms);
|
|
229
|
+
|
|
230
|
+
if (words.length) {
|
|
231
|
+
mode.helperType = mimes[0];
|
|
232
|
+
CodeMirror.registerHelper("hintWords", mimes[0], words);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
for (var i=0; i<mimes.length; ++i)
|
|
236
|
+
CodeMirror.defineMIME(mimes[i], mode);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
def(["text/x-modelica"], {
|
|
240
|
+
name: "modelica",
|
|
241
|
+
keywords: words(modelicaKeywords),
|
|
242
|
+
builtin: words(modelicaBuiltin),
|
|
243
|
+
atoms: words(modelicaAtoms)
|
|
244
|
+
});
|
|
245
|
+
});
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
|
3
|
+
|
|
4
|
+
// mode(s) for the sequence chart dsl's mscgen, xù and msgenny
|
|
5
|
+
// For more information on mscgen, see the site of the original author:
|
|
6
|
+
// http://www.mcternan.me.uk/mscgen
|
|
7
|
+
//
|
|
8
|
+
// This mode for mscgen and the two derivative languages were
|
|
9
|
+
// originally made for use in the mscgen_js interpreter
|
|
10
|
+
// (https://sverweij.github.io/mscgen_js)
|
|
11
|
+
|
|
12
|
+
(function(mod) {
|
|
13
|
+
if ( typeof exports == "object" && typeof module == "object")// CommonJS
|
|
14
|
+
mod(require("../../lib/codemirror"));
|
|
15
|
+
else if ( typeof define == "function" && define.amd)// AMD
|
|
16
|
+
define(["../../lib/codemirror"], mod);
|
|
17
|
+
else// Plain browser env
|
|
18
|
+
mod(CodeMirror);
|
|
19
|
+
})(function(CodeMirror) {
|
|
20
|
+
"use strict";
|
|
21
|
+
|
|
22
|
+
var languages = {
|
|
23
|
+
mscgen: {
|
|
24
|
+
"keywords" : ["msc"],
|
|
25
|
+
"options" : ["hscale", "width", "arcgradient", "wordwraparcs"],
|
|
26
|
+
"constants" : ["true", "false", "on", "off"],
|
|
27
|
+
"attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip"],
|
|
28
|
+
"brackets" : ["\\{", "\\}"], // [ and ] are brackets too, but these get handled in with lists
|
|
29
|
+
"arcsWords" : ["note", "abox", "rbox", "box"],
|
|
30
|
+
"arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
|
|
31
|
+
"singlecomment" : ["//", "#"],
|
|
32
|
+
"operators" : ["="]
|
|
33
|
+
},
|
|
34
|
+
xu: {
|
|
35
|
+
"keywords" : ["msc", "xu"],
|
|
36
|
+
"options" : ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"],
|
|
37
|
+
"constants" : ["true", "false", "on", "off", "auto"],
|
|
38
|
+
"attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip", "title", "deactivate", "activate", "activation"],
|
|
39
|
+
"brackets" : ["\\{", "\\}"], // [ and ] are brackets too, but these get handled in with lists
|
|
40
|
+
"arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"],
|
|
41
|
+
"arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
|
|
42
|
+
"singlecomment" : ["//", "#"],
|
|
43
|
+
"operators" : ["="]
|
|
44
|
+
},
|
|
45
|
+
msgenny: {
|
|
46
|
+
"keywords" : null,
|
|
47
|
+
"options" : ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"],
|
|
48
|
+
"constants" : ["true", "false", "on", "off", "auto"],
|
|
49
|
+
"attributes" : null,
|
|
50
|
+
"brackets" : ["\\{", "\\}"],
|
|
51
|
+
"arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"],
|
|
52
|
+
"arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
|
|
53
|
+
"singlecomment" : ["//", "#"],
|
|
54
|
+
"operators" : ["="]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
CodeMirror.defineMode("mscgen", function(_, modeConfig) {
|
|
59
|
+
var language = languages[modeConfig && modeConfig.language || "mscgen"]
|
|
60
|
+
return {
|
|
61
|
+
startState: startStateFn,
|
|
62
|
+
copyState: copyStateFn,
|
|
63
|
+
token: produceTokenFunction(language),
|
|
64
|
+
lineComment : "#",
|
|
65
|
+
blockCommentStart : "/*",
|
|
66
|
+
blockCommentEnd : "*/"
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
CodeMirror.defineMIME("text/x-mscgen", "mscgen");
|
|
71
|
+
CodeMirror.defineMIME("text/x-xu", {name: "mscgen", language: "xu"});
|
|
72
|
+
CodeMirror.defineMIME("text/x-msgenny", {name: "mscgen", language: "msgenny"});
|
|
73
|
+
|
|
74
|
+
function wordRegexpBoundary(pWords) {
|
|
75
|
+
return new RegExp("^\\b(?:" + pWords.join("|") + ")\\b", "i");
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function wordRegexp(pWords) {
|
|
79
|
+
return new RegExp("^(?:" + pWords.join("|") + ")", "i");
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function startStateFn() {
|
|
83
|
+
return {
|
|
84
|
+
inComment : false,
|
|
85
|
+
inString : false,
|
|
86
|
+
inAttributeList : false,
|
|
87
|
+
inScript : false
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function copyStateFn(pState) {
|
|
92
|
+
return {
|
|
93
|
+
inComment : pState.inComment,
|
|
94
|
+
inString : pState.inString,
|
|
95
|
+
inAttributeList : pState.inAttributeList,
|
|
96
|
+
inScript : pState.inScript
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function produceTokenFunction(pConfig) {
|
|
101
|
+
|
|
102
|
+
return function(pStream, pState) {
|
|
103
|
+
if (pStream.match(wordRegexp(pConfig.brackets), true, true)) {
|
|
104
|
+
return "bracket";
|
|
105
|
+
}
|
|
106
|
+
/* comments */
|
|
107
|
+
if (!pState.inComment) {
|
|
108
|
+
if (pStream.match(/\/\*[^\*\/]*/, true, true)) {
|
|
109
|
+
pState.inComment = true;
|
|
110
|
+
return "comment";
|
|
111
|
+
}
|
|
112
|
+
if (pStream.match(wordRegexp(pConfig.singlecomment), true, true)) {
|
|
113
|
+
pStream.skipToEnd();
|
|
114
|
+
return "comment";
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (pState.inComment) {
|
|
118
|
+
if (pStream.match(/[^\*\/]*\*\//, true, true))
|
|
119
|
+
pState.inComment = false;
|
|
120
|
+
else
|
|
121
|
+
pStream.skipToEnd();
|
|
122
|
+
return "comment";
|
|
123
|
+
}
|
|
124
|
+
/* strings */
|
|
125
|
+
if (!pState.inString && pStream.match(/\"(\\\"|[^\"])*/, true, true)) {
|
|
126
|
+
pState.inString = true;
|
|
127
|
+
return "string";
|
|
128
|
+
}
|
|
129
|
+
if (pState.inString) {
|
|
130
|
+
if (pStream.match(/[^\"]*\"/, true, true))
|
|
131
|
+
pState.inString = false;
|
|
132
|
+
else
|
|
133
|
+
pStream.skipToEnd();
|
|
134
|
+
return "string";
|
|
135
|
+
}
|
|
136
|
+
/* keywords & operators */
|
|
137
|
+
if (!!pConfig.keywords && pStream.match(wordRegexpBoundary(pConfig.keywords), true, true))
|
|
138
|
+
return "keyword";
|
|
139
|
+
|
|
140
|
+
if (pStream.match(wordRegexpBoundary(pConfig.options), true, true))
|
|
141
|
+
return "keyword";
|
|
142
|
+
|
|
143
|
+
if (pStream.match(wordRegexpBoundary(pConfig.arcsWords), true, true))
|
|
144
|
+
return "keyword";
|
|
145
|
+
|
|
146
|
+
if (pStream.match(wordRegexp(pConfig.arcsOthers), true, true))
|
|
147
|
+
return "keyword";
|
|
148
|
+
|
|
149
|
+
if (!!pConfig.operators && pStream.match(wordRegexp(pConfig.operators), true, true))
|
|
150
|
+
return "operator";
|
|
151
|
+
|
|
152
|
+
if (!!pConfig.constants && pStream.match(wordRegexp(pConfig.constants), true, true))
|
|
153
|
+
return "variable";
|
|
154
|
+
|
|
155
|
+
/* attribute lists */
|
|
156
|
+
if (!pConfig.inAttributeList && !!pConfig.attributes && pStream.match('[', true, true)) {
|
|
157
|
+
pConfig.inAttributeList = true;
|
|
158
|
+
return "bracket";
|
|
159
|
+
}
|
|
160
|
+
if (pConfig.inAttributeList) {
|
|
161
|
+
if (pConfig.attributes !== null && pStream.match(wordRegexpBoundary(pConfig.attributes), true, true)) {
|
|
162
|
+
return "attribute";
|
|
163
|
+
}
|
|
164
|
+
if (pStream.match(']', true, true)) {
|
|
165
|
+
pConfig.inAttributeList = false;
|
|
166
|
+
return "bracket";
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
pStream.next();
|
|
171
|
+
return "base";
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
});
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
This MUMPS Language script was constructed using vbscript.js as a template.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
(function(mod) {
|
|
9
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
|
10
|
+
mod(require("../../lib/codemirror"));
|
|
11
|
+
else if (typeof define == "function" && define.amd) // AMD
|
|
12
|
+
define(["../../lib/codemirror"], mod);
|
|
13
|
+
else // Plain browser env
|
|
14
|
+
mod(CodeMirror);
|
|
15
|
+
})(function(CodeMirror) {
|
|
16
|
+
"use strict";
|
|
17
|
+
|
|
18
|
+
CodeMirror.defineMode("mumps", function() {
|
|
19
|
+
function wordRegexp(words) {
|
|
20
|
+
return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var singleOperators = new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]");
|
|
24
|
+
var doubleOperators = new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))");
|
|
25
|
+
var singleDelimiters = new RegExp("^[\\.,:]");
|
|
26
|
+
var brackets = new RegExp("[()]");
|
|
27
|
+
var identifiers = new RegExp("^[%A-Za-z][A-Za-z0-9]*");
|
|
28
|
+
var commandKeywords = ["break","close","do","else","for","goto", "halt", "hang", "if", "job","kill","lock","merge","new","open", "quit", "read", "set", "tcommit", "trollback", "tstart", "use", "view", "write", "xecute", "b","c","d","e","f","g", "h", "i", "j","k","l","m","n","o", "q", "r", "s", "tc", "tro", "ts", "u", "v", "w", "x"];
|
|
29
|
+
// The following list includes intrinsic functions _and_ special variables
|
|
30
|
+
var intrinsicFuncsWords = ["\\$ascii", "\\$char", "\\$data", "\\$ecode", "\\$estack", "\\$etrap", "\\$extract", "\\$find", "\\$fnumber", "\\$get", "\\$horolog", "\\$io", "\\$increment", "\\$job", "\\$justify", "\\$length", "\\$name", "\\$next", "\\$order", "\\$piece", "\\$qlength", "\\$qsubscript", "\\$query", "\\$quit", "\\$random", "\\$reverse", "\\$select", "\\$stack", "\\$test", "\\$text", "\\$translate", "\\$view", "\\$x", "\\$y", "\\$a", "\\$c", "\\$d", "\\$e", "\\$ec", "\\$es", "\\$et", "\\$f", "\\$fn", "\\$g", "\\$h", "\\$i", "\\$j", "\\$l", "\\$n", "\\$na", "\\$o", "\\$p", "\\$q", "\\$ql", "\\$qs", "\\$r", "\\$re", "\\$s", "\\$st", "\\$t", "\\$tr", "\\$v", "\\$z"];
|
|
31
|
+
var intrinsicFuncs = wordRegexp(intrinsicFuncsWords);
|
|
32
|
+
var command = wordRegexp(commandKeywords);
|
|
33
|
+
|
|
34
|
+
function tokenBase(stream, state) {
|
|
35
|
+
if (stream.sol()) {
|
|
36
|
+
state.label = true;
|
|
37
|
+
state.commandMode = 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// The <space> character has meaning in MUMPS. Ignoring consecutive
|
|
41
|
+
// spaces would interfere with interpreting whether the next non-space
|
|
42
|
+
// character belongs to the command or argument context.
|
|
43
|
+
|
|
44
|
+
// Examine each character and update a mode variable whose interpretation is:
|
|
45
|
+
// >0 => command 0 => argument <0 => command post-conditional
|
|
46
|
+
var ch = stream.peek();
|
|
47
|
+
|
|
48
|
+
if (ch == " " || ch == "\t") { // Pre-process <space>
|
|
49
|
+
state.label = false;
|
|
50
|
+
if (state.commandMode == 0)
|
|
51
|
+
state.commandMode = 1;
|
|
52
|
+
else if ((state.commandMode < 0) || (state.commandMode == 2))
|
|
53
|
+
state.commandMode = 0;
|
|
54
|
+
} else if ((ch != ".") && (state.commandMode > 0)) {
|
|
55
|
+
if (ch == ":")
|
|
56
|
+
state.commandMode = -1; // SIS - Command post-conditional
|
|
57
|
+
else
|
|
58
|
+
state.commandMode = 2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Do not color parameter list as line tag
|
|
62
|
+
if ((ch === "(") || (ch === "\u0009"))
|
|
63
|
+
state.label = false;
|
|
64
|
+
|
|
65
|
+
// MUMPS comment starts with ";"
|
|
66
|
+
if (ch === ";") {
|
|
67
|
+
stream.skipToEnd();
|
|
68
|
+
return "comment";
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Number Literals // SIS/RLM - MUMPS permits canonic number followed by concatenate operator
|
|
72
|
+
if (stream.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/))
|
|
73
|
+
return "number";
|
|
74
|
+
|
|
75
|
+
// Handle Strings
|
|
76
|
+
if (ch == '"') {
|
|
77
|
+
if (stream.skipTo('"')) {
|
|
78
|
+
stream.next();
|
|
79
|
+
return "string";
|
|
80
|
+
} else {
|
|
81
|
+
stream.skipToEnd();
|
|
82
|
+
return "error";
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Handle operators and Delimiters
|
|
87
|
+
if (stream.match(doubleOperators) || stream.match(singleOperators))
|
|
88
|
+
return "operator";
|
|
89
|
+
|
|
90
|
+
// Prevents leading "." in DO block from falling through to error
|
|
91
|
+
if (stream.match(singleDelimiters))
|
|
92
|
+
return null;
|
|
93
|
+
|
|
94
|
+
if (brackets.test(ch)) {
|
|
95
|
+
stream.next();
|
|
96
|
+
return "bracket";
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (state.commandMode > 0 && stream.match(command))
|
|
100
|
+
return "variable-2";
|
|
101
|
+
|
|
102
|
+
if (stream.match(intrinsicFuncs))
|
|
103
|
+
return "builtin";
|
|
104
|
+
|
|
105
|
+
if (stream.match(identifiers))
|
|
106
|
+
return "variable";
|
|
107
|
+
|
|
108
|
+
// Detect dollar-sign when not a documented intrinsic function
|
|
109
|
+
// "^" may introduce a GVN or SSVN - Color same as function
|
|
110
|
+
if (ch === "$" || ch === "^") {
|
|
111
|
+
stream.next();
|
|
112
|
+
return "builtin";
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// MUMPS Indirection
|
|
116
|
+
if (ch === "@") {
|
|
117
|
+
stream.next();
|
|
118
|
+
return "string-2";
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (/[\w%]/.test(ch)) {
|
|
122
|
+
stream.eatWhile(/[\w%]/);
|
|
123
|
+
return "variable";
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Handle non-detected items
|
|
127
|
+
stream.next();
|
|
128
|
+
return "error";
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
startState: function() {
|
|
133
|
+
return {
|
|
134
|
+
label: false,
|
|
135
|
+
commandMode: 0
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
token: function(stream, state) {
|
|
140
|
+
var style = tokenBase(stream, state);
|
|
141
|
+
if (state.label) return "tag";
|
|
142
|
+
return style;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
CodeMirror.defineMIME("text/x-mumps", "mumps");
|
|
148
|
+
});
|