File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ ### 4.3.1 - Nov 4, 2024
2+
3+ - Fixed evaluation of ` () ` #131
4+
15### 4.3.0 - Oct 31, 2024
26
37- Pretty print selection #123
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def newline_indent(view, point):
8383 child = child .body .children [0 ]
8484 if child .name == 'parens' :
8585 body = child .body
86- if len (body .children ) >= 2 :
86+ if body and len (body .children ) >= 2 :
8787 first_form = body .children [0 ]
8888 if first_form .name == 'token' and first_form .text == 'ns' :
8989 ns = child
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ def namespace(view, point):
481481 child = child .body .children [0 ]
482482 if child .name == 'parens' :
483483 body = child .body
484- if len (body .children ) >= 2 :
484+ if body and len (body .children ) >= 2 :
485485 first_form = body .children [0 ]
486486 if first_form .name == 'token' and first_form .text == 'ns' :
487487 second_form = body .children [1 ]
@@ -503,7 +503,7 @@ def defsym(node):
503503 """
504504 if node .name == 'parens' :
505505 body = node .body
506- if len (body .children ) >= 2 :
506+ if body and len (body .children ) >= 2 :
507507 first_form = body .children [0 ]
508508 if first_form .name == 'token' and re .fullmatch (r'(ns|([^/]+/)?def.*)' , first_form .text ):
509509 second_form = body .children [1 ]
You can’t perform that action at this time.
0 commit comments