File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,8 @@ with the markdown_inline grammar."
371
371
; ; No wonder the tree-sitter-clojure grammar only touches syntax, and not semantics
372
372
:feature 'definition ; ; defn and defn like macros
373
373
:language 'clojure
374
- `(((list_lit :anchor (sym_lit (sym_name) @def)
374
+ `(((list_lit :anchor meta: _ :?
375
+ :anchor (sym_lit (sym_name) @def)
375
376
:anchor (sym_lit (sym_name) @font-lock-function-name-face))
376
377
(:match ,(rx-to-string
377
378
`(seq bol
@@ -412,7 +413,8 @@ with the markdown_inline grammar."
412
413
413
414
:feature 'variable ; ; def, defonce
414
415
:language 'clojure
415
- `(((list_lit :anchor (sym_lit (sym_name) @def)
416
+ `(((list_lit :anchor meta: _ :?
417
+ :anchor (sym_lit (sym_name) @def)
416
418
:anchor (sym_lit (sym_name) @font-lock-variable-name-face))
417
419
(:match , clojure-ts--variable-definition-symbol-regexp @def)))
418
420
You can’t perform that action at this time.
0 commit comments