ts_query_ls/queries/query/diagnostics.scm
Riley Bruins bcea9c4252
refactor: move large query strings into their own files (#94)
This commit also adds another test for formatting, and fixes an issue
where the final newline was not appended to a formatted document.
2025-04-29 18:05:00 -07:00

37 lines
566 B
Scheme

(ERROR) @error
(MISSING) @missing
(anonymous_node
(string
(string_content) @node.anon))
(named_node
.
name: (identifier) @node.named)
(named_node
.
supertype: (identifier) @supertype)
(missing_node
name: (identifier) @node.named)
(missing_node
name: (string
(string_content) @node.anon))
(field_definition
name: (identifier) @field)
(capture) @capture
(predicate
name: (identifier) @predicate
(predicate_type) @_type
(#eq? @_type "?"))
(predicate
name: (identifier) @directive
(predicate_type) @_type
(#eq? @_type "!"))