From 9902b885dc64c3503c024d3fd77acc0a7216109f Mon Sep 17 00:00:00 2001 From: John Bodley Date: Thu, 3 Oct 2019 09:14:22 -0700 Subject: [fix] Addressing issue #507 --- sqlparse/keywords.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sqlparse') diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py index 53c83bb..ec3fe50 100644 --- a/sqlparse/keywords.py +++ b/sqlparse/keywords.py @@ -48,9 +48,9 @@ SQL_REGEX = { # FIXME(andi): VALUES shouldn't be listed here # see https://github.com/andialbrecht/sqlparse/pull/64 - # IN is special, it may be followed by a parenthesis, but - # is never a function, see issue183 - (r'(CASE|IN|VALUES|USING|FROM)\b', tokens.Keyword), + # AS and IN are special, it may be followed by a parenthesis, but + # are never functions, see issue183 and issue507 + (r'(CASE|IN|VALUES|USING|FROM|AS)\b', tokens.Keyword), (r'(@|##|#)[A-ZÀ-Ü]\w+', tokens.Name), -- cgit v1.2.1