fix(kitty): Switched to #lua-match?

This commit is contained in:
Shawon 2025-09-18 00:25:23 +06:00
parent f04776d361
commit 8be7913629

View file

@ -26,7 +26,7 @@
; Color names & `none`. ; Color names & `none`.
((color) @constant ((color) @constant
(#match? @constant "^[^#]")) (#lua-match? @constant "^[^#]"))
; ;
(string) @string (string) @string
@ -120,7 +120,7 @@
; Command flags(`--flag`) should be highlighted *differently*. ; Command flags(`--flag`) should be highlighted *differently*.
(kitten_arguments (kitten_arguments
(string) @variable.parameter (string) @variable.parameter
(#match? @variable.parameter "^-")) (#lua-match? @variable.parameter "^-"))
; Launch ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Launch ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(launch (launch
@ -415,7 +415,7 @@
; Only color known option values ; Only color known option values
(layout_option (layout_option
name: (string) @variable.parameter name: (string) @variable.parameter
(#match? @variable.parameter "^(bias|full_size|mirrored|split_axis)$") (#lua-match? @variable.parameter "^(bias|full_size|mirrored|split_axis)$")
"=" @punctuation.delimiter) "=" @punctuation.delimiter)
; Strings are mostly pre-defined keywords. ; Strings are mostly pre-defined keywords.