Skip to content

Commit

Permalink
Remove parse branches about the removed *Match and Column tokens. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed May 30, 2023
1 parent fa83eb1 commit 6f8f9d5
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions parse-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,25 +157,9 @@ function tokenize(str) {
return new DelimToken(code);
}
}
else if(code == 0x24) {
if(next() == 0x3d) {
consume();
return new SuffixMatchToken();
} else {
return new DelimToken(code);
}
}
else if(code == 0x27) return consumeAStringToken();
else if(code == 0x28) return new OpenParenToken();
else if(code == 0x29) return new CloseParenToken();
else if(code == 0x2a) {
if(next() == 0x3d) {
consume();
return new SubstringMatchToken();
} else {
return new DelimToken(code);
}
}
else if(code == 0x2b) {
if(startsWithANumber()) {
reconsume();
Expand Down Expand Up @@ -235,35 +219,8 @@ function tokenize(str) {
}
}
else if(code == 0x5d) return new CloseSquareToken();
else if(code == 0x5e) {
if(next() == 0x3d) {
consume();
return new PrefixMatchToken();
} else {
return new DelimToken(code);
}
}
else if(code == 0x7b) return new OpenCurlyToken();
else if(code == 0x7c) {
if(next() == 0x3d) {
consume();
return new DashMatchToken();
} else if(next() == 0x7c) {
consume();
return new ColumnToken();
} else {
return new DelimToken(code);
}
}
else if(code == 0x7d) return new CloseCurlyToken();
else if(code == 0x7e) {
if(next() == 0x3d) {
consume();
return new IncludeMatchToken();
} else {
return new DelimToken(code);
}
}
else if(digit(code)) {
reconsume();
return consumeANumericToken();
Expand Down

0 comments on commit 6f8f9d5

Please sign in to comment.