Formatter panic with empty attribute inner comment #6181
Labels
bug
Something isn't working
formatter
Related to the formatter
help wanted
Contributions especially welcome
Milestone
The following snippet causes the formatter to panic:
There is not preceding node nor is the comment after the value range, since the comment is ahead of the value range, while the code was writing in the assumption that comments are either leading comments of the entire attribute expression or are after the value, not considering this odd parentheses case.
The text was updated successfully, but these errors were encountered: