[ruby/prism] Fix up more error messages to more closely match parse.y

988ac82187
This commit is contained in:
Kevin Newton 2024-09-25 15:06:09 -04:00 committed by git
parent 8bf55328da
commit be331c0eeb
6 changed files with 16 additions and 9 deletions

View file

@ -1,4 +1,4 @@
break 1,;
^ expected an argument
^ unexpected ';'; expected an argument
^~~~~~~~ Invalid break

View file

@ -1,4 +1,4 @@
next 1,;
^ expected an argument
^ unexpected ';'; expected an argument
^~~~~~~ Invalid next

View file

@ -1,3 +1,3 @@
return 1,;
^ expected an argument
^ unexpected ';'; expected an argument

View file

@ -1,3 +1,3 @@
foo 1,
^ expected an argument
^ unexpected end-of-input; expected an argument