mirror of
https://github.com/sbrow/thor.git
synced 2026-10-25 10:11:55 -04:00
1.0 KiB
1.0 KiB
- Initialize string builder size based on filesize?
- Review whitespace handling code
- Add leak checks for public procs.
- Simplify
trim_standalone_whitespace— four temp arrays (li_buf,ri_buf,left_done,right_done) could potentially be reduced to two by merging the done-tracking into the index buffers using sentinel values (e.g.-2= already trimmed). - Adjacent standalone tags don't capture indent for the second tag (e.g.
{{>a}}\n {{>b}}—{{>b}}getsindent=""because its left text was consumed by{{>a}}'s right-trim). Blocks recover viadeindent_blocks, but partials/parents have no fallback. - lazy load partials ? (with mutex)
- Support changing delimiters (Set Delimiter tag
{{=<% %>=}}). Delimiters{{/}}/{{{/}}}are hardcoded in tokenizer.odin; needs an=sigil case, mutable open/close delimiters threaded throughtokenize, and wiring upspec/specs/delimiters.jsoninspec_test.odin(fixture present but not run).