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:
parent
75bb2c7009
commit
50a0eaa071
5 changed files with 1672 additions and 1661 deletions
|
|
@ -51,13 +51,7 @@ Nested comment
|
|||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(comment)
|
||||
(identifier)
|
||||
(ERROR
|
||||
(operator)
|
||||
(operator)
|
||||
(operator)
|
||||
(operator)))
|
||||
(comment))
|
||||
|
||||
================================================================================
|
||||
Unterminated comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue