Esc

mixed_case_hex_literals

Finds a hex literal with both upper and lower case digits (0xDeadbeef).

Category style, warn by default.

Example
#import "Basic";

main :: () {
    mask := 0xFFfF;
    print("%\n", mask);
}
Diagnostic
warning[mixed_case_hex_literals]: `0xFFfF` mixes upper and lower case digits
  --> example.jai:4:13
   |
 4 |     mask := 0xFFfF;
   |             ^^^^^^
   |
help: write `0xFFFF`
   |
 4 ~     mask := 0xFFFF;
   |
   = note: `mixed_case_hex_literals` is `warn` by default
Fixed
#import "Basic";

main :: () {
    mask := 0xFFFF;
    print("%\n", mask);
}

Read from the tokens, so it needs no types; literals in macros and generated files are skipped.