diff options
| author | JavierPan <PeterSandwich@users.noreply.github.com> | 2021-11-10 12:48:18 +0800 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2022-08-08 11:00:18 +0200 |
| commit | 9d2cb6fc950386e9e59f29faf0d3742c4b12572c (patch) | |
| tree | acb1ff0bbb30be15957b530b7a328399f8fcc3f0 /sqlparse/keywords.py | |
| parent | 5ab834471cf66f718536b34c6b65caab54b01793 (diff) | |
| download | sqlparse-9d2cb6fc950386e9e59f29faf0d3742c4b12572c.tar.gz | |
Add regex pattern to identify REGEXP as a Compasion token
Diffstat (limited to 'sqlparse/keywords.py')
| -rw-r--r-- | sqlparse/keywords.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py index 88631bb..29f27af 100644 --- a/sqlparse/keywords.py +++ b/sqlparse/keywords.py @@ -90,6 +90,7 @@ SQL_REGEX = { tokens.Keyword), (r"(AT|WITH')\s+TIME\s+ZONE\s+'[^']+'", tokens.Keyword.TZCast), (r'(NOT\s+)?(LIKE|ILIKE|RLIKE)\b', tokens.Operator.Comparison), + (r'(NOT\s+)?(REGEXP)\b', tokens.Operator.Comparison), (r'[0-9_A-ZÀ-Ü][_$#\w]*', is_keyword), (r'[;:()\[\],\.]', tokens.Punctuation), (r'[<>=~!]+', tokens.Operator.Comparison), |
