diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2021-08-02 15:18:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 15:18:37 +0200 |
commit | 93443d59a9680a6055d4602653d34516bc2c2571 (patch) | |
tree | ce172a84458b58de0804f589a6fb650421af9e6b | |
parent | 3f9a838454e78252cfd90311472978960040d4ec (diff) | |
parent | 4c605ec78a581be79ea8118a48b91dd8a36cc69d (diff) | |
download | rneovim-93443d59a9680a6055d4602653d34516bc2c2571.tar.gz rneovim-93443d59a9680a6055d4602653d34516bc2c2571.tar.bz2 rneovim-93443d59a9680a6055d4602653d34516bc2c2571.zip |
Merge pull request #15233 from baahrens/doc-treesitter-fix-typos
doc(treesitter): Fix typos
-rw-r--r-- | runtime/doc/treesitter.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index 80500e3c15..906e2d716a 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -215,9 +215,9 @@ Here is a list of built-in predicates : ((identifier) @foo-bar (#contains @foo-bar "foo" "bar")) < `any-of?` *ts-predicate-any-of?* - Will check if the text is the same as any of the following + Will check if the text is the same as any of the following. This is the recommended way to check if the node matches one - of many keywords for exemple, as it has been optimized for + of many keywords for example, as it has been optimized for this. arguments : > ((identifier) @foo (#any-of? @foo "foo" "bar")) @@ -241,7 +241,7 @@ This lists the currently available predicates to use in queries. Treesitter Query Directive *lua-treesitter-directives* Treesitter queries can also contain `directives`. Directives store metadata for a node -or match and perform side effects. for example, the |set!| predicate sets metadata on +or match and perform side effects. For example, the |set!| predicate sets metadata on the match or node : > ((identifier) @foo (#set! "type" "parameter")) |