This one is somewhat non-obvious.
In essence, the ignore-case option only applies to string literals.
The code does not parse character classes in respect to the ignore-case option.
It might be pretty hard to implement. You'd not only have to take A-Z
into account but hex, octal and decimal constants that can also be
used in character classes.