You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm, where would you stick the comment in this situation? I just quickly stuck it into prettier and I see that for JavaScript they just stick the comment before the b = line - probably the easiest place to put it
Yeah, I'll probably stick it on the line above, because that's the simplest way to do it currently.
Hopefully I'll get time today to sort it out and publish a new release
JohnnyMorganz
changed the title
Bug: Shouldn't collapse into previous line's comment
Comments in unusual locations of a table lead to syntax errors
Jan 1, 2022
Similar to #23 and #307, comments inside a table definition makes stylua create invalid syntax:
becomes
Tested on v0.11.2
The text was updated successfully, but these errors were encountered: