diff options
author | Andi Albrecht <albrecht.andi@gmail.com> | 2015-03-16 07:56:01 +0100 |
---|---|---|
committer | Andi Albrecht <albrecht.andi@gmail.com> | 2015-03-16 07:56:01 +0100 |
commit | f5e1a1add8aa4564cd24e2b3d13414b1fba68899 (patch) | |
tree | 857b68e92c1d059eefdc451f30e1ba496ce0c1af /sqlparse/lexer.py | |
parent | 9dbcfd31abafe48ee7c646129c40e904ff0a5fac (diff) | |
download | sqlparse-f5e1a1add8aa4564cd24e2b3d13414b1fba68899.tar.gz |
Fix other regex to identify comments starting with '#' character.
Diffstat (limited to 'sqlparse/lexer.py')
-rw-r--r-- | sqlparse/lexer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py index 0a402c3..a1a4703 100644 --- a/sqlparse/lexer.py +++ b/sqlparse/lexer.py @@ -164,7 +164,7 @@ class Lexer(object): tokens = { 'root': [ - (r'--.*?(\r\n|\r|\n)', tokens.Comment.Single), + (r'(--|#).*?(\r\n|\r|\n)', tokens.Comment.Single), # $ matches *before* newline, therefore we have two patterns # to match Comment.Single (r'(--|#).*?$', tokens.Comment.Single), |