We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54ab4b commit b643de3Copy full SHA for b643de3
parse-css.js
@@ -106,7 +106,7 @@ function tokenize(str) {
106
107
var codepoint = function(i) {
108
if(i >= str.length) {
109
- return -1;
+ return 0;
110
}
111
return str[i];
112
@@ -141,7 +141,7 @@ function tokenize(str) {
141
};
142
var eof = function(codepoint) {
143
if(codepoint === undefined) codepoint = code;
144
- return codepoint == -1;
+ return codepoint == 0;
145
146
var donothing = function() {};
147
var parseerror = function() { console.log("Parse error at index " + i + ", processing codepoint 0x" + code.toString(16) + ".");return true; };
0 commit comments