summaryrefslogtreecommitdiff
path: root/sqlparse/lexer.py
diff options
context:
space:
mode:
authorJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-03-24 20:14:20 +0100
committerJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-03-24 20:14:20 +0100
commit1e3c3b9ceee5e5c3cead78cd87a592637e41fe12 (patch)
treeaeb4479aed2e2b3c465f6e6c317989d5ac647bca /sqlparse/lexer.py
parent9e4feb233a45620afca7192e127d88d25fe6b390 (diff)
downloadsqlparse-1e3c3b9ceee5e5c3cead78cd87a592637e41fe12.tar.gz
Fixed regular expression for Nameplaces
Diffstat (limited to 'sqlparse/lexer.py')
-rw-r--r--sqlparse/lexer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index 64ede4c..321669d 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -177,7 +177,7 @@ class Lexer(object):
(r"´(´´|[^´])*´", tokens.Name),
(r'\$([a-zA-Z_][a-zA-Z0-9_]*)?\$', tokens.Name.Builtin),
(r'\?{1}', tokens.Name.Placeholder),
- (r'[$:?%][a-zA-Z0-9_]+[^$:?%]?', tokens.Name.Placeholder),
+ (r'[$:?%][a-zA-Z0-9_]+', tokens.Name.Placeholder),
(r'@[a-zA-Z_][a-zA-Z0-9_]+', tokens.Name),
(r'[a-zA-Z_][a-zA-Z0-9_]*(?=[.(])', tokens.Name), # see issue39
(r'[-]?0x[0-9a-fA-F]+', tokens.Number.Hexadecimal),