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:
maxxnino 2021-08-23 14:46:27 +09:00 committed by Stephan Seitz
parent b5153b666e
commit b52cccf899
3 changed files with 48 additions and 102 deletions

View file

@ -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