1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-27 16:50:11 +02:00

update cm modes

This commit is contained in:
Kushagra Gour
2024-04-29 16:52:20 +05:30
parent 6093614bbb
commit b059769f94
18 changed files with 1012 additions and 1141 deletions

View File

@@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
@@ -261,7 +261,7 @@ CodeMirror.defineMode("pug", function (config) {
}
return 'variable';
}
if (stream.match(/^\+#{/, false)) {
if (stream.match('+#{', false)) {
stream.next();
state.mixinCallAfter = true;
return interpolation(stream, state);
@@ -545,12 +545,12 @@ CodeMirror.defineMode("pug", function (config) {
|| javaScriptArguments(stream, state)
|| callArguments(stream, state)
|| yieldStatement(stream, state)
|| doctype(stream, state)
|| yieldStatement(stream)
|| doctype(stream)
|| interpolation(stream, state)
|| caseStatement(stream, state)
|| when(stream, state)
|| defaultStatement(stream, state)
|| defaultStatement(stream)
|| extendsStatement(stream, state)
|| append(stream, state)
|| prepend(stream, state)
@@ -565,16 +565,16 @@ CodeMirror.defineMode("pug", function (config) {
|| tag(stream, state)
|| filter(stream, state)
|| code(stream, state)
|| id(stream, state)
|| className(stream, state)
|| id(stream)
|| className(stream)
|| attrs(stream, state)
|| attributesBlock(stream, state)
|| indent(stream, state)
|| indent(stream)
|| text(stream, state)
|| comment(stream, state)
|| colon(stream, state)
|| colon(stream)
|| dot(stream, state)
|| fail(stream, state);
|| fail(stream);
return tok === true ? null : tok;
}