Skip to content

Fix template interpolation opener scanning#2

Merged
johnsoncodehk merged 1 commit into
johnsoncodehk:masterfrom
bzy-debug:codex/moonbit-template-interpolation
Jun 4, 2026
Merged

Fix template interpolation opener scanning#2
johnsoncodehk merged 1 commit into
johnsoncodehk:masterfrom
bzy-debug:codex/moonbit-template-interpolation

Conversation

@bzy-debug
Copy link
Copy Markdown
Contributor

@bzy-debug bzy-debug commented Jun 4, 2026

Summary

  • Check a configured template interpolation opener before generic escape handling
  • Allows template delimiters that begin with backslash, such as MoonBit \{...} interpolation

Why

When template.interpOpen starts with \, the scanner previously consumed it as a normal escape first, making the interpolation branch unreachable.

@johnsoncodehk johnsoncodehk merged commit eb22317 into johnsoncodehk:master Jun 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants