From ce4a4eb8ea13797ec99cd38fd709be6b5d3abba8 Mon Sep 17 00:00:00 2001 From: Wein Cho Date: Fri, 1 Sep 2023 10:23:13 +0900 Subject: [PATCH] QP-4930 QP-4966 Fix underscore charset to case insensitive (#65) --- Qsi.MySql/Antlr/MySqlLexerInternal.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Qsi.MySql/Antlr/MySqlLexerInternal.g4 b/Qsi.MySql/Antlr/MySqlLexerInternal.g4 index 9c11a700..119ed0c4 100644 --- a/Qsi.MySql/Antlr/MySqlLexerInternal.g4 +++ b/Qsi.MySql/Antlr/MySqlLexerInternal.g4 @@ -1111,7 +1111,7 @@ INVALID_INPUT: // ** Patch by QSI // The underscore charset token is used to defined the repertoire of a string, though it conflicts // with normal identifiers, which also can start with an underscore. -UNDERSCORE_CHARSET: '_' [a-z0-9]+ { setType(checkCharset(getText())); }; +UNDERSCORE_CHARSET: '_' [a-zA-Z0-9]+ { setType(checkCharset(getText())); }; // Identifiers might start with a digit, even though it is discouraged, and may not consist entirely of digits only. // All keywords above are automatically excluded.