aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-09-01 14:16:18 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2020-09-06 10:31:47 +0200
commite54c6b077cb5acb24004e6613d36a4b390d05390 (patch)
tree390eabec02e493162c4903a96da41183d5a580ea
parentdc579c420bf11654d08572811da29daa26297006 (diff)
downloadrneovim-e54c6b077cb5acb24004e6613d36a4b390d05390.tar.gz
rneovim-e54c6b077cb5acb24004e6613d36a4b390d05390.tar.bz2
rneovim-e54c6b077cb5acb24004e6613d36a4b390d05390.zip
treesitter: update docs on predicates
-rw-r--r--runtime/doc/lua.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 67a1554aa5..050483fb5e 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -756,14 +756,15 @@ Here is a list of built-in predicates :
((node1) @left (node2) @right (#eq? @left @right))
<
`match?` *ts-predicate-match?*
- This will match if the provived lua regex matches the text
+ `vim-match?` *ts-predicate-vim-match?*
+ This will match if the provived vim regex matches the text
corresponding to a node : >
((idenfitier) @constant (#match? @constant "^[A-Z_]+$"))
< Note: the `^` and `$` anchors will respectively match the
start and end of the node's text.
- `vim-match?` *ts-predicate-vim-match?*
- This will match the same way than |match?| but using vim
+ `lua-match?` *ts-predicate-lua-match?*
+ This will match the same way than |match?| but using lua
regexes.
`contains?` *ts-predicate-contains?*