Skip to content

Commit ce1ee84

Browse files
committed
[sql mode] Assign comment token to whitespace at start of continued comment line
See https://discuss.codemirror.net/t/how-to-check-if-inside-comment/1252
1 parent 2ba7b2c commit ce1ee84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mode/sql/sql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ CodeMirror.defineMode("sql", function(config, parserConfig) {
170170
if (state.context && state.context.align == null)
171171
state.context.align = false;
172172
}
173-
if (stream.eatSpace()) return null;
173+
if (state.tokenize == tokenBase && stream.eatSpace()) return null;
174174

175175
var style = state.tokenize(stream, state);
176176
if (style == "comment") return style;

0 commit comments

Comments
 (0)