Skip to content

Commit 6d2421c

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 7f5061f commit 6d2421c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const cppLanguage = LRLanguage.define({
1414
TryStatement: continuedIndent({except: /^\s*({|catch)\b/}),
1515
LabeledStatement: flatIndent,
1616
CaseStatement: context => context.baseIndent + context.unit,
17-
BlockComment: () => -1,
17+
BlockComment: () => null,
1818
CompoundStatement: delimitedIndent({closing: "}"}),
1919
Statement: continuedIndent({except: /^{/})
2020
}),

0 commit comments

Comments
 (0)