[DBC]Add support for multiple signal multiplexor values #719
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Vector CANDB++ supports adding multiple multiplexor values:
![kép](https://private-user-images.githubusercontent.com/1609182/297347289-b00a33fa-b498-43e7-a088-08a333b2082e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjk1NDgsIm5iZiI6MTczOTA2OTI0OCwicGF0aCI6Ii8xNjA5MTgyLzI5NzM0NzI4OS1iMDBhMzNmYS1iNDk4LTQzZTctYTA4OC0wOGEzMzNiMjA4MmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDI0NzI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDIyYzk1ZDAxNjIxOTBiMzNlNGE3YzkxOGMyNjhjZmQxY2RiYTk1ZDIyOWM3MjYzMTk1ZmM0MjhhMjIyMDJmYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.xivuIm9LA_A3x5hgYSpkF7g8ukONr2MoJ8j7qctKTa0)
This translates to the following line in DBC:
![kép](https://private-user-images.githubusercontent.com/1609182/297347554-a267fc4f-cc40-42b4-836a-8cfb0835c1a2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjk1NDgsIm5iZiI6MTczOTA2OTI0OCwicGF0aCI6Ii8xNjA5MTgyLzI5NzM0NzU1NC1hMjY3ZmM0Zi1jYzQwLTQyYjQtODM2YS04Y2ZiMDgzNWMxYTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDI0NzI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjFlMmYzNTYwYWUyYjkxZjZlNDM1ZDYwZmY1Njk4MTQ1Yjk3ODlkNmI5MDQ4ZDcyYmE5MmVjODlhNzI5ZDBiOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.HqFkIoky4N-6T5GsQOczgFu_IJJ23shLZlhxgRWLtJA)
The current regex was unable to match these lines, so this PR fixes it.
As it turned out the SavvyCAN has a more comprehensive DBC support than I thought so I went through and modified all the bits and pieces necessary to support multiple multiplex ranges.