summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/mode/xml/xml.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/vendor/codemirror/mode/xml/xml.js')
-rw-r--r--public/vendor/codemirror/mode/xml/xml.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/vendor/codemirror/mode/xml/xml.js b/public/vendor/codemirror/mode/xml/xml.js
index 014f7d84..f987a3a3 100644
--- a/public/vendor/codemirror/mode/xml/xml.js
+++ b/public/vendor/codemirror/mode/xml/xml.js
@@ -237,7 +237,7 @@ CodeMirror.defineMode("xml", function(editorConf, config_) {
if (state.context && state.context.tagName != tagName &&
config.implicitlyClosed.hasOwnProperty(state.context.tagName))
popContext(state);
- if (state.context && state.context.tagName == tagName) {
+ if ((state.context && state.context.tagName == tagName) || config.matchClosing === false) {
setStyle = "tag";
return closeState;
} else {