Skip to content

Commit 244e736

Browse files
committed
use the is_NUM_START helper
1 parent 9384afd commit 244e736

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lexer/property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
},
5555
matchST_VAR_OFFSET: function() {
5656
const ch = this.input();
57-
if (this.is_NUM()) {
57+
if (this.is_NUM_START()) {
5858
this.consume_NUM();
5959
return this.tok.T_NUM_STRING;
6060
} else if (ch === "]") {

src/lexer/scripting.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ module.exports = {
6969
default:
7070
if (ch === ".") {
7171
ch = this.input();
72-
if (this.is_NUM()) {
72+
if (this.is_NUM_START()) {
7373
return this.consume_NUM();
7474
} else {
7575
if (ch) this.unput(1);
7676
}
7777
}
78-
if (this.is_NUM()) {
78+
if (this.is_NUM_START()) {
7979
return this.consume_NUM();
8080
} else if (this.is_LABEL_START()) {
8181
return this.consume_LABEL().T_STRING();

0 commit comments

Comments
 (0)