diff options
| author | John Bodley <john.bodley@airbnb.com> | 2019-10-03 09:14:22 -0700 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2019-10-09 11:22:16 +0200 |
| commit | 9902b885dc64c3503c024d3fd77acc0a7216109f (patch) | |
| tree | 6bf2056849e658f9cced98914c671b97fbbe337f /sqlparse | |
| parent | e8ae45d9f0e4238add9e24af2b8cfbc1665aab77 (diff) | |
| download | sqlparse-9902b885dc64c3503c024d3fd77acc0a7216109f.tar.gz | |
[fix] Addressing issue #507
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/keywords.py | 6 |
1 files changed, 3 insertions, 3 deletions
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), |
