mirror of
https://github.com/langgenius/dify.git
synced 2026-07-14 08:57:02 +08:00
Frontend review (Confluence 491028481) asked to drop the {{#…#}} wrapper (looks
like a Dify template variable) and unify the two separators into one. New token:
[§<kind>:<id>[:<label>]§]
- [§…§] wrapper uses the section sign § (U+00A7) — never appears in Dify template
syntax ({{var}} / {{#a.b#}}) nor in normal prompt text, so zero collision (a
cleaner argument than the old colon-form-invisibility one).
- single ':' separates all three fields; label is the trailing remainder and may
itself contain ':'.
- MENTION_PATTERN / residual-marker regex / scrub all updated; legacy {{#context#}}
and {{var}} forms still pass through untouched.
Pure delimiter swap — parse/expand/scrub/validation semantics unchanged.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>