Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.2.1
-
None
Description
WHAT:
The same pragma key can be used multiple times in a script however only the last value remains. For instance,
#pragma stuff once #pragma stuff twice
Results in the pragma value for key 'stuff' being 'twice'. It can be desirable to retain all values for a key as a set (preserving creation order).
Incidentally, the getParsedText() script method should output the pragmas since they are quite necessary ro retain script functionality.
HOW:
The value of a pragma will become a set (LinkedHashSet) of objects as soon as more than one occurence of the key (and a different value) are used.
The debugger will get a new flag to output pragmas (false as a default, true when used through getParsedText()).