We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e237e54 commit 810c465Copy full SHA for 810c465
src/mode/folding/xml.js
@@ -23,7 +23,7 @@ var Tag = function() {
23
};
24
25
function is(token, type) {
26
- return token.type.lastIndexOf(type + ".xml") > -1;
+ return token && token.type && token.type.lastIndexOf(type + ".xml") > -1;
27
}
28
29
(function() {
0 commit comments