-
Notifications
You must be signed in to change notification settings - Fork 722
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
js: nested template highlighting #1670
Comments
I am not sure if this is possible to express given the way nested highlighters
will exit the literal at the first backtick even if it is nested inside a
I don't see any way to tell the region highlighter to understand nestings of |
Yeah, I dont think we can parse such nested syntax with the existing infrastructure, we would need more complex region definitions, where regions can contain subregions and those subregions might have the same delimiters as their parent region... This would be quite a change in the region highlighter design, but it might make sense to do it at some point. I must admit I am not entirely satisfied with the way we define regions at the moment, it would be nice to have each region defined by its own |
javascript template literals can have more template literals embedded within them. kak does not highlight nested templates correctly:
`string ${`also a string: let x = 42`}`
The text was updated successfully, but these errors were encountered: