We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2aa7f0c + 8168e84 commit 6efac74Copy full SHA for 6efac74
2 files changed
sqlparse/keywords.py
@@ -550,6 +550,7 @@
550
'ORDER': tokens.Keyword,
551
'LEFT': tokens.Keyword,
552
'OUTER': tokens.Keyword,
553
+ 'FULL': tokens.Keyword,
554
555
'IF': tokens.Keyword,
556
'END': tokens.Keyword,
sqlparse/lexer.py
@@ -195,7 +195,7 @@ class Lexer(object):
195
# not a real string literal in ANSI SQL:
196
(r'(""|".*?[^\\]")', tokens.String.Symbol),
197
(r'(\[.*[^\]]\])', tokens.Name),
198
- (r'(LEFT\s+|RIGHT\s+)?(INNER\s+|OUTER\s+|STRAIGHT\s+)?JOIN\b', tokens.Keyword),
+ (r'((LEFT\s+|RIGHT\s+|FULL\s+)?(INNER\s+|OUTER\s+|STRAIGHT\s+)?|(CROSS\s+|NATURAL\s+)?)?JOIN\b', tokens.Keyword),
199
(r'END(\s+IF|\s+LOOP)?\b', tokens.Keyword),
200
(r'NOT NULL\b', tokens.Keyword),
201
(r'CREATE(\s+OR\s+REPLACE)?\b', tokens.Keyword.DDL),
0 commit comments