feat(view): preserve bracket-marked calls without modifiers
Track CallExpr.bracket_marked from `[callee]` parse so Structure display keeps `[fn] …` instead of falling back to `> fn …` when there are no pre-modifiers. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d5a9301c7f
commit
551f4ff322
5 files changed
+50
-3
No files matched your search
@@ -121,6 +121,9 @@ pub struct CallExpr {
|
||||
/// Pre-bracket modifiers: `礼貌 [问候] x` → `["礼貌"]`, expanded to `礼貌=True` at eval.
|
||||
/// See [bracket-call-modifiers.md](../../doc/design/bracket-call-modifiers.md).
|
||||
pub pre_modifiers: Vec<String>,
|
||||
/// True when the call was authored with `[callee]` (even with no modifiers).
|
||||
/// View prefers `修饰 [callee] …` / `[callee] …` over `> callee …` when set.
|
||||
pub bracket_marked: bool,
|
||||
}
|
||||
|
||||
impl CallExpr {
|
||||
|
||||
Reference in new issue
Block a user