ref: db79689e81cffd5cb9564328179d88da07b6ba75
parent: c2ca46c27d622a17c6248782d628c89c49bfb972
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Nov 22 12:58:12 EST 2021
Add `-Wnumeric-string` to shell autocompletion
--- a/contrib/bash_compl/_rgbasm.bash
+++ b/contrib/bash_compl/_rgbasm.bash
@@ -183,6 +183,7 @@
long-string
macro-shift
nested-comment
+ numeric-string
obsolete
shift
shift-amount
--- a/contrib/zsh_compl/_rgbasm
+++ b/contrib/zsh_compl/_rgbasm
@@ -20,13 +20,15 @@
'long-string:Warn on strings too long'
'macro-shift:Warn when shifting macro args part their limits'
'nested-comment:Warn on "/*" inside block comments'
+ 'numeric-string:Warn when a multi-character string is treated as a number'
'obsolete:Warn when using deprecated features'
'shift:Warn when shifting negative values'
'shift-amount:Warn when a shift'\''s operand it negative or \> 32'
- 'truncation:Warn when implicit truncations lose bits'
+ 'truncation:Warn when implicit truncation loses bits'
'user:Warn when executing the WARN built-in'
)
# TODO: handle `no-` and `error=` somehow?
+ # TODO: handle `=0|1|2` levels for `numeric-string` and `truncation`?
_describe warning warnings
}