mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
highlight(zig): rework query
* improve query performance 120ms -> 6ms * correct highlight for field, type and function * add highlight for escape/format sequence in string
This commit is contained in:
parent
b5153b666e
commit
b52cccf899
3 changed files with 48 additions and 102 deletions
|
|
@ -1,9 +1,9 @@
|
|||
[
|
||||
; BUG: why function block not indent
|
||||
(Block)
|
||||
(ContainerDecl)
|
||||
(SwitchExpr)
|
||||
(InitList)
|
||||
(ContainerDecl)
|
||||
] @indent
|
||||
|
||||
[
|
||||
|
|
@ -19,5 +19,5 @@
|
|||
(line_comment)
|
||||
(container_doc_comment)
|
||||
(doc_comment)
|
||||
(STRINGLITERAL)
|
||||
(LINESTRING)
|
||||
] @ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue