mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
Fixed tags
This commit is contained in:
parent
781060e01b
commit
9e70a723c7
@ -95,7 +95,7 @@
|
||||
(list_lit
|
||||
"(" @punctuation.section.expression.begin (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "^def(on[^\s]*|test|macro|n|n-|)$")
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "^def(on[^\s]*|test|macro|n|n-|protocol|record|struct|)$")
|
||||
.
|
||||
(sym_lit) @meta.definition.global @entity.global
|
||||
")" @punctuation.section.expression.end)
|
||||
|
@ -1,7 +1,47 @@
|
||||
(list_lit
|
||||
"(" (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "^def(on[^\s]*|test|macro|n|n-|)$")
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "defmacro")
|
||||
.
|
||||
(sym_lit) @definition.function
|
||||
")")
|
||||
(sym_lit) @name
|
||||
")") @definition.constructor
|
||||
|
||||
(list_lit
|
||||
"(" (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "def(protocol|struct|record)")
|
||||
.
|
||||
(sym_lit) @name
|
||||
")") @definition.struct
|
||||
|
||||
(list_lit
|
||||
"(" (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "^def(on[^\s]*|test|macro|n|n-)$")
|
||||
.
|
||||
(sym_lit) @name
|
||||
")") @definition.function
|
||||
|
||||
(list_lit
|
||||
"(" (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "^def(on[^\s]*|test|macro|n|n-)$")
|
||||
.
|
||||
(sym_lit) @name
|
||||
")") @definition.variable
|
||||
|
||||
(list_lit
|
||||
"(" @punctuation.section.expression.begin (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "/def.")
|
||||
.
|
||||
(sym_lit) @name
|
||||
")") @definition.function
|
||||
|
||||
(list_lit
|
||||
"(" @punctuation.section.expression.begin (#is-not? test.descendantOfNodeWithData "clojure.dismissTag")
|
||||
.
|
||||
(sym_lit) @keyword.control (#match? @keyword.control "/def")
|
||||
.
|
||||
(sym_lit) @name
|
||||
")") @definition.variable
|
||||
|
@ -38,6 +38,15 @@
|
||||
; ^ keyword.control
|
||||
; ^ entity.global
|
||||
|
||||
(defprotocol FooBar
|
||||
; ^ keyword.control
|
||||
; ^ entity.global
|
||||
(-eq [this other]))
|
||||
|
||||
(defrecord Lol [a b])
|
||||
; ^ keyword.control
|
||||
; ^ entity.global
|
||||
|
||||
(def a "A STRING")
|
||||
; <- keyword.control
|
||||
; ^ entity.global
|
||||
|
Loading…
Reference in New Issue
Block a user