summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2011-07-29 20:58:14 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2011-07-29 20:58:14 +0200
commitc918cc9dc30b3a7684a96feae95fc5c05638360e (patch)
tree749eed3f2622dfc59ae130ea43dbc8a4eea678c6 /sqlparse
parent0ec64528c5fb1efb71122985eab9c7137a80603d (diff)
downloadsqlparse-c918cc9dc30b3a7684a96feae95fc5c05638360e.tar.gz
Add parsing of MS Access column names with braces (fixes issue27).
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/lexer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index 950ef1b..ecfdbce 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -189,6 +189,7 @@ class Lexer:
(r"(''|'.*?[^\\]')", tokens.String.Single),
# not a real string literal in ANSI SQL:
(r'(""|".*?[^\\]")', tokens.String.Symbol),
+ (r'(\[.*[^\]]\])', tokens.Name),
(r'(LEFT |RIGHT )?(INNER |OUTER )?JOIN\b', tokens.Keyword),
(r'END( IF| LOOP)?\b', tokens.Keyword),
(r'NOT NULL\b', tokens.Keyword),