dotfiles/.config/nvim/queries/rust/highlights.scm

32 lines
1 KiB
Scheme
Raw Normal View History

2022-09-20 19:42:56 +02:00
; extends
2022-03-22 13:40:28 +01:00
;; Keywords
(("async" @keyword) (#set! conceal "ﰦ"))
(("await" @keyword) (#set! conceal ""))
(("dyn" @keyword) (#set! conceal "﫢"))
2022-03-23 12:33:52 +01:00
(("else" @keyword) (#set! conceal ""))
2022-03-22 13:40:28 +01:00
(("enum" @keyword) (#set! conceal ""))
(("fn" @keyword) (#set! conceal "λ"))
(("for" @keyword) (#set! conceal "ﳁ"))
2022-03-23 12:33:52 +01:00
(("if" @keyword) (#set! conceal ""))
2022-03-22 13:40:28 +01:00
(("impl" @keyword) (#set! conceal ""))
(("in" @keyword) (#set! conceal "ﲒ"))
2022-03-22 13:42:25 +01:00
(("let" @keyword) (#set! conceal ""))
2022-03-22 13:40:28 +01:00
(("loop" @keyword) (#set! conceal "ﯩ"))
(("match" @keyword) (#set! conceal ""))
(("pub" @keyword) (#set! conceal ""))
2022-03-23 12:33:52 +01:00
(("return" @keyword) (#set! conceal ""))
2022-03-22 13:40:28 +01:00
(("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 ""))