can-go
can-go copied to clipboard
Skip DBC comments
Can you describe a little bit about the current behavior and how this changes that?
Currenly comments are not ignored, so when parsing a line like this:
VERSION "2.0" // Another comment.
we get errors, as there is supposed to be no more data after the version string. This change just makes the parser skip all comments.
According to http://www.mcu.so/Microcontroller/Automotive/dbc-file-format-documentation_compress.pdf it seems like the comment format to use in DBC files are (* COMMENT *)
, not // COMMENT
.
We're hesistant to include non-standard behavior, as it could potentially conflict with other tooling.
Feel free to update the PR with this comment style, if you still want this feature :)