Skip to content

Commit f19c948

Browse files
committed
[Peg] Fix rule error transmission
1 parent 98d044b commit f19c948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vertigo-commons/src/main/java/io/vertigo/commons/peg/AbstractRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ public final PegResult<R> parse(final String text, final int start) throws PegNo
7676
//---
7777
final R result = handle(parserCursor.getValue());
7878
//---
79-
return new PegResult<>(end, result);
79+
return new PegResult<>(end, result, parserCursor.getBestUncompleteRule().orElse(null));
8080
}
8181
}

0 commit comments

Comments
 (0)