From 1d890e58fe94de7f270bd84ba16b35e8589944cf Mon Sep 17 00:00:00 2001 From: hayden Date: Wed, 5 Jul 2023 16:18:30 +0800 Subject: [PATCH] feat: format hive grammar files name --- src/grammar/hive/HiveSqlLexer.g4 | 3 ++- src/grammar/hive/{HiveSql.g4 => HiveSqlParser.g4} | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename src/grammar/hive/{HiveSql.g4 => HiveSqlParser.g4} (99%) diff --git a/src/grammar/hive/HiveSqlLexer.g4 b/src/grammar/hive/HiveSqlLexer.g4 index df24628..28344a9 100644 --- a/src/grammar/hive/HiveSqlLexer.g4 +++ b/src/grammar/hive/HiveSqlLexer.g4 @@ -16,7 +16,8 @@ */ lexer grammar HiveSqlLexer; -options { caseInsensitive = true; } +// unsupported option caseInsensitive in antlr4@4.9 +// options { caseInsensitive = true; } // Keywords KW_ABORT : 'ABORT'; diff --git a/src/grammar/hive/HiveSql.g4 b/src/grammar/hive/HiveSqlParser.g4 similarity index 99% rename from src/grammar/hive/HiveSql.g4 rename to src/grammar/hive/HiveSqlParser.g4 index 6d09b79..73111eb 100644 --- a/src/grammar/hive/HiveSql.g4 +++ b/src/grammar/hive/HiveSqlParser.g4 @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -parser grammar HiveSql; +parser grammar HiveSqlParser; options { @@ -3058,4 +3058,4 @@ alterMappingStatement dropMappingStatement : KW_DROP mappingType=(KW_USER | KW_GROUP | KW_APPLICATION) KW_MAPPING name=StringLiteral KW_IN rpName=id_ - ; \ No newline at end of file + ;