Skip to content

UI: Fix Dag code highlighting for escaped f-string braces - #67997

Closed
GayathriSrividya wants to merge 1 commit into
apache:mainfrom
GayathriSrividya:fix/ui-dag-code-fstring-highlight-67986
Closed

GayathriSrividya wants to merge 1 commit into
apache:mainfrom
GayathriSrividya:fix/ui-dag-code-fstring-highlight-67986

Conversation

@GayathriSrividya

@GayathriSrividya GayathriSrividya commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

closes #67986

Fix Dag code Monaco Python tokenization for escaped braces inside f-strings (for example Jinja templates like '{{{{ ds }}}}' inside an f-string). The patch adds escaped-brace rules before interpolation matching so highlighting no longer leaks past the string boundary.

Also adds a unit test that verifies the tokenizer patch is applied to both f-string states and remains idempotent.

@bbovenzi

bbovenzi commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Duplicate of #68026

@bbovenzi bbovenzi marked this as a duplicate of #68026 Jun 4, 2026
@bbovenzi bbovenzi closed this Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DAG code syntax highlighting is incorrect with f-strings

2 participants