feat(parse): bold infix expressions are ExprStmt, not calls
`` **n + 1** `` evaluates and discards (design §6.2); keep assign-first and bare-call fallback. Explicit `` **> …** `` uses standalone bare=text rules. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
114fd53cd1
commit
bccfec86ba
9 files changed
+81
-8
No files matched your search
@@ -3883,3 +3883,8 @@ fn markup_v03_leading_backtick_decl() {
|
||||
fn markup_v03_decl_ident_only() {
|
||||
assert_out_v03("tests/markup-v03/decl-ident-only.mq.md", "42");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn markup_v03_bold_expr() {
|
||||
assert_out_v03("tests/markup-v03/bold-expr.mq.md", "42");
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title: bold expression statement
|
||||
description: >-
|
||||
`` **n + 1** `` is an expression statement (discarded), not a call to `n`
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
**n = 41**
|
||||
**n + 1**
|
||||
**m = n + 1**
|
||||
> print text=`m`
|
||||
Reference in new issue
Block a user