summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-04-12 09:52:29 -0400
committerKevin Newton <[email protected]>2024-04-12 09:52:29 -0400
commitabd05c848f437405e10410ded2a3d666e1b9bba5 (patch)
treeee0920207b79b1d2b4ca856ba9a04f29802e8ceb
parenta64a42ae386576cb91f5fb017b13a8f8a77077a4 (diff)
Sync latest prism
-rw-r--r--prism/templates/src/diagnostic.c.erb2
-rw-r--r--test/prism/parser_test.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/prism/templates/src/diagnostic.c.erb b/prism/templates/src/diagnostic.c.erb
index 06330c8d5b..957df1946c 100644
--- a/prism/templates/src/diagnostic.c.erb
+++ b/prism/templates/src/diagnostic.c.erb
@@ -99,7 +99,7 @@ static const pm_diagnostic_data_t diagnostic_messages[PM_DIAGNOSTIC_ID_MAX] = {
[PM_ERR_ARGUMENT_FORMAL_IVAR] = { "invalid formal argument; formal argument cannot be an instance variable", PM_ERROR_LEVEL_SYNTAX },
[PM_ERR_ARGUMENT_FORWARDING_UNBOUND] = { "unexpected `...` in an non-parenthesized call", PM_ERROR_LEVEL_SYNTAX },
[PM_ERR_ARGUMENT_IN] = { "unexpected `in` keyword in arguments", PM_ERROR_LEVEL_SYNTAX },
- [PM_ERR_ARGUMENT_NO_FORWARDING_AMP] = { "unexpected `&` no anonymous block parameter", PM_ERROR_LEVEL_SYNTAX },
+ [PM_ERR_ARGUMENT_NO_FORWARDING_AMP] = { "unexpected `&`; no anonymous block parameter", PM_ERROR_LEVEL_SYNTAX },
[PM_ERR_ARGUMENT_NO_FORWARDING_ELLIPSES] = { "unexpected ... when the parent method is not forwarding", PM_ERROR_LEVEL_SYNTAX },
[PM_ERR_ARGUMENT_NO_FORWARDING_STAR] = { "unexpected `*`; no anonymous rest parameter", PM_ERROR_LEVEL_SYNTAX },
[PM_ERR_ARGUMENT_NO_FORWARDING_STAR_STAR] = { "unexpected `**`; no anonymous keyword rest parameter", PM_ERROR_LEVEL_SYNTAX },
diff --git a/test/prism/parser_test.rb b/test/prism/parser_test.rb
index 237a4397ca..d60def5a47 100644
--- a/test/prism/parser_test.rb
+++ b/test/prism/parser_test.rb
@@ -74,6 +74,7 @@ module Prism
"comments.txt",
"heredoc_with_comment.txt",
"indented_file_end.txt",
+ "methods.txt",
"strings.txt",
"xstring_with_backslash.txt"
]