[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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjA2NTQsIm5iZiI6MTczOTQ2MDM1NCwicGF0aCI6Ii8xNjA5MTgyLzI5NzM0NzI4OS1iMDBhMzNmYS1iNDk4LTQzZTctYTA4OC0wOGEzMzNiMjA4MmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTUyNTU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2Y1MzI1MWVhMWYzNThkYTAzMWNmNjdhM2EyY2IxZjE3ZDg5MTViMDc2OTNkMGJjNDZkZDhhMTJlMDAwNTc3OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ByRxQ6IZRvZiwzfXc2FqjVi_OK0RI2OzkJhB9MCGz18)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjA2NTQsIm5iZiI6MTczOTQ2MDM1NCwicGF0aCI6Ii8xNjA5MTgyLzI5NzM0NzU1NC1hMjY3ZmM0Zi1jYzQwLTQyYjQtODM2YS04Y2ZiMDgzNWMxYTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTUyNTU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzJlYzczMmVkMjVlZWM5YmRhZjdlNDViNDg5YjVkY2ZlYjI1NDExNmVhYjYzMTM1NTBiZmIyZjE4MzkxMGZmOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.MJ9kHLeDcacVilcALDaoo4yp-22M2eEfPiy8KlwKbJ4)
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.