Skip to content

Commit f5e1a1a

Browse files
committed
Fix other regex to identify comments starting with '#' character.
1 parent 9dbcfd3 commit f5e1a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlparse/lexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class Lexer(object):
164164

165165
tokens = {
166166
'root': [
167-
(r'--.*?(\r\n|\r|\n)', tokens.Comment.Single),
167+
(r'(--|#).*?(\r\n|\r|\n)', tokens.Comment.Single),
168168
# $ matches *before* newline, therefore we have two patterns
169169
# to match Comment.Single
170170
(r'(--|#).*?$', tokens.Comment.Single),

0 commit comments

Comments
 (0)