vss-tools
vss-tools copied to clipboard
DDSIDL: Cannot handle allowed values with blanks
vspec2ddsidl cannot handle string literals with included blanks, like below ( a blank after WITH_
).
This is valid VSS (although not following VSS style guide), so vspec2ddsidl should preferably handle this, by ignoring/escaping so that the value becomes a legal DDSIDL value.
MySignal:
datatype: string[]
type: attribute
allowed: ['NO_BLANK', 'WITH_ BLANK', 'SMÖRGÅSTÅRTA']
description: string value with blank
This is part of a longer discussion on allowed strings, where there are multiple aspects:
- Strings generally allowed in VSS syntax (vss-tools VSPEC parser must be able to parse it, but expoertes/generators does not necessarily need to handle it
- Strings allowed in standard VSS catalog - then also "supported" generators must be able to handle them in a coordinated way.