dotfiles/mzte-nv/conf/queries/zig/highlights.scm
2023-06-08 19:27:16 +02:00

35 lines
1 KiB
Scheme

; extends
;; Keywords
(("async" @keyword) (#set! conceal "󰜨"))
(("const" @keyword) (#set! conceal ""))
(("else" @keyword) (#set! conceal ""))
(("enum" @keyword) (#set! conceal ""))
(("fn" @keyword) (#set! conceal "λ"))
(("for" @keyword) (#set! conceal "󰇘"))
(("if" @keyword) (#set! conceal ""))
(("pub" @keyword) (#set! conceal "󰧆"))
(("return" @keyword) (#set! conceal ""))
(("struct" @keyword) (#set! conceal "󰆦"))
(("switch" @keyword) (#set! conceal "󰘬"))
(("var" @keyword) (#set! conceal ""))
(("while" @keyword) (#set! conceal "󰇙"))
(("try" @keyword) (#set! conceal ""))
(("comptime" @keyword) (#set! conceal "󰟾"))
;; 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 ""))
(("=>" @operator) (#set! conceal "󰧂"))
(("?" @operator) (#set! conceal ""))