Fix error when parse error occurs after non-terminal extra
This commit is contained in:
parent
ed8fdadaee
commit
253f23c3d4
2 changed files with 50 additions and 22 deletions
19
test/fixtures/error_corpus/ruby_errors.txt
vendored
Normal file
19
test/fixtures/error_corpus/ruby_errors.txt
vendored
Normal 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 ")"))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue