From 2c7c7d79c211c9909e4188ea0e2bc23d6f6ed6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?griff=20=D1=96=E2=8A=99?= <346896+griffio@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:43:06 +0000 Subject: [PATCH] Remove LATERAL LATERAL keyword is used as table/subquery and join operation. Needs special handling --- core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlLexer.flex | 1 - core/src/main/kotlin/com/alecstrong/sql/psi/core/sql.bnf | 1 - 2 files changed, 2 deletions(-) diff --git a/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlLexer.flex b/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlLexer.flex index b135b282..01cbfbd9 100644 --- a/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlLexer.flex +++ b/core/src/main/kotlin/com/alecstrong/sql/psi/core/SqlLexer.flex @@ -184,7 +184,6 @@ STRING=('([^'])*'|\"([^\"])*\") "HAVING" { return HAVING; } "INDEXED" { return INDEXED; } "NATURAL" { return NATURAL; } - "LATERAL" { return LATERAL; } "LEFT" { return LEFT; } "RIGHT" { return RIGHT; } "FULL" { return FULL; } diff --git a/core/src/main/kotlin/com/alecstrong/sql/psi/core/sql.bnf b/core/src/main/kotlin/com/alecstrong/sql/psi/core/sql.bnf index 941b40fb..b798784d 100644 --- a/core/src/main/kotlin/com/alecstrong/sql/psi/core/sql.bnf +++ b/core/src/main/kotlin/com/alecstrong/sql/psi/core/sql.bnf @@ -387,7 +387,6 @@ result_column ::= ( MULTIPLY left_join_operator ::= LEFT right_join_operator ::= RIGHT full_join_operator ::= FULL -lateral_join_modifier ::= LATERAL join_operator ::= ( COMMA | [ NATURAL ] [ left_join_operator [ OUTER ] | INNER | CROSS ] JOIN )