mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs(treesitter): change links for eq?
and set!
to codeblocks (#21047)
This commit is contained in:
parent
7439973851
commit
9d2a6cd11e
@ -212,7 +212,7 @@ treesitter queries from Lua.
|
|||||||
TREESITTER QUERY PREDICATES *treesitter-predicates*
|
TREESITTER QUERY PREDICATES *treesitter-predicates*
|
||||||
|
|
||||||
Predicates are special scheme nodes that are evaluated to conditionally capture
|
Predicates are special scheme nodes that are evaluated to conditionally capture
|
||||||
nodes. For example, the |eq?| predicate can be used as follows: >
|
nodes. For example, the `eq?` predicate can be used as follows: >
|
||||||
|
|
||||||
((identifier) @foo (#eq? @foo "foo"))
|
((identifier) @foo (#eq? @foo "foo"))
|
||||||
<
|
<
|
||||||
@ -261,7 +261,7 @@ predicates.
|
|||||||
TREESITTER QUERY DIRECTIVES *treesitter-directives*
|
TREESITTER QUERY DIRECTIVES *treesitter-directives*
|
||||||
|
|
||||||
Treesitter directives store metadata for a node or match and perform side
|
Treesitter directives store metadata for a node or match and perform side
|
||||||
effects. For example, the |set!| predicate sets metadata on the match or node: >
|
effects. For example, the `set!` directive sets metadata on the match or node: >
|
||||||
|
|
||||||
((identifier) @foo (#set! "type" "parameter"))
|
((identifier) @foo (#set! "type" "parameter"))
|
||||||
<
|
<
|
||||||
|
Loading…
Reference in New Issue
Block a user