feat(treesitter/extmark): support removing a conceal highlight #35087

Problem:
Cannot remove a `@conceal` highlight when defined in highlights.scm.

Solution:
Support a `@noconceal` highlight that works similarly to `@nospell` where it
overrides the conceal set on the range to remove it. Additionally, can
set the conceal metadata field to false for the same behavior.
This commit is contained in:
Peter Cardenas
2026-04-25 08:42:44 -07:00
committed by GitHub
parent b70224e3bd
commit eeee4bd4fc
15 changed files with 116 additions and 35 deletions

View File

@@ -609,7 +609,7 @@ predicate_handlers['any-vim-match?'] = predicate_handlers['any-match?']
---@class vim.treesitter.query.TSMetadata
---@field range? Range
---@field offset? Range4
---@field conceal? string
---@field conceal? string|boolean
---@field bo.commentstring? string
---@field [integer]? vim.treesitter.query.TSMetadata
---@field [string]? integer|string