Commit 782cf07
committed
Fix order of Token wrt integer and float
With our interpretation of "first match wins" with alternation, this
fixes a problem where INTEGER_LITERAL was incorrectly in front of
FLOAT_LITERAL.
Otherwise, an input of `1.2` would be interpreted as `INTEGER_LITERAL`,
`PUNCTUATION`, `INTEGER_LITERAL` instead of `FLOAT_LITERAL`.1 parent f10d6b1 commit 782cf07
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments