diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2020-09-06 13:19:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-06 13:19:12 +0200 |
| commit | 01b46013762f4dc6df30e048dc4c5dc51c128794 (patch) | |
| tree | 74bb77fb03aad0f9470c912f55e0b4e35c6be59c /runtime/doc | |
| parent | 280ee90f24050ae57d8ffac7a90d4cd45b58ee56 (diff) | |
| parent | 9c929e7d23b8eaf3ff57dbbe9346abc4430e7669 (diff) | |
| download | rneovim-01b46013762f4dc6df30e048dc4c5dc51c128794.tar.gz rneovim-01b46013762f4dc6df30e048dc4c5dc51c128794.tar.bz2 rneovim-01b46013762f4dc6df30e048dc4c5dc51c128794.zip | |
Merge pull request #12826 from vigoux/ts-lua-match
treesitter: use lua-match? instead of match?
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/lua.txt | 7 |
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?* |