diff options
| author | hurcy <cinyoung.hur@gmail.com> | 2020-07-29 14:47:47 +0900 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2020-09-13 08:58:20 +0200 |
| commit | 28c4d4026e1d9389a99d8cd627c96fa360c17fc4 (patch) | |
| tree | cc47fc3bea26bf8c8ae634dd9a8d27a25531f9d7 /sqlparse | |
| parent | d5d4bde3d8d74f451befe36d5f6bf3cefde538eb (diff) | |
| download | sqlparse-28c4d4026e1d9389a99d8cd627c96fa360c17fc4.tar.gz | |
add regex pattern to identify IN as a Compasion token
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/keywords.py | 2 |
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 |
