Skip to content

Commit

Permalink
Update tokenizer.ts to fix comments (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
JJtan2002 authored Apr 9, 2024
1 parent 3266651 commit 0c6848b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export class Tokenizer {
//// SPECIAL MARKERS
// Comment -- advance to end of line.
case '#':
while ((this.peek() != '\n' || this.peek() != '\r') && !this.isAtEnd()) {
while ((this.peek() !== '\n' && this.peek() !== '\r') && !this.isAtEnd()) {
this.advance();
}
break;
Expand Down

0 comments on commit 0c6848b

Please sign in to comment.