mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Change to using an explicit list of "def-likes" for clojure (#3202)
This commit is contained in:
parent
0e29e2c6e1
commit
78c8c9a255
1 changed files with 8 additions and 2 deletions
|
|
@ -106,7 +106,10 @@
|
||||||
|
|
||||||
; Definition functions
|
; Definition functions
|
||||||
((sym_lit) @keyword
|
((sym_lit) @keyword
|
||||||
(#lua-match? @keyword "^def.*$"))
|
(#any-of? @keyword
|
||||||
|
"def" "defonce" "defrecord" "defmacro" "definline"
|
||||||
|
"defmulti" "defmethod" "defstruct" "defprotocol"
|
||||||
|
"deftype"))
|
||||||
((sym_lit) @keyword
|
((sym_lit) @keyword
|
||||||
(#eq? @keyword "declare"))
|
(#eq? @keyword "declare"))
|
||||||
((sym_lit) @keyword.function
|
((sym_lit) @keyword.function
|
||||||
|
|
@ -283,7 +286,10 @@
|
||||||
(list_lit
|
(list_lit
|
||||||
.
|
.
|
||||||
(sym_lit) @_keyword ; Don't really want to highlight twice
|
(sym_lit) @_keyword ; Don't really want to highlight twice
|
||||||
(#lua-match? @_keyword "^def.*")
|
(#any-of? @keyword
|
||||||
|
"def" "defonce" "defrecord" "defmacro" "definline"
|
||||||
|
"defmulti" "defmethod" "defstruct" "defprotocol"
|
||||||
|
"deftype")
|
||||||
.
|
.
|
||||||
(sym_lit)
|
(sym_lit)
|
||||||
.
|
.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue