Read complete identifiers, including non-ASCII continuations. Only an entirely ASCII word can be a modifier/constructor keyword. The generated lexer still validates Unicode identifiers; this probe never emits them.
| 679 | // entirely ASCII word can be a modifier/constructor keyword. The generated |
| 680 | // lexer still validates Unicode identifiers; this probe never emits them. |
| 681 | static bool constructor_word_char(int32_t c) { |
| 682 | if (c < 128) return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || |
| 683 | (c >= '0' && c <= '9') || c == '_'; |
| 684 | return !constructor_space(c); |
| 685 | } |
| 686 | |
| 687 | // C-locale iswalnum can miss Unicode identifier suffixes. A context keyword |
| 688 | // probe must not turn catché/finallyé into a clause; only wholly ASCII words |
no test coverage detected