Skip to content

Commit

Permalink
allow _ as number thousand delim, closes #35 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchmura authored Sep 2, 2024
1 parent a035b8d commit 7f21150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/lpcScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ export class Scanner implements IScanner {
}

if (this.isNumber(this.stream.peekChar())) {
if (this.stream.advanceIfRegExp(/^\d[\d\.]*/)) {
if (this.stream.advanceIfRegExp(/^\d[\d_\.]*/)) {
return this.finishToken(offset, TokenType.LiteralNumber);
}
}
Expand Down

0 comments on commit 7f21150

Please sign in to comment.