diff --git a/.gitignore b/.gitignore index 4444ae1..8587834 100644 --- a/.gitignore +++ b/.gitignore @@ -31,9 +31,11 @@ go.work.sum # Editor/IDE .idea/ -# Plguin +# Plugin # Intellij ANTLR plugin **/gen/ +# VSCode ANTLR plugin +**/.antlr/ # ANTLR generated files **/*.interp diff --git a/postgresql/PostgreSQLParser.g4 b/postgresql/PostgreSQLParser.g4 index 16dc5c9..3c1cf4d 100755 --- a/postgresql/PostgreSQLParser.g4 +++ b/postgresql/PostgreSQLParser.g4 @@ -2813,7 +2813,7 @@ opt_hold ; /* TODO: why select_with_parens alternative is needed at all? -i guess it because original byson grammar can choose selectstmt(2)->select_with_parens on only OPEN_PARENT/SELECT kewords at the begining of statement; +i guess it because original bison grammar can choose selectstmt(2)->select_with_parens on only OPEN_PAREN/SELECT kewords at the begining of statement; (select * from tab); parse can go through selectstmt( )->select_no_parens(1)->select_clause(2)->select_with_parens(1)->select_no_parens(1)->select_clause(1)->simple_select instead of selectstmt(1)->select_no_parens(1)->select_clause(2)->select_with_parens(1)->select_no_parens(1)->select_clause(1)->simple_select