mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
CodeMirror upgrade to 5.38.0
This commit is contained in:
parent
36be6243ad
commit
cfe30dcde5
52 changed files with 905 additions and 413 deletions
7
gui/public/codemirror/mode/xml/xml.js
vendored
7
gui/public/codemirror/mode/xml/xml.js
vendored
|
@ -52,6 +52,7 @@ var xmlConfig = {
|
|||
doNotIndent: {},
|
||||
allowUnquoted: false,
|
||||
allowMissing: false,
|
||||
allowMissingTagName: false,
|
||||
caseFold: false
|
||||
}
|
||||
|
||||
|
@ -226,6 +227,9 @@ CodeMirror.defineMode("xml", function(editorConf, config_) {
|
|||
state.tagName = stream.current();
|
||||
setStyle = "tag";
|
||||
return attrState;
|
||||
} else if (config.allowMissingTagName && type == "endTag") {
|
||||
setStyle = "tag bracket";
|
||||
return attrState(type, stream, state);
|
||||
} else {
|
||||
setStyle = "error";
|
||||
return tagNameState;
|
||||
|
@ -244,6 +248,9 @@ CodeMirror.defineMode("xml", function(editorConf, config_) {
|
|||
setStyle = "tag error";
|
||||
return closeStateErr;
|
||||
}
|
||||
} else if (config.allowMissingTagName && type == "endTag") {
|
||||
setStyle = "tag bracket";
|
||||
return closeState(type, stream, state);
|
||||
} else {
|
||||
setStyle = "error";
|
||||
return closeStateErr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue