I realized a simple solution is simply to exclude "}} from the jinja end expression using a negative lookbehind
Seems like it plays nice with the existing test suite, but this doesn't cover triple nested dictionaries like }}}" (unless I add another negative lookbehind)
And also there's the possibility of jinja strings like so {{"foo"}} that will be impacted by this.
So I've closed this PR, since it doesn't qualify as a working solution.
Tried to raise a draft PR for 471 --
I realized a simple solution is simply to exclude
"}}
from the jinja end expression using a negative lookbehindSeems like it plays nice with the existing test suite, but this doesn't cover triple nested dictionaries like }}}" (unless I add another negative lookbehind)
And also there's the possibility of jinja strings like so {{"foo"}} that will be impacted by this.
So I've closed this PR, since it doesn't qualify as a working solution.