Skip to content

Commit 99ea667

Browse files
committed
fix: EBNF better unicode support
1 parent 9521f6c commit 99ea667

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net/sourceforge/plantuml/ebnf/CommandEBnfSingleLine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static IRegex getRegexConcat() {
6666
new RegexLeaf("\\*\\)"), //
6767
RegexLeaf.spaceZeroOrMore())), //
6868

69-
new RegexLeaf("ID", "(\\w[-\\w]*)"), //
69+
new RegexLeaf("ID", "([%pLN_][-%pLN_]*)"), //
7070

7171
new RegexOptional( //
7272
new RegexConcat( //

src/net/sourceforge/plantuml/ebnf/CommandEbnfMultilines.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public CommandEbnfMultilines() {
5353

5454
static IRegex getRegexConcat() {
5555
return RegexConcat.build(CommandEbnfMultilines.class.getName(), RegexLeaf.start(), //
56-
new RegexLeaf("LINE", "(\\w[-\\w]*[%s]*=.*)"), //
56+
new RegexLeaf("LINE", "([%pLN_][-%pLN_]*[%s]*=.*)"), //
5757
RegexLeaf.end());
5858
}
5959

0 commit comments

Comments
 (0)