libvyosconfig fails to parse comments that are not before a node.
Example:
system { host-name vyos /* This causes "Parse error" */ }
Calling from_string() with this example returns a null pointer. Then get_error() returns "Parse error".
I downloaded libvyosconfig.so.0 from dev.packages.vyos.net/repositories/crux/vyos/pool/main/libv/libvyosconfig0/libvyosconfig0_0.0.8_amd64.deb.
Purposed solution:
Just like multiple comments before a node, these kind of comments can be ignored.