fix(parse): diagnose unclosed code-shaped bold

Treat `` **x = 1 `` as Code and error with a clear unclosed-`**` diagnostic instead of silently skipping it as a comment.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-14 14:39:58 +08:00
1 parent 95a49697f7
commit 6f303ff957
6 files changed
+86 -30

No files matched your search

+2 -1
View File
@@ -53,7 +53,8 @@
- [x] else 臂 `N. *` 与返回斜体消歧
- [x] 一行多 `**…**` 按序执行
- [x] 金样例:`---` / `*None*` / 整行 `**` / 兼容 `****`;叙述死绑定不升参
- [ ] 诊断:必选缺失、未知 callee;空返回残缺粗体;死变量仅可选 lint
- [x] 诊断:必选缺失、未知 callee(已有 errors 金样);未闭合代码形粗体;死变量不报错
- [ ] (可选)死变量 hint lint;空返回其它歧义边角
**出门:** `tests/markup-v03/*` 覆盖设计 §9 示例。