Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
asnewman committed Jan 22, 2025
1 parent 8b898fa commit 3f54f4a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@
"dialog",
"script",
"template",
"slot"
"slot",
"g"
]);
var Tokenizer = class {
cursor = 0;
Expand Down Expand Up @@ -202,7 +203,7 @@
continue;
}
let wordArr = [];
while (this.isNotSymbol()) {
while (this.isNotWordSymbol()) {
wordArr.push(this.markup[this.cursor]);
this.cursor++;
}
Expand Down Expand Up @@ -233,8 +234,8 @@
this.result.push({ type: 7 /* STRING */, value: strArr.join("") });
this.cursor++;
}
isNotSymbol() {
return this.markup[this.cursor] !== " " && this.markup[this.cursor] !== "-" && this.markup[this.cursor] !== "=" && this.markup[this.cursor] !== "(" && this.markup[this.cursor] !== ")" && this.markup[this.cursor] !== "{" && this.markup[this.cursor] !== "}" && this.markup[this.cursor] !== "\n" && this.cursor < this.markup.length;
isNotWordSymbol() {
return this.markup[this.cursor] !== " " && this.markup[this.cursor] !== "=" && this.markup[this.cursor] !== "(" && this.markup[this.cursor] !== ")" && this.markup[this.cursor] !== "{" && this.markup[this.cursor] !== "}" && this.markup[this.cursor] !== "\n" && this.cursor < this.markup.length;
}
};
var Parser = class {
Expand Down

0 comments on commit 3f54f4a

Please sign in to comment.