aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-08-22 20:22:20 -0500
committerGitHub <noreply@github.com>2021-08-22 20:22:20 -0500
commitddcfc019792e67ca632b5698ea739bbff51518c0 (patch)
treeb687b0c02489a6a31d41ab51ac8e73ed7fbafe27 /lua
parenthighlights(php): add `instanceof` as `@keyword` (#1728) (diff)
downloadnvim-treesitter-ddcfc019792e67ca632b5698ea739bbff51518c0.tar
nvim-treesitter-ddcfc019792e67ca632b5698ea739bbff51518c0.tar.gz
nvim-treesitter-ddcfc019792e67ca632b5698ea739bbff51518c0.tar.bz2
nvim-treesitter-ddcfc019792e67ca632b5698ea739bbff51518c0.tar.lz
nvim-treesitter-ddcfc019792e67ca632b5698ea739bbff51518c0.tar.xz
nvim-treesitter-ddcfc019792e67ca632b5698ea739bbff51518c0.tar.zst
nvim-treesitter-ddcfc019792e67ca632b5698ea739bbff51518c0.zip
Query: allow to pass a list to get_capture_matches (#1693)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/query.lua37
1 files changed, 25 insertions, 12 deletions
diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua
index 1d8099ec9..0d2e8cb3d 100644
--- a/lua/nvim-treesitter/query.lua
+++ b/lua/nvim-treesitter/query.lua
@@ -195,22 +195,35 @@ end
--- Return all nodes corresponding to a specific capture path (like @definition.var, @reference.type)
-- Works like M.get_references or M.get_scopes except you can choose the capture
--- Can also be a nested capture like @definition.function to get all nodes defining a function