mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
updated codemirror to 5.57.0
This commit is contained in:
11
libraries/codemirror/mode/xml/xml.js
vendored
11
libraries/codemirror/mode/xml/xml.js
vendored
@@ -390,6 +390,17 @@ CodeMirror.defineMode("xml", function(editorConf, config_) {
|
||||
skipAttribute: function(state) {
|
||||
if (state.state == attrValueState)
|
||||
state.state = attrState
|
||||
},
|
||||
|
||||
xmlCurrentTag: function(state) {
|
||||
return state.tagName ? {name: state.tagName, close: state.type == "closeTag"} : null
|
||||
},
|
||||
|
||||
xmlCurrentContext: function(state) {
|
||||
var context = []
|
||||
for (var cx = state.context; cx; cx = cx.prev)
|
||||
if (cx.tagName) context.push(cx.tagName)
|
||||
return context.reverse()
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user