Add support for nested comments

Unfortunately, the 'extras' array expects single tokens only, so one
can't really use a recursive parsing rule to express nesting comments...
This commit is contained in:
Bruno BELANYI 2022-06-02 16:13:55 +02:00
parent 75bb2c7009
commit 50a0eaa071
5 changed files with 1672 additions and 1661 deletions

View file

@ -51,13 +51,7 @@ Nested comment
--------------------------------------------------------------------------------
(source_file
(comment)
(identifier)
(ERROR
(operator)
(operator)
(operator)
(operator)))
(comment))
================================================================================
Unterminated comment