diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2011-07-29 20:58:14 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2011-07-29 20:58:14 +0200 |
| commit | c918cc9dc30b3a7684a96feae95fc5c05638360e (patch) | |
| tree | 749eed3f2622dfc59ae130ea43dbc8a4eea678c6 /sqlparse | |
| parent | 0ec64528c5fb1efb71122985eab9c7137a80603d (diff) | |
| download | sqlparse-c918cc9dc30b3a7684a96feae95fc5c05638360e.tar.gz | |
Add parsing of MS Access column names with braces (fixes issue27).
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/lexer.py | 1 |
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), |
