aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_comment.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim/_comment.lua')
-rw-r--r--runtime/lua/vim/_comment.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_comment.lua b/runtime/lua/vim/_comment.lua
index c821f01257..de7f62632c 100644
--- a/runtime/lua/vim/_comment.lua
+++ b/runtime/lua/vim/_comment.lua
@@ -9,7 +9,7 @@
local function get_commentstring(ref_position)
local buf_cs = vim.bo.commentstring
- local ts_parser = vim.treesitter._get_parser()
+ local ts_parser = vim.treesitter.get_parser(0, '', { error = false })
if not ts_parser then
return buf_cs
end