Vergleich admin/jscripts/codemirror/mode/htmlmixed/htmlmixed.js - 1.8.0 - 1.8.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 30Zeile 30

function html(stream, state) {
var tagName = state.htmlState.tagName;


function html(stream, state) {
var tagName = state.htmlState.tagName;

 
    if (tagName) tagName = tagName.toLowerCase();

    var style = htmlMode.token(stream, state.htmlState);
if (tagName == "script" && /\btag\b/.test(style) && stream.current() == ">") {
// Script block: mode to change to depends on type attribute

    var style = htmlMode.token(stream, state.htmlState);
if (tagName == "script" && /\btag\b/.test(style) && stream.current() == ">") {
// Script block: mode to change to depends on type attribute

Zeile 68Zeile 69
    if (stream.match(/^<\/\s*script\s*>/i, false)) {
state.token = html;
state.localState = state.localMode = null;

    if (stream.match(/^<\/\s*script\s*>/i, false)) {
state.token = html;
state.localState = state.localMode = null;

      return html(stream, state);

      return null;

    }
return maybeBackup(stream, /<\/\s*script\s*>/,
state.localMode.token(stream, state.localState));

    }
return maybeBackup(stream, /<\/\s*script\s*>/,
state.localMode.token(stream, state.localState));

Zeile 77Zeile 78
    if (stream.match(/^<\/\s*style\s*>/i, false)) {
state.token = html;
state.localState = state.localMode = null;

    if (stream.match(/^<\/\s*style\s*>/i, false)) {
state.token = html;
state.localState = state.localMode = null;

      return html(stream, state);

      return null;

    }
return maybeBackup(stream, /<\/\s*style\s*>/,
cssMode.token(stream, state.localState));

    }
return maybeBackup(stream, /<\/\s*style\s*>/,
cssMode.token(stream, state.localState));