Skip to content
Snippets Groups Projects
Commit ea5ee646 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[groovy mode] Don't reindent block comment conent

Closes #4466
parent 409c83aa
No related branches found
Tags 3.15.0
No related merge requests found
...@@ -210,7 +210,7 @@ CodeMirror.defineMode("groovy", function(config) { ...@@ -210,7 +210,7 @@ CodeMirror.defineMode("groovy", function(config) {
}, },
indent: function(state, textAfter) { indent: function(state, textAfter) {
if (!state.tokenize[state.tokenize.length-1].isBase) return 0; if (!state.tokenize[state.tokenize.length-1].isBase) return CodeMirror.Pass;
var firstChar = textAfter && textAfter.charAt(0), ctx = state.context; var firstChar = textAfter && textAfter.charAt(0), ctx = state.context;
if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) ctx = ctx.prev; if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) ctx = ctx.prev;
var closing = firstChar == ctx.type; var closing = firstChar == ctx.type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment