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

32 lines
1.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
2023-06-08 19:27:16 +02:00
(("async" @keyword) (#set! conceal "󰜨"))
2022-03-22 13:40:28 +01:00
(("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 "λ"))
2023-06-08 19:27:16 +02:00
(("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 ""))
2023-06-08 19:27:16 +02:00
(("in" @keyword) (#set! conceal ""))
2022-03-22 13:42:25 +01:00
(("let" @keyword) (#set! conceal ""))
2023-06-08 19:27:16 +02: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 ""))
2023-06-08 19:27:16 +02:00
(("struct" @keyword) (#set! conceal "󰆦"))
2022-03-22 13:40:28 +01:00
(("unsafe" @keyword) (#set! conceal "💣"))
(("use" @keyword) (#set! conceal ""))
2023-06-08 19:27:16 +02:00
(("while" @keyword) (#set! conceal "󰇙"))
2022-03-22 13:40:28 +01:00
;; Common Variables
(((self) @variable.builtin) (#set! conceal ""))
;; Operators
(("&" @operator) (#set! conceal ""))
(("->" @operator) (#set! conceal ""))
2023-06-08 19:27:16 +02:00
(("=>" @operator) (#set! conceal "󰧂"))
2022-03-22 13:40:28 +01:00
(("?" @operator) (#set! conceal ""))