aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-05-01 10:37:30 +0200
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit75ee7ff2f06628d161c621539b97277f8fd9a1a0 (patch)
tree2993bcbe6e4b15540cd0ab3e722f3c619899952e /lua
parentfeat(vim): update parser and queries (diff)
downloadnvim-treesitter-75ee7ff2f06628d161c621539b97277f8fd9a1a0.tar
nvim-treesitter-75ee7ff2f06628d161c621539b97277f8fd9a1a0.tar.gz
nvim-treesitter-75ee7ff2f06628d161c621539b97277f8fd9a1a0.tar.bz2
nvim-treesitter-75ee7ff2f06628d161c621539b97277f8fd9a1a0.tar.lz
nvim-treesitter-75ee7ff2f06628d161c621539b97277f8fd9a1a0.tar.xz
nvim-treesitter-75ee7ff2f06628d161c621539b97277f8fd9a1a0.tar.zst
nvim-treesitter-75ee7ff2f06628d161c621539b97277f8fd9a1a0.zip
tests(gleam): fix assert tests that no longer parse correctly
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/indent.lua3
1 files changed, 2 insertions, 1 deletions
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