hangxingliu/vscode-systemd-support

Misleading comment highlighting

Closed this issue · 2 comments

fenhl commented

Only lines starting with # or ; are considered comments (source), however this extension also highlights text from a # in the middle of the line as a comment. In reality, this text will be considered part of the configuration value, leading to errors like the following:

Failed to parse the OOM score adjust value '-500 # make it less likely that Minecraft is killed when the system is out of RAM', ignoring: Invalid argument

next version

This bug has been fixed in the new version.The new version extension will be released on today.

And the latest extension has been refactored and is moved to here https://github.com/hangxingliu/vscode-systemd