aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/tree_sitter_demo.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-07 18:19:59 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-09-28 14:55:43 +0200
commit1e9e2451bef21ff705e677802d1b0980356f1f86 (patch)
tree27ea9d1f928b9de46d864bf348ddfa196ae2d127 /runtime/lua/tree_sitter_demo.lua
parent005b6d638caa200711bf5960e0c0d70ba5721c94 (diff)
downloadrneovim-1e9e2451bef21ff705e677802d1b0980356f1f86.tar.gz
rneovim-1e9e2451bef21ff705e677802d1b0980356f1f86.tar.bz2
rneovim-1e9e2451bef21ff705e677802d1b0980356f1f86.zip
tree-sitter: objectify API
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)