8000 Properly return null for indentation in template strings and comments · codemirror/lang-python@d9f9b1a · GitHub
[go: up one dir, main page]

Skip to content

Commit d9f9b1a

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 8e5e499 commit d9f9b1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/python.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const pythonLanguage = LRLanguage.define({
3434
"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression": delimitedIndent({closing: ")"}),
3535
"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression": delimitedIndent({closing: "}"}),
3636
"ArrayExpression ArrayComprehensionExpression": delimitedIndent({closing: "]"}),
37+
"String FormatString": () => null,
3738
Script: context => {
3839
if (context.pos + /\s*/.exec(context.textAfter)![0].length >= context.node.to) {
3940
let endBody = null

0 commit comments

Comments
 (0)
0