fix negative values causing syntax error in robust "has" list

https://forum.plantuml.net/18701/negative-values-causing-syntax-error-in-robust-has-list?show=18705
This commit is contained in:
Arnaud Roques 2024-02-27 19:42:44 +01:00
parent 6c945e2508
commit 2a49ef06da
1 changed files with 3 additions and 2 deletions

View File

@ -59,8 +59,9 @@ public class CommandDefineStateShort extends SingleLineCommand2<TimingDiagram> {
RegexLeaf.spaceOneOrMore(), //
new RegexLeaf("has"), //
RegexLeaf.spaceOneOrMore(), //
new RegexLeaf("STATE", "([%pLN_.@]+)"), //
new RegexLeaf("STATES", "((,([%pLN_.@]+))*)"), RegexLeaf.end());
new RegexLeaf("STATE", "([-%pLN_.@]+)"), //
new RegexLeaf("STATES", "((,([-%pLN_.@]+))*)"), //
RegexLeaf.end());
}
@Override