dotfiles/mzte-nv/conf/queries/rust/highlights.scm
2023-01-26 19:26:59 +01:00

31 lines
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 ""))