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
(("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 ""))
2023-01-26 19:26:59 +01:00
(("struct" @keyword) (#set! conceal ""))
2022-06-13 22:37:16 +02:00
(("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 ""))