Repository navigation
UI: Fix Dag code highlighting for escaped f-string braces - #67997
Closed
GayathriSrividya wants to merge 1 commit into
Closed
GayathriSrividya wants to merge 1 commit into
GayathriSrividya wants to merge 1 commit into
Conversation
GayathriSrividya
requested review from
bbovenzi,
choo121600,
guan404ming,
pierrejeambrun,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
June 4, 2026 06:09
GayathriSrividya
force-pushed
the
fix/ui-dag-code-fstring-highlight-67986
branch
from
June 4, 2026 10:31
44ef130 to
ad48ae7
Compare
1 task done
Contributor
|
Duplicate of #68026 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.