-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Nested template literals indent strangely #520
Comments
True. But please see the second item here: https://github.com/mooz/js2-mode#bugs |
@dgutov do template literals fall under the scope of js-mode though? i wasn't aware js-mode was intended to support es6 features The current features that are supporting template literals in js-mode are just supporting "multiline strings" (and accordingly, in js-mode the interpolated code is just highlighted as another part of the string) which is why i chose to open the issue here instead |
That's a fair question. We do rely on its indentation logic, though, so trying to support them there first would be natural. |
Noticed some strange behavior with indentation when nesting template literals. I imagine this is because inbuilt parsing is used to detect when inside strings for indentation, and this is causing it to understand the inside of the second template literal as the end of the first one and so on
The text was updated successfully, but these errors were encountered: