Skip to content

Commit

Permalink
[javascript mode] Tokenize leading whitespace in block comments as co…
Browse files Browse the repository at this point in the history
…mment

Closes #1431
  • Loading branch information
marijnh committed Apr 7, 2013
1 parent 3bc8919 commit 02ea26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/javascript/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
state.lexical.align = false;
state.indented = stream.indentation();
}
if (stream.eatSpace()) return null;
if (state.tokenize != jsTokenComment && stream.eatSpace()) return null;
var style = state.tokenize(stream, state);
if (type == "comment") return style;
state.lastType = type;
Expand Down

0 comments on commit 02ea26c

Please sign in to comment.