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
+5 -5
View File
@@ -12,8 +12,8 @@ export type {
DiceCompletion,
LinkCompletion,
SparkTableCompletion,
StatDef,
StatTemplate,
VarDeclaration,
TagModifier,
} from "./types.js";
/**
@@ -40,7 +40,7 @@ export function scanCompletions(
dice,
links,
sparkTables,
stats: blocks.stats,
statTemplates: blocks.statTemplates,
declarations: blocks.declarations,
tagModifiers: blocks.tagModifiers,
};
}
}