sabieber / vscode-hocon

HOCON Config Syntax Highlighting For Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Values require whitespace after them on the same line in order to render correctly

movermeyer opened this issue · comments

The rendering of values, comments, and commas depends on whether or not there are whitespace characters following the value.

case1
In the above image, we see that the colouring of the integer, colon, and comma depend on whether there is a space character on the same line after it.

I would have expected all of the elements to have consistent colouring across the above cases.

case2

In the next image, we see that in-line comments are also impacted by the existence of whitespace.
Again, I would have expected all of the elements to have consistent colouring across the above cases.
The first line is also inconsistent with stand-alone comment lines, even when the stand-alone comment line doesn't have any whitespace.

case3

The last image illustrates my hypothesis that the line stops rendering at the last element that doesn't have any whitespace after it.

I would have expected all of the elements to have consistent colouring across the above cases.