Skip to content

Commit eb339ec

Browse files
committed
Detect namespaces with meta
1 parent fa4dd12 commit eb339ec

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ Syntax has been significantly reworked.
1313

1414
Other changes:
1515

16+
- Built-in color scheme to utilize REPL and new syntax features.
1617
- Allow using `cljfmt` for formatting (requires `cljfmt` binary on `$PATH`)
1718
- Settings can now be specified in main `Preferences.sublime-settings` as well. Just prepend `clojure_sublimed_` to each setting’s name.
19+
- Detect namespaces with meta
1820

1921
### 3.8.0 - Aug 8, 2024
2022

cs_parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,9 @@ def namespace(view, point):
428428
for child in parsed.children:
429429
if child.end >= point:
430430
break
431-
elif child.name == 'parens':
431+
if child.name == 'meta':
432+
child = child.body.children[0]
433+
if child.name == 'parens':
432434
body = child.body
433435
if len(body.children) >= 2:
434436
first_form = body.children[0]

0 commit comments

Comments
 (0)