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
Currently, if a diagnostic has two nodes to highlight, it will highlight them individually, leaving the trivia in between them non-highlighted. The easiest way to see this is by running
swift-parser-cli print-diags -s 'for x = 1; x < 10; x++ {}'
Note that the space between x and = should also be highlighted.
The text was updated successfully, but these errors were encountered:
I've implemented a solution to this issue and now I'd like to add unit tests to ensure that all edge cases are covered. Do we have a straightforward way to create Diagnostic.highlights efficiently in unit tests and attach them to a given syntax tree? I couldn't find anything like that in the codebase.
Currently, if a diagnostic has two nodes to highlight, it will highlight them individually, leaving the trivia in between them non-highlighted. The easiest way to see this is by running
swift-parser-cli print-diags -s 'for x = 1; x < 10; x++ {}'
Note that the space between
x
and=
should also be highlighted.The text was updated successfully, but these errors were encountered: