Skip to content

Commit 0c6848b

Browse files
authored
Update tokenizer.ts to fix comments (#26)
1 parent 3266651 commit 0c6848b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tokenizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export class Tokenizer {
363363
//// SPECIAL MARKERS
364364
// Comment -- advance to end of line.
365365
case '#':
366-
while ((this.peek() != '\n' || this.peek() != '\r') && !this.isAtEnd()) {
366+
while ((this.peek() !== '\n' && this.peek() !== '\r') && !this.isAtEnd()) {
367367
this.advance();
368368
}
369369
break;

0 commit comments

Comments
 (0)