We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dbcfd3 commit f5e1a1aCopy full SHA for f5e1a1a
sqlparse/lexer.py
@@ -164,7 +164,7 @@ class Lexer(object):
164
165
tokens = {
166
'root': [
167
- (r'--.*?(\r\n|\r|\n)', tokens.Comment.Single),
+ (r'(--|#).*?(\r\n|\r|\n)', tokens.Comment.Single),
168
# $ matches *before* newline, therefore we have two patterns
169
# to match Comment.Single
170
(r'(--|#).*?$', tokens.Comment.Single),
0 commit comments