"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mode/htmlmixed/htmlmixed.js" between
CodeMirror-5.58.2.tar.gz and CodeMirror-5.58.3.tar.gz

About: CodeMirror is a text editor implemented in JavaScript for the browser and specialized for editing code.

htmlmixed.js  (CodeMirror-5.58.2):htmlmixed.js  (CodeMirror-5.58.3)
skipping to change at line 77 skipping to change at line 77
var spec = tagInfo[i]; var spec = tagInfo[i];
if (!spec[0] || spec[1].test(getAttrValue(tagText, spec[0]))) return spec[ 2]; if (!spec[0] || spec[1].test(getAttrValue(tagText, spec[0]))) return spec[ 2];
} }
} }
CodeMirror.defineMode("htmlmixed", function (config, parserConfig) { CodeMirror.defineMode("htmlmixed", function (config, parserConfig) {
var htmlMode = CodeMirror.getMode(config, { var htmlMode = CodeMirror.getMode(config, {
name: "xml", name: "xml",
htmlMode: true, htmlMode: true,
multilineTagIndentFactor: parserConfig.multilineTagIndentFactor, multilineTagIndentFactor: parserConfig.multilineTagIndentFactor,
multilineTagIndentPastTag: parserConfig.multilineTagIndentPastTag multilineTagIndentPastTag: parserConfig.multilineTagIndentPastTag,
allowMissingTagName: parserConfig.allowMissingTagName,
}); });
var tags = {}; var tags = {};
var configTags = parserConfig && parserConfig.tags, configScript = parserCon fig && parserConfig.scriptTypes; var configTags = parserConfig && parserConfig.tags, configScript = parserCon fig && parserConfig.scriptTypes;
addTags(defaultTags, tags); addTags(defaultTags, tags);
if (configTags) addTags(configTags, tags); if (configTags) addTags(configTags, tags);
if (configScript) for (var i = configScript.length - 1; i >= 0; i--) if (configScript) for (var i = configScript.length - 1; i >= 0; i--)
tags.script.unshift(["type", configScript[i].matches, configScript[i].mode ]) tags.script.unshift(["type", configScript[i].matches, configScript[i].mode ])
function html(stream, state) { function html(stream, state) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)