Skip to content

Commit 538c4dc

Browse files
zoobestikmarijnh
authored andcommitted
[clike] fix kotlin indent for first line in lambda with params
1 parent 9b5f1c4 commit 538c4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/clike/clike.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
685685
var firstChar = textAfter && textAfter.charAt(0);
686686
if ((state.prevToken == "}" || state.prevToken == ")") && textAfter == "")
687687
return state.indented;
688-
if (state.prevToken == "operator" && textAfter != "}" ||
688+
if ((state.prevToken == "operator" && textAfter != "}" && state.context.type != "}") ||
689689
state.prevToken == "variable" && firstChar == "." ||
690690
(state.prevToken == "}" || state.prevToken == ")") && firstChar == ".")
691691
return indentUnit * 2 + ctx.indented;

0 commit comments

Comments
 (0)