From 75ee7ff2f06628d161c621539b97277f8fd9a1a0 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 1 May 2025 10:37:30 +0200 Subject: tests(gleam): fix assert tests that no longer parse correctly --- lua/nvim-treesitter/indent.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/indent.lua b/lua/nvim-treesitter/indent.lua index 5d9e86f66..dda632df3 100644 --- a/lua/nvim-treesitter/indent.lua +++ b/lua/nvim-treesitter/indent.lua @@ -4,6 +4,8 @@ local M = {} M.comment_parsers = { comment = true, + luadoc = true, + javadoc = true, jsdoc = true, phpdoc = true, } @@ -121,7 +123,6 @@ function M.get_indent(lnum) return -1 end - -- Reparse in case we got triggered by ":h indentkeys" parser:parse({ vim.fn.line('w0') - 1, vim.fn.line('w$') }) -- Get language tree with smallest range around node that's not a comment parser -- cgit v1.2.3-70-g09d2