diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-03-13 14:22:31 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-03-13 18:35:18 +0000 |
| commit | 2cfcebb2a8f62bcc7b595b551db85abd93efaaa2 (patch) | |
| tree | b50484f4465cca455ebe5bdb721e70a6ab05fa27 /prism/templates/src | |
| parent | f0b5d0ad5460a9bba717ba08fe027a738b7201b2 (diff) | |
[ruby/prism] Warn for maximum number variables
https://github.com/ruby/prism/commit/2cdbf81c95
Diffstat (limited to 'prism/templates/src')
| -rw-r--r-- | prism/templates/src/diagnostic.c.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/prism/templates/src/diagnostic.c.erb b/prism/templates/src/diagnostic.c.erb index 5ba4d62317..2a14c0dcb3 100644 --- a/prism/templates/src/diagnostic.c.erb +++ b/prism/templates/src/diagnostic.c.erb @@ -327,6 +327,7 @@ static const pm_diagnostic_data_t diagnostic_messages[PM_DIAGNOSTIC_ID_MAX] = { [PM_WARN_FLOAT_OUT_OF_RANGE] = { "Float %.*s%s out of range", PM_WARNING_LEVEL_VERBOSE }, [PM_WARN_INTEGER_IN_FLIP_FLOP] = { "integer literal in flip-flop", PM_WARNING_LEVEL_DEFAULT }, [PM_WARN_INVALID_CHARACTER] = { "invalid character syntax; use %s%s%s", PM_WARNING_LEVEL_DEFAULT }, + [PM_WARN_INVALID_NUMBERED_REFERENCE] = { "'%.*s' is too big for a number variable, always nil", PM_WARNING_LEVEL_DEFAULT }, [PM_WARN_KEYWORD_EOL] = { "`%.*s` at the end of line without an expression", PM_WARNING_LEVEL_VERBOSE }, [PM_WARN_LITERAL_IN_CONDITION_DEFAULT] = { "%sliteral in %s", PM_WARNING_LEVEL_DEFAULT }, [PM_WARN_LITERAL_IN_CONDITION_VERBOSE] = { "%sliteral in %s", PM_WARNING_LEVEL_VERBOSE }, |
