10000 Allow set and tuple expressions to be folded · codemirror/lang-python@8a085d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a085d9

Browse files
committed
Allow set and tuple expressions to be folded
FIX: Add folding information for set and tuple expressions. Closes codemirror/dev#803
1 parent 4fc7033 commit 8a085d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const pythonLanguage = LRLanguage.define({
5151
}
5252
}),
5353
foldNodeProp.add({
54-
"ArrayExpression DictionaryExpression": foldInside,
54+
"ArrayExpression DictionaryExpression SetExpression TupleExpression": foldInside,
5555
Body: (node, state) => ({from: node.from + 1, to: node.to - (node.to == state.doc.length ? 0 : 1)})
5656
})
5757
],

0 commit comments

Comments
 (0)
0