bool test1(int a) {
return true;
}
bool
test2(int a) {
return true;
}
Using inspect tokens and scopes, we see that test1 is defined as a entity.name.function.definition.
However, with the added line break, test2 is defined as a entity.name.function.call.
This is fine in the default VS Code theme, since these are coloured the same, however, with themes that differentiate, it results in the syntax highlighting looking off.
To reproduce the above, add the following to settings.json:
Consider the following code:
Using inspect tokens and scopes, we see that
test1
is defined as aentity.name.function.definition
.However, with the added line break,
test2
is defined as aentity.name.function.call
.This is fine in the default VS Code theme, since these are coloured the same, however, with themes that differentiate, it results in the syntax highlighting looking off.
To reproduce the above, add the following to settings.json: