summaryrefslogtreecommitdiff
path: root/sqlparse/keywords.py
diff options
context:
space:
mode:
Diffstat (limited to 'sqlparse/keywords.py')
-rw-r--r--sqlparse/keywords.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py
index 41edbff..0fd1f31 100644
--- a/sqlparse/keywords.py
+++ b/sqlparse/keywords.py
@@ -5,6 +5,8 @@
# This module is part of python-sqlparse and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+import re
+
from sqlparse import tokens
@@ -68,6 +70,9 @@ SQL_REGEX = {
(r'[+/@#%^&|`?^-]+', tokens.Operator),
]}
+FLAGS = re.IGNORECASE | re.UNICODE
+SQL_REGEX = [(re.compile(rx, FLAGS).match, tt) for rx, tt in SQL_REGEX['root']]
+
KEYWORDS = {
'ABORT': tokens.Keyword,
'ABS': tokens.Keyword,