Skip to content

Commit f640b21

Browse files
committed
4.3.1 Fixed evaluation of () (closes #131)
1 parent 521d2cf commit f640b21

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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

cs_cljfmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

cs_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)