aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/tree_sitter_demo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/tree_sitter_demo.lua')
-rw-r--r--runtime/lua/tree_sitter_demo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/tree_sitter_demo.lua b/runtime/lua/tree_sitter_demo.lua
index 24a0f3d622..bbfd69109d 100644
--- a/runtime/lua/tree_sitter_demo.lua
+++ b/runtime/lua/tree_sitter_demo.lua
@@ -7,7 +7,7 @@ end
local my_ns = __treesitter_rt_ns
function ts_inspect_pos(row,col)
- local tree = parse_tree(theparser)
+ local tree = theparser:parse_tree()
local root = tree:root()
local node = root:descendant_for_point_range(row,col,row,col)
show_node(node)