Skip to content

Conversation

@RangelReale
Copy link

No description provided.

@RangelReale RangelReale requested a review from a team as a code owner December 27, 2023 12:21
@maxekman
Copy link

Can you describe a little bit about the current behavior and how this changes that?

@RangelReale
Copy link
Author

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.

@Jassob
Copy link
Member

Jassob commented May 16, 2024

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 :)

@Jassob Jassob added the dbc Changes to the DBC parser label May 16, 2024
@Jassob Jassob requested review from Jassob and removed request for a team May 16, 2024 15:17
Copy link
Member

@Jassob Jassob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comment about (* COMMENT *).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dbc Changes to the DBC parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants