CSSLint: fixup d5971e9c
This commit is contained in:
parent
3636c19151
commit
99a7fedfb7
|
@ -268,9 +268,10 @@ var CSSLint = (() => {
|
||||||
lineno++;
|
lineno++;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
do {
|
||||||
|
// account for the lines between the previous and current match
|
||||||
while (eol <= m.index) nextLine();
|
while (eol <= m.index) nextLine();
|
||||||
|
|
||||||
do {
|
|
||||||
const ovr = m[1].toLowerCase();
|
const ovr = m[1].toLowerCase();
|
||||||
const cmd = ovr.split(':', 1)[0];
|
const cmd = ovr.split(':', 1)[0];
|
||||||
const i = cmd.length + 1;
|
const i = cmd.length + 1;
|
||||||
|
@ -289,15 +290,15 @@ var CSSLint = (() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'ignore':
|
case 'ignore':
|
||||||
if (ovr.lastIndexOf('start', i) > 0) {
|
if (ovr.includes('start')) {
|
||||||
if (ignoreStart === null) {
|
if (ignoreStart === null) {
|
||||||
ignoreStart = lineno;
|
ignoreStart = lineno + 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ovr.lastIndexOf('end', i) > 0) {
|
if (ovr.includes('end')) {
|
||||||
ignoreEnd = lineno;
|
ignoreEnd = lineno;
|
||||||
if (ignoreStart !== null && ignoreEnd !== null) {
|
if (ignoreStart && ignoreEnd) {
|
||||||
ignore.push([ignoreStart, ignoreEnd]);
|
ignore.push([ignoreStart, ignoreEnd]);
|
||||||
ignoreStart = ignoreEnd = null;
|
ignoreStart = ignoreEnd = null;
|
||||||
}
|
}
|
||||||
|
@ -313,8 +314,6 @@ var CSSLint = (() => {
|
||||||
ruleset[property.trim()] = mapped === undefined ? 1 : mapped;
|
ruleset[property.trim()] = mapped === undefined ? 1 : mapped;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
nextLine();
|
|
||||||
} while ((m = RX_EMBEDDED.exec(text)));
|
} while ((m = RX_EMBEDDED.exec(text)));
|
||||||
|
|
||||||
// Close remaining ignore block, if any
|
// Close remaining ignore block, if any
|
||||||
|
|
Loading…
Reference in New Issue
Block a user