summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorToby Mao <tmao@netflix.com>2019-03-13 15:39:47 -0700
committerAndi Albrecht <albrecht.andi@gmail.com>2019-06-26 12:38:24 +0200
commit2555e38564a200799db3dda08930bc5c749b9b70 (patch)
tree898aca3a9bcd4fca6480b432dcf68ca71aa40462 /sqlparse
parent5a3164d8db9ce5bbd64480bcb63eb1ac7a587151 (diff)
downloadsqlparse-2555e38564a200799db3dda08930bc5c749b9b70.tar.gz
Revert "Add in slash comment functionality"
This reverts commit 170010e7d709f2145169d23482d006dc56856256.
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/keywords.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py
index 5c47dfc..53c83bb 100644
--- a/sqlparse/keywords.py
+++ b/sqlparse/keywords.py
@@ -22,10 +22,10 @@ def is_keyword(value):
SQL_REGEX = {
'root': [
- (r'(--|//|# )\+.*?(\r\n|\r|\n|$)', tokens.Comment.Single.Hint),
+ (r'(--|# )\+.*?(\r\n|\r|\n|$)', tokens.Comment.Single.Hint),
(r'/\*\+[\s\S]*?\*/', tokens.Comment.Multiline.Hint),
- (r'(--|//|# ).*?(\r\n|\r|\n|$)', tokens.Comment.Single),
+ (r'(--|# ).*?(\r\n|\r|\n|$)', tokens.Comment.Single),
(r'/\*[\s\S]*?\*/', tokens.Comment.Multiline),
(r'(\r\n|\r|\n)', tokens.Newline),