diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-07-28 12:14:23 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-28 16:13:11 +0200 |
commit | 5aa1a9532cbac835ad027ebdf04311c7e8fb7007 (patch) | |
tree | b58671e9cf1c69faa821cb44fa430db037d61e9c | |
parent | 9e80738f3073e6dc95ebefee60526c7c1499d7d2 (diff) | |
download | rneovim-5aa1a9532cbac835ad027ebdf04311c7e8fb7007.tar.gz rneovim-5aa1a9532cbac835ad027ebdf04311c7e8fb7007.tar.bz2 rneovim-5aa1a9532cbac835ad027ebdf04311c7e8fb7007.zip |
docs(treesitter): don't quote metadata
-rw-r--r-- | runtime/doc/treesitter.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index ed514cb722..2249f4865c 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -337,7 +337,7 @@ TREESITTER QUERY DIRECTIVES *treesitter-directives* Treesitter directives store metadata for a node or match and perform side effects. For example, the `set!` directive sets metadata on the match or node: >query - ((identifier) @foo (#set! "type" "parameter")) + ((identifier) @foo (#set! type "parameter")) < The following directives are built in: @@ -352,9 +352,9 @@ The following directives are built in: {value} Examples: >query - ((identifier) @foo (#set! @foo "kind" "parameter")) - ((node1) @left (node2) @right (#set! "type" "pair")) - ((codeblock) @markup.raw.block (#set! "priority" 90)) + ((identifier) @foo (#set! @foo kind "parameter")) + ((node1) @left (node2) @right (#set! type "pair")) + ((codeblock) @markup.raw.block (#set! priority 90)) < `offset!` *treesitter-directive-offset!* Takes the range of the captured node and applies an offset. This will @@ -638,7 +638,7 @@ higher than treesitter. It is also possible to change the priority of an individual query pattern manually by setting its `"priority"` metadata attribute: >query - ((super_important_node) @superimportant (#set! "priority" 105)) + ((super_important_node) @superimportant (#set! priority 105)) < ============================================================================== |