fmease / lushui

The reference compiler of the Lushui programming language
Apache License 2.0
7 stars 0 forks source link

Weird diagnostic formatting when highlight ends in two line breaks #133

Open fmease opened 2 years ago

fmease commented 2 years ago

Example (a metadata file):

# TEST fail check

Example diagnostic:

error[E802]: the map is missing the key `name`
 --> /home/fmease/programming/main_projects/lushui/test/ui/tests/packages/empty-manifest/package.metadata:1:1
  |
1 |   # TEST fail check
  |  _^
2 | |
  | |^
  |

See the |^ at the end? Looks weird and should (probably be a |_^) since currently the ^ points “outside” of the document (see how the #, the start of the file, is one column further to the right).