Fix error when parse error occurs after non-terminal extra

This commit is contained in:
Max Brunsfeld 2020-07-28 13:30:34 -07:00
parent ed8fdadaee
commit 253f23c3d4
2 changed files with 50 additions and 22 deletions

View file

@ -0,0 +1,19 @@
==========================
Heredocs with errors
==========================
joins(<<~SQL(
b
SQL
c
---
(program
(method_call
method: (identifier)
(ERROR (heredoc_beginning))
arguments: (argument_list
(heredoc_body (heredoc_end))
(identifier)
(MISSING ")"))))