Skip to content

Commit a887b6d

Browse files
wjones127andialbrecht
authored andcommitted
Add RLIKE keyword
1 parent 8cac74d commit a887b6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlparse/keywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def is_keyword(value):
8888
r'(EXPLODE|INLINE|PARSE_URL_TUPLE|POSEXPLODE|STACK)\b',
8989
tokens.Keyword),
9090
(r"(AT|WITH')\s+TIME\s+ZONE\s+'[^']+'", tokens.Keyword.TZCast),
91-
(r'(NOT\s+)?(LIKE|ILIKE)\b', tokens.Operator.Comparison),
91+
(r'(NOT\s+)?(LIKE|ILIKE|RLIKE)\b', tokens.Operator.Comparison),
9292
(r'[0-9_A-ZÀ-Ü][_$#\w]*', is_keyword),
9393
(r'[;:()\[\],\.]', tokens.Punctuation),
9494
(r'[<>=~!]+', tokens.Operator.Comparison),

0 commit comments

Comments
 (0)