diff options
author | Junichi Ito <[email protected]> | 2024-12-22 12:54:35 +0900 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2025-01-05 20:50:53 -0500 |
commit | c8e3d745fabc2060a6e5c7342c881bb31f58f5f5 () | |
tree | 701745e377726544f740bafaebaee2ed3c315c03 /prism | |
parent | 8a9f1e600fc151f4b01d51c43a2613fd0a71a79c (diff) |
Use a single quote instead of a backtick for error messages
Fix https://bugs.ruby-lang.org/issues/20977
Notes: Merged: https://.com/ruby/ruby/pull/12424
-rw-r--r-- | prism/templates/src/diagnostic.c.erb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -249,8 +249,8 @@ static const pm_diagnostic_data_t diagnostic_messages[PM_DIAGNOSTIC_ID_MAX] = { [PM_ERR_INVALID_VARIABLE_GLOBAL_3_3] = { "`%.*s' is not allowed as a global variable name", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_INVALID_VARIABLE_GLOBAL] = { "'%.*s' is not allowed as a global variable name", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_INVALID_YIELD] = { "Invalid yield", PM_ERROR_LEVEL_SYNTAX }, - [PM_ERR_IT_NOT_ALLOWED_NUMBERED] = { "`it` is not allowed when a numbered parameter is already used", PM_ERROR_LEVEL_SYNTAX }, - [PM_ERR_IT_NOT_ALLOWED_ORDINARY] = { "`it` is not allowed when an ordinary parameter is defined", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_LAMBDA_OPEN] = { "expected a `do` keyword or a `{` to open the lambda block", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_LAMBDA_TERM_BRACE] = { "expected a lambda block beginning with `{` to end with `}`", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_LAMBDA_TERM_END] = { "expected a lambda block beginning with `do` to end with `end`", PM_ERROR_LEVEL_SYNTAX }, |