feat(core): make checkbox lexing honor a configurable listsyms palette

Add a ListSyms type (vimwiki's g:vimwiki_listsyms) and thread it through
the lexer so checkbox glyphs are recognized from the configured palette
rather than the hardcoded ' .oOX'. Glyphs map to the existing five-bucket
CheckboxState, so the HTML renderer and AST consumers are unchanged.
VimwikiSyntax::parse_with_listsyms opts into a custom palette; the trait
parse() keeps the default.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 23:32:07 -03:00
parent d22c81ea4f
commit 85094d6e3b
5 changed files with 249 additions and 18 deletions
+1
View File
@@ -5,5 +5,6 @@
pub mod ast;
pub mod date;
pub mod listsyms;
pub mod render;
pub mod syntax;