~emersion/kanshi#111: 
Single quote marks not accepted in config file comments

Since latest update, single quote marks in a config file comment result in:

scfg: unexpected ''' in atom
failed to parse config file

This config result in the error above:

profile test {
	exec pactl set-default-sink alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink # test'test
}

While escaping the quote mark fixes it:

profile test {
	exec pactl set-default-sink alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink # test\'test
}

I believe comments should be ignored altogether and not parsed, right?

Thanks in advance!

Status
REPORTED
Submitter
~savagebutcher
Assigned to
No-one
Submitted
11 months ago
Updated
10 months ago
Labels
No labels applied.

~emersion 10 months ago

Ah, that's a consequence of the switch to libscfg for parsing. The scfg file format doesn't accept comments at end of line.