diff --git a/src/Tokenizer.php b/src/Tokenizer.php index 08c4cb9..74a980e 100644 --- a/src/Tokenizer.php +++ b/src/Tokenizer.php @@ -412,6 +412,7 @@ final class Tokenizer 'OUTER JOIN', 'RIGHT JOIN', 'RIGHT OUTER JOIN', + 'STRAIGHT_JOIN', 'XOR', ]; diff --git a/tests/clihighlight.txt b/tests/clihighlight.txt index b38418a..b91bc20 100644 --- a/tests/clihighlight.txt +++ b/tests/clihighlight.txt @@ -1179,3 +1179,9 @@ MY_NON_TOP_LEVEL_KEYWORD_FX_3(); DBMS_OUTPUT.PUT_LINE(i); END LOOP; END; +--- +SELECT + a +FROM + test + STRAIGHT_JOIN test2 ON test.id = test2.id diff --git a/tests/compress.txt b/tests/compress.txt index 8cc9a75..d1a1e42 100644 --- a/tests/compress.txt +++ b/tests/compress.txt @@ -105,3 +105,5 @@ SELECT ( SELECT * FROM T LIMIT 5 OFFSET 10 ) PostgreSQL_offset_10_limit_5, ( SEL begin try insert into [t] ([name], [int], [float], [null]) values (N'Ewa', 1, 1.0, null); end try begin catch if ERROR_NUMBER() = 544 begin set IDENTITY_INSERT [t] on; begin try insert into [t] ([name], [int], [float], [null]) values (N'Ewa', 1, 1.0, null); set IDENTITY_INSERT [t] off; end try begin catch set IDENTITY_INSERT [t] off; throw; end catch end else begin throw; end end catch --- BEGIN FOR i IN 1..5 LOOP DBMS_OUTPUT.PUT_LINE(i); END LOOP; END; +--- +SELECT a FROM test STRAIGHT_JOIN test2 ON test.id = test2.id diff --git a/tests/format-highlight.html b/tests/format-highlight.html index ad92c6c..1fea8ea 100644 --- a/tests/format-highlight.html +++ b/tests/format-highlight.html @@ -1179,3 +1179,9 @@ DBMS_OUTPUT.PUT_LINE(i); END LOOP; END; +--- +
SELECT
+  a
+FROM
+  test
+  STRAIGHT_JOIN test2 ON test.id = test2.id
diff --git a/tests/format.txt b/tests/format.txt index bead82e..004617c 100644 --- a/tests/format.txt +++ b/tests/format.txt @@ -1177,3 +1177,9 @@ BEGIN DBMS_OUTPUT.PUT_LINE(i); END LOOP; END; +--- +SELECT + a +FROM + test + STRAIGHT_JOIN test2 ON test.id = test2.id diff --git a/tests/highlight.html b/tests/highlight.html index a072cb2..4cdc048 100644 --- a/tests/highlight.html +++ b/tests/highlight.html @@ -407,4 +407,5 @@ DBMS_OUTPUT.PUT_LINE(i); END LOOP; END; - +--- +
SELECT a FROM test STRAIGHT_JOIN test2 ON test.id = test2.id
diff --git a/tests/sql.sql b/tests/sql.sql index fd9fea3..8b3c89f 100644 --- a/tests/sql.sql +++ b/tests/sql.sql @@ -407,3 +407,5 @@ BEGIN DBMS_OUTPUT.PUT_LINE(i); END LOOP; END; +--- +SELECT a FROM test STRAIGHT_JOIN test2 ON test.id = test2.id