summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-10-01 10:22:07 -0400
committerKevin Newton <kddnewton@gmail.com>2024-10-01 11:03:25 -0400
commitec230ac6432ea89f1ee53d82a62337d4883dc83a (patch)
tree8d61d7119eabad74dac370eeab8828486d7de673 /test
parent169a5ee99e1e8742e6821f8b846d39e90c3c9ea8 (diff)
Resync to latest Prism
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11753
Diffstat (limited to 'test')
-rw-r--r--test/prism/errors/command_call_in.txt6
-rw-r--r--test/prism/errors/infix_after_label.txt6
-rw-r--r--test/prism/errors/trailing_comma_after_block.txt3
3 files changed, 11 insertions, 4 deletions
diff --git a/test/prism/errors/command_call_in.txt b/test/prism/errors/command_call_in.txt
index a4357028c6..2fdcf09738 100644
--- a/test/prism/errors/command_call_in.txt
+++ b/test/prism/errors/command_call_in.txt
@@ -1,7 +1,5 @@
foo 1 in a
- ^ unexpected `in` keyword in arguments
- ^ unexpected local variable or method, expecting end-of-input
+ ^~ unexpected 'in', expecting end-of-input
+ ^~ unexpected 'in', ignoring it
a = foo 2 in b
- ^ unexpected `in` keyword in arguments
- ^ unexpected local variable or method, expecting end-of-input
diff --git a/test/prism/errors/infix_after_label.txt b/test/prism/errors/infix_after_label.txt
new file mode 100644
index 0000000000..c3bcfaeceb
--- /dev/null
+++ b/test/prism/errors/infix_after_label.txt
@@ -0,0 +1,6 @@
+{ 'a':.upcase => 1 }
+ ^ unexpected '.'; expected a value in the hash literal
+ ^ expected a `}` to close the hash literal
+ ^ unexpected '}', expecting end-of-input
+ ^ unexpected '}', ignoring it
+
diff --git a/test/prism/errors/trailing_comma_after_block.txt b/test/prism/errors/trailing_comma_after_block.txt
new file mode 100644
index 0000000000..d25db0efbe
--- /dev/null
+++ b/test/prism/errors/trailing_comma_after_block.txt
@@ -0,0 +1,3 @@
+p{|&,|}
+ ^ unexpected `,` in parameters
+