mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17: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
|
||||
)
|
||||
|
||||
(build_in_call_expr
|
||||
function: ((identifier) @include
|
||||
(#eq? @include "@import"))
|
||||
)
|
||||
|
||||
;; other identifiers
|
||||
(type_identifier) @type
|
||||
(primitive_type) @type.builtin
|
||||
|
|
@ -33,7 +38,7 @@
|
|||
(line_comment) @comment
|
||||
(doc_comment) @comment
|
||||
|
||||
(char_literal) @number
|
||||
(char_literal) @character
|
||||
(integer_literal) @number
|
||||
(float_literal) @number
|
||||
|
||||
|
|
@ -47,6 +52,7 @@
|
|||
(multiline_string_literal) @string
|
||||
|
||||
(escape_sequence) @constant.builtin
|
||||
(char_literal (escape_sequence) @character)
|
||||
|
||||
(label_identifier) @label
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue