File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 28
28
"dependencies" : {
29
29
"@codemirror/autocomplete" : " ^6.3.2" ,
30
30
"@codemirror/language" : " ^6.0.0" ,
31
- "@lezer/python" : " ^1.0.0 "
31
+ "@lezer/python" : " ^1.1.4 "
32
32
},
33
33
"devDependencies" : {
34
34
"@codemirror/buildhelper" : " ^0.1.0"
Original file line number Diff line number Diff line change @@ -7,14 +7,6 @@ export {globalCompletion, localCompletionSource}
7
7
8
8
function indentBody ( context : TreeIndentContext , node : SyntaxNode ) {
9
9
let base = context . lineIndent ( node . from )
10
- let line = context . lineAt ( context . pos , - 1 ) , to = line . from + line . text . length
11
- // Don't consider blank, deindented lines at the end of the
12
- // block part of the block
13
- if ( / ^ \s * ( $ | # ) / . test ( line . text ) &&
14
- context . node . to < to + 100 &&
15
- ! / \S / . test ( context . state . sliceDoc ( to , context . node . to ) ) &&
16
- context . lineIndent ( context . pos , - 1 ) <= base )
17
- return null
18
10
// A normally deindenting keyword that appears at a higher
19
11
// indentation than the block should probably be handled by the next
20
12
// level
You can’t perform that action at this time.
0 commit comments