We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a735f3 commit fc71e46Copy full SHA for fc71e46
src/javascript.ts
@@ -27,7 +27,7 @@ export const javascriptLanguage = LRLanguage.define({
27
Block: delimitedIndent({closing: "}"}),
28
ArrowFunction: cx => cx.baseIndent + cx.unit,
29
"TemplateString BlockComment": () => null,
30
- "Statement Property": continuedIndent({except: /^{/}),
+ "Statement Property": continuedIndent({except: /^\s*{/}),
31
JSXElement(context) {
32
let closed = /^\s*<\//.test(context.textAfter)
33
return context.lineIndent(context.node.from) + (closed ? 0 : context.unit)
0 commit comments