Adding an inline comment somewhere should not affect formatting below
it. So, for inline comments, don't make the line type a comment, but
instead reuse the current line type so that the comment becomes
"transparent".
Blueprint allows both `//` and `/*...*/` style comments, but if a
project prefers only `/*...*/` comments, it is currently not possible to
have these inline.
Therefore, treat these comments equal if they occur inline. To make this
easier to understand, we refactor the comment handling slightly to first
handle single-line comment whitespace, and then handle newlines for both
single-line and multi-line style comments.
Adjust the test accordingly to make sure this works.
- Added tests for more error messages
- Test the "go to reference" feature at every character index of every
test case
- Delete unused code and imports
- Fix some bugs I found along the way