parser: a comment does not need to include a newline character
This commit is contained in:
parent
5633bf17a9
commit
7c01b126c2
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ grammar = r"""
|
||||||
?start: object*
|
?start: object*
|
||||||
|
|
||||||
IDENTIFIER: /[A-Za-z_][A-Za-z_0-9]*/
|
IDENTIFIER: /[A-Za-z_][A-Za-z_0-9]*/
|
||||||
COMMENT: /#[^\n]*\n/
|
COMMENT: /#[^\n]*/
|
||||||
|
|
||||||
literal: INT
|
literal: INT
|
||||||
| STR
|
| STR
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue