refactor: replace stat-parser with declare-parser

Replace the old stat-parser logic with a new declare-parser to handle
variable declarations and tag modifiers. This includes moving the
declare-parser logic to a shared location in cli/completions to avoid
duplication between the CLI and the journal component.
This commit is contained in:
2026-07-12 19:14:35 +08:00
parent dbe2f9d9d8
commit 981c829d0f
8 changed files with 158 additions and 547 deletions
+2 -2
View File
@@ -4,9 +4,9 @@
* Parses fenced code blocks with attributes:
* ```lang id=xxx role=xxx as=xxx
*
* - `role` dispatches to content scanners (stat, stat-template, spark-table)
* - `role` dispatches to content scanners (declare, spark-table)
* - `as` controls rendering (none, codeblock, md-table, md-card, md-dice)
* - `id` is used for cross-references (template names, file paths)
* - `id` is used for cross-references (file paths)
*/
// ---------------------------------------------------------------------------