Skip to content

Commit

Permalink
[javascript mode] Don't indent in template strings
Browse files Browse the repository at this point in the history
Closes #6442
  • Loading branch information
marijnh committed Oct 16, 2020
1 parent 9caacec commit 9885241
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 @@ -868,7 +868,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
},

indent: function(state, textAfter) {
if (state.tokenize == tokenComment) return CodeMirror.Pass;
if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return CodeMirror.Pass;
if (state.tokenize != tokenBase) return 0;
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top
// Kludge to prevent 'maybelse' from blocking lexical scope pops
Expand Down

0 comments on commit 9885241

Please sign in to comment.