summaryrefslogtreecommitdiff
path: root/sqlparse/lexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'sqlparse/lexer.py')
-rw-r--r--sqlparse/lexer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index b635fc6..dcac401 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
# Copyright (C) 2008 Andi Albrecht, albrecht.andi@gmail.com
#
# This module is part of python-sqlparse and is released under
@@ -162,6 +164,8 @@ class Lexer:
(r':=', Assignment),
(r'::', Punctuation),
(r'[*]', Wildcard),
+ (r"`(``|[^`])*`", Name),
+ (r"´(´´|[^´])*´", Name),
(r'[+/<>=~!@#%^&|`?^-]', Operator),
(r'[0-9]+', Number.Integer),
# TODO: Backslash escapes?