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

35 lines
1 KiB
Scheme
Raw Normal View History

2022-09-20 19:42:56 +02:00
; extends
2022-06-13 22:37:16 +02:00
;; Keywords
2023-06-08 19:27:16 +02:00
(("async" @keyword) (#set! conceal "󰜨"))
2022-06-13 22:37:16 +02:00
(("const" @keyword) (#set! conceal ""))
(("else" @keyword) (#set! conceal ""))
(("enum" @keyword) (#set! conceal ""))
(("fn" @keyword) (#set! conceal "λ"))
2023-06-08 19:27:16 +02:00
(("for" @keyword) (#set! conceal "󰇘"))
2022-06-13 22:37:16 +02:00
(("if" @keyword) (#set! conceal ""))
2023-06-08 19:27:16 +02:00
(("pub" @keyword) (#set! conceal "󰧆"))
2022-06-13 22:37:16 +02:00
(("return" @keyword) (#set! conceal ""))
2023-06-08 19:27:16 +02:00
(("struct" @keyword) (#set! conceal "󰆦"))
(("switch" @keyword) (#set! conceal "󰘬"))
2022-06-13 22:37:16 +02:00
(("var" @keyword) (#set! conceal ""))
2023-06-08 19:27:16 +02:00
(("while" @keyword) (#set! conceal "󰇙"))
2022-06-13 22:37:16 +02:00
(("try" @keyword) (#set! conceal ""))
2023-06-08 19:27:16 +02:00
(("comptime" @keyword) (#set! conceal "󰟾"))
2022-06-13 22:37:16 +02:00
;; Functions
((BUILTINIDENTIFIER) @include
(#any-of? @include "@import" "@cImport")
(#set! conceal ""))
;; Common Variables
(((IDENTIFIER) @variable
(#eq? @variable "self"))
(#set! conceal ""))
;; Operators
(("&" @operator) (#set! conceal ""))
(("*" @operator) (#set! conceal ""))
2023-06-08 19:27:16 +02:00
(("=>" @operator) (#set! conceal "󰧂"))
(("?" @operator) (#set! conceal ""))