csslint: fire startdocument on {
This commit is contained in:
parent
0817a03b61
commit
2e86c95842
|
@ -1675,7 +1675,6 @@ Parser.prototype = function() {
|
|||
}
|
||||
|
||||
tokenStream.mustMatch(Tokens.LBRACE);
|
||||
this._readWhitespace();
|
||||
|
||||
this.fire({
|
||||
type: "startdocument",
|
||||
|
@ -1685,6 +1684,8 @@ Parser.prototype = function() {
|
|||
col: token.startCol
|
||||
});
|
||||
|
||||
this._readWhitespace(); // Stylus hack
|
||||
|
||||
var ok = true;
|
||||
while (ok) {
|
||||
switch (tokenStream.peek()) {
|
||||
|
|
2
edit.js
2
edit.js
|
@ -1576,7 +1576,7 @@ function fromMozillaFormat() {
|
|||
}
|
||||
function backtrackTo(parser, tokenType, startEnd) {
|
||||
var tokens = parser._tokenStream._lt;
|
||||
for (var i = tokens.length - 2; i >= 0; --i) {
|
||||
for (var i = parser._tokenStream._ltIndex - 1; i >= 0; --i) {
|
||||
if (tokens[i].type == tokenType) {
|
||||
return {line: tokens[i][startEnd+"Line"], col: tokens[i][startEnd+"Col"]};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user