From e575ae2c37359ab51b23ce44ccda4bb9bbfd3a5f Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Mon, 19 Oct 2020 08:41:26 +0200 Subject: Fix parsing of backticks (fixes #588). The backticks in this operator regex was introduced in c794c97531c09e66b6a7ffac76626a727ad02f5e. Pretty sure it was by mistake. --- sqlparse/keywords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlparse') diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py index a5deb93..c967b26 100644 --- a/sqlparse/keywords.py +++ b/sqlparse/keywords.py @@ -93,7 +93,7 @@ SQL_REGEX = { (r'[0-9_A-ZÀ-Ü][_$#\w]*', is_keyword), (r'[;:()\[\],\.]', tokens.Punctuation), (r'[<>=~!]+', tokens.Operator.Comparison), - (r'[+/@#%^&|`?^-]+', tokens.Operator), + (r'[+/@#%^&|^-]+', tokens.Operator), ]} FLAGS = re.IGNORECASE | re.UNICODE -- cgit v1.2.1