Skip to content

Commit 5e2472a

Browse files
committed
The YYMARKER shouldn't be explicitly set
1 parent eaf998a commit 5e2472a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

parser/scanner.re

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
3737
token->value = estrndup(start, YYCURSOR - start);
3838
token->len = YYCURSOR - start;
3939
s->active_char += (YYCURSOR - start);
40-
qm = YYCURSOR;
4140
return 0;
4241
}
4342
@@ -47,7 +46,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
4746
token->value = estrndup(start, YYCURSOR - start);
4847
token->len = YYCURSOR - start;
4948
s->active_char += (YYCURSOR - start);
50-
qm = YYCURSOR;
5149
return 0;
5250
}
5351
@@ -484,7 +482,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
484482
token->value = estrndup(start, YYCURSOR - start - 1);
485483
token->len = YYCURSOR - start - 1;
486484
s->active_char += (YYCURSOR - start);
487-
qm = YYCURSOR;
488485
return 0;
489486
}
490487
@@ -497,7 +494,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
497494
token->value = estrndup(start, YYCURSOR - start - 1);
498495
token->len = YYCURSOR - start - 1;
499496
s->active_char += (YYCURSOR - start);
500-
qm = YYCURSOR;
501497
return 0;
502498
}
503499
@@ -508,7 +504,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
508504
token->value = estrndup(start, YYCURSOR - start - 1);
509505
token->len = YYCURSOR - start - 1;
510506
s->active_char += (YYCURSOR - start + 1);
511-
qm = YYCURSOR;
512507
return 0;
513508
}
514509
@@ -530,7 +525,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
530525
}
531526
s->active_char = ch;
532527
}
533-
qm = YYCURSOR;
534528
return 0;
535529
}
536530
@@ -553,7 +547,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
553547
}
554548
efree(token->value);
555549
token->len = 0;
556-
qm = YYCURSOR;
557550
return 0;
558551
}
559552
@@ -581,7 +574,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
581574
}
582575
s->active_char = ch;
583576
}
584-
qm = YYCURSOR;
585577
return 0;
586578
}
587579

@@ -598,7 +590,6 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
598590
token->len = YYCURSOR - start;
599591
s->active_char += (YYCURSOR - start);
600592
}
601-
qm = YYCURSOR;
602593

603594
if (token->len > 3 && token->value[0] == '_') {
604595

0 commit comments

Comments
 (0)