Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit de30757

Browse files
committed
Properly return null for indentation in template strings and comments
FIX: Fix (non-)auto indentation in template strings and comments. Issue codemirror/dev#909
1 parent 555727d commit de30757

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const javaLanguage = LRLanguage.define({
1717
return context.baseIndent + (closed ? 0 : isCase ? 1 : 2) * context.unit
1818
},
1919
Block: delimitedIndent({closing: "}"}),
20-
BlockComment: () => -1,
20+
BlockComment: () => null,
2121
Statement: continuedIndent({except: /^{/})
2222
}),
2323
foldNodeProp.add({

0 commit comments

Comments
 (0)