Skip to content

Commit 3b2342d

Browse files
committed
cosmetics
1 parent 8a99848 commit 3b2342d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/scanner.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Print input and result information.
33
*/
4-
// #define DEBUG 1
4+
// #define DEBUG 0
55

66
/**
77
* Print the upcoming token after parsing finished.
@@ -1318,9 +1318,7 @@ static Result inline_tokens(State *state) {
13181318
}
13191319
// TODO(414owen) does this clash with inline comments '--'?
13201320
// I'm not sure why there's a `symbolic::comment` and a `COMMENT`...
1321-
SYMBOLICS_WITHOUT_BAR: {
1322-
is_symbolic = true;
1323-
}
1321+
SYMBOLICS_WITHOUT_BAR:
13241322
case '|': {
13251323
if (state->symbols[QQ_BAR]) {
13261324
S_ADVANCE;

test/edit/LambdaCaseEnd.target

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
rhs: (exp_lambda_case [0, 4] - [1, 8]
55
(alts [1, 2] - [1, 8]
66
(alt [1, 2] - [1, 8]
7-
(pat_name [1, 2] - [1, 3]
7+
pattern: (pat_name [1, 2] - [1, 3]
88
(variable [1, 2] - [1, 3]))
9-
(exp_name [1, 7] - [1, 8]
9+
rhs: (exp_name [1, 7] - [1, 8]
1010
(variable [1, 7] - [1, 8]))))))
1111
(function [3, 0] - [3, 5]
1212
name: (variable [3, 0] - [3, 1])

0 commit comments

Comments
 (0)