First version
This commit is contained in:
31
after/queries/go/highlights.scm
Normal file
31
after/queries/go/highlights.scm
Normal file
@@ -0,0 +1,31 @@
|
||||
;; lgwtdark: split string bodies vs delimiters (delim white via extmarks in go_extra.lua).
|
||||
;; Lower parent literal ranges so inner captures win.
|
||||
|
||||
((interpreted_string_literal) @string
|
||||
(#set! priority 95))
|
||||
|
||||
((interpreted_string_literal_content) @string
|
||||
(#set! priority 115))
|
||||
|
||||
((escape_sequence) @string.escape
|
||||
(#set! priority 115))
|
||||
|
||||
((raw_string_literal) @string
|
||||
(#set! priority 95))
|
||||
|
||||
((raw_string_literal_content) @string
|
||||
(#set! priority 115))
|
||||
|
||||
;; rune 'x' is one token — quotes/inner in go_extra.lua
|
||||
((rune_literal) @string
|
||||
(#set! priority 88))
|
||||
|
||||
;; Site: nil / booleans read as values (warm), not like keywords. iota stays default @constant.builtin.
|
||||
((nil) @number
|
||||
(#set! priority 128))
|
||||
|
||||
((true) @number
|
||||
(#set! priority 128))
|
||||
|
||||
((false) @number
|
||||
(#set! priority 128))
|
||||
Reference in New Issue
Block a user