summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorhurcy <cinyoung.hur@gmail.com>2020-07-29 14:47:47 +0900
committerAndi Albrecht <albrecht.andi@gmail.com>2020-09-13 08:58:20 +0200
commit28c4d4026e1d9389a99d8cd627c96fa360c17fc4 (patch)
treecc47fc3bea26bf8c8ae634dd9a8d27a25531f9d7 /sqlparse
parentd5d4bde3d8d74f451befe36d5f6bf3cefde538eb (diff)
downloadsqlparse-28c4d4026e1d9389a99d8cd627c96fa360c17fc4.tar.gz
add regex pattern to identify IN as a Compasion token
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/keywords.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py
index 3123531..68ced92 100644
--- a/sqlparse/keywords.py
+++ b/sqlparse/keywords.py
@@ -44,7 +44,7 @@ SQL_REGEX = {
(r'(?<!\w)[$:?]\w+', tokens.Name.Placeholder),
(r'\\\w+', tokens.Command),
-
+ (r'(NOT\s+)?(IN)\b', tokens.Operator.Comparison),
# FIXME(andi): VALUES shouldn't be listed here
# see https://github.com/andialbrecht/sqlparse/pull/64
# AS and IN are special, it may be followed by a parenthesis, but