diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-10-03 12:31:58 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-10-03 17:30:20 +0000 |
| commit | f8568fbd7f87f749de46abc6ce07b9d3e0c6b40d (patch) | |
| tree | 3249f8b618c2cc1e26a629675a106e2a3e88c421 /test/prism/errors | |
| parent | 77db37813a5a436507260a92c8d41b616db1efd9 (diff) | |
[ruby/prism] Pop lex mode for heredocs in the lexer, not the parser
https://github.com/ruby/prism/commit/5dd36b979e
Diffstat (limited to 'test/prism/errors')
| -rw-r--r-- | test/prism/errors/heredoc_unterminated.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/prism/errors/heredoc_unterminated.txt b/test/prism/errors/heredoc_unterminated.txt new file mode 100644 index 0000000000..3c6aeaeb81 --- /dev/null +++ b/test/prism/errors/heredoc_unterminated.txt @@ -0,0 +1,9 @@ +a=>{<<b + ^ unterminated heredoc; can't find string "b" anywhere before EOF + ^~~ unexpected heredoc beginning; expected a key in the hash pattern + ^ unterminated heredoc; can't find string "b" anywhere before EOF + ^~~ expected a label as the key in the hash pattern + ^ expected a `}` to close the pattern expression + ^ unexpected heredoc ending, expecting end-of-input + ^ unexpected heredoc ending, ignoring it + |
