1
Fork 0

use subdiagnostic for logical negation, bitwise not

This commit is contained in:
yukang 2022-09-16 14:41:42 +08:00
parent f43562b95b
commit 484b612909
3 changed files with 40 additions and 12 deletions

View file

@ -55,7 +55,9 @@ parser_tilde_is_not_unary_operator = `~` cannot be used as a unary operator
.suggestion = use `!` to perform bitwise not
parser_unexpected_token_after_not = unexpected {$negated_desc} after identifier
.suggestion = use `!` to perform {$negated_msg}
parser_unexpected_token_after_not_bitwise = use `!` to perform bitwise not
parser_unexpected_token_after_not_logical = use `!` to perform logical negation
parser_unexpected_token_after_not_default = use `!` to perform logical negation or bitwise not
parser_malformed_loop_label = malformed loop label
.suggestion = use the correct loop label format