Skip to content

Commit ea298af

Browse files
AlexanderPrendotamarijnh
authored andcommitted
[kotlin mode] update indents
Fix indent after `operator` on top level. Example 1: import kotlinx.coroutines.* import kotlinx.coroutines.* Should have the same indents.
1 parent a07a0c6 commit ea298af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mode/clike/clike.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
667667
stream.eatWhile(/[\w\$_]/);
668668
return "meta";
669669
},
670+
'*': function(_stream, state) {
671+
return state.prevToken == '.' ? 'variable' : 'operator';
672+
},
670673
'"': function(stream, state) {
671674
state.tokenize = tokenKotlinString(stream.match('""'));
672675
return state.tokenize(stream, state);

0 commit comments

Comments
 (0)