mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 14:34:39 +02:00
[ruby/prism] Fix up more error messages to more closely match parse.y
988ac82187
This commit is contained in:
parent
8bf55328da
commit
be331c0eeb
6 changed files with 16 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
break 1,;
|
||||
^ expected an argument
|
||||
^ unexpected ';'; expected an argument
|
||||
^~~~~~~~ Invalid break
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
next 1,;
|
||||
^ expected an argument
|
||||
^ unexpected ';'; expected an argument
|
||||
^~~~~~~ Invalid next
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
return 1,;
|
||||
^ expected an argument
|
||||
^ unexpected ';'; expected an argument
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
foo 1,
|
||||
^ expected an argument
|
||||
^ unexpected end-of-input; expected an argument
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue