mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
Update zig highlights
Highlight the built-in `@import` function with the TSInclude highlight group. Also highlight character literals using TSCharacter instead of TSNumber.
This commit is contained in:
parent
37ed50f28f
commit
a7dac748ba
1 changed files with 7 additions and 1 deletions
|
|
@ -25,6 +25,11 @@
|
||||||
function: (identifier) @function.builtin
|
function: (identifier) @function.builtin
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(build_in_call_expr
|
||||||
|
function: ((identifier) @include
|
||||||
|
(#eq? @include "@import"))
|
||||||
|
)
|
||||||
|
|
||||||
;; other identifiers
|
;; other identifiers
|
||||||
(type_identifier) @type
|
(type_identifier) @type
|
||||||
(primitive_type) @type.builtin
|
(primitive_type) @type.builtin
|
||||||
|
|
@ -33,7 +38,7 @@
|
||||||
(line_comment) @comment
|
(line_comment) @comment
|
||||||
(doc_comment) @comment
|
(doc_comment) @comment
|
||||||
|
|
||||||
(char_literal) @number
|
(char_literal) @character
|
||||||
(integer_literal) @number
|
(integer_literal) @number
|
||||||
(float_literal) @number
|
(float_literal) @number
|
||||||
|
|
||||||
|
|
@ -47,6 +52,7 @@
|
||||||
(multiline_string_literal) @string
|
(multiline_string_literal) @string
|
||||||
|
|
||||||
(escape_sequence) @constant.builtin
|
(escape_sequence) @constant.builtin
|
||||||
|
(char_literal (escape_sequence) @character)
|
||||||
|
|
||||||
(label_identifier) @label
|
(label_identifier) @label
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue