-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HTML] Nested templates in html/javascript not correctly handled #290
Comments
hey @nyamatongwe can i try this |
It's fine for anyone to propose changes. I don't assign ownership to bugs as they are often more complex than a contributor expects and the contributor eventually goes silent with no clear signal that they have stopped. This issue is likely more difficult than it seems. #280 was a deliberately simplified solution by a contributor with experience in this area. #94 is an implementation of template strings with expressions for stand-alone JavaScript files. |
The complex is that there are three places that enters JavaScript operator styles (so needs to handle end of interpolating on braces). Lines 2226 to 2230 in 942ac3f
Lines 2261 to 2264 in 942ac3f
Lines 2734 to 2736 in 942ac3f
Copy end of interpolating handling code from LexCPP into the three places may just work (need tests to test off-by-one error). Lines 1450 to 1465 in 942ac3f
|
I'm coming from this comment in a notepad++ issue. Writing here the text for convenience:
There's still a problem with nested string templates. Paste the following example code in notepad++ 8.7.1 with language set to "HTML" and the
innerHTML
line in the script will be shown completely unstyled:The text was updated successfully, but these errors were encountered: