dotfiles/mzte-nv/conf/queries/rust/highlights.scm

31 lines
1.1 KiB
Scheme

; extends
;; Keywords
(("async" @keyword) (#set! conceal "󰜨"))
(("await" @keyword) (#set! conceal ""))
(("dyn" @keyword) (#set! conceal "󱥒"))
(("else" @keyword) (#set! conceal ""))
(("enum" @keyword) (#set! conceal ""))
(("fn" @keyword) (#set! conceal "λ"))
(("for" @keyword) (#set! conceal "󰇘"))
(("if" @keyword) (#set! conceal ""))
(("impl" @keyword) (#set! conceal ""))
(("in" @keyword) (#set! conceal ""))
(("let" @keyword) (#set! conceal ""))
(("loop" @keyword) (#set! conceal "󰑓"))
(("match" @keyword) (#set! conceal "󰘬"))
(("pub" @keyword) (#set! conceal "󰧆"))
(("return" @keyword) (#set! conceal ""))
(("struct" @keyword) (#set! conceal "󰆦"))
(("unsafe" @keyword) (#set! conceal "💣"))
(("use" @keyword) (#set! conceal ""))
(("while" @keyword) (#set! conceal "󰇙"))
;; Common Variables
(((self) @variable.builtin) (#set! conceal ""))
;; Operators
(("&" @operator) (#set! conceal ""))
(("->" @operator) (#set! conceal ""))
(("=>" @operator) (#set! conceal "󰧂"))
(("?" @operator) (#set! conceal ""))