diff options
Diffstat (limited to 'src/main/java/org')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java b/src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java index 03eaf98..7ae24c0 100644 --- a/src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java +++ b/src/main/java/org/zwobble/mammoth/internal/styles/parsing/RegexTokeniser.java @@ -45,7 +45,7 @@ public class RegexTokeniser<T> { Optional<Integer> groupIndex = tryFind(intRange(0, this.rules.size()), index -> matcher.group(index + 1) != null); if (groupIndex.isPresent()) { T tokenType = this.rules.get(groupIndex.get()); - tokens.add(new Token(matcher.regionStart(), tokenType, matcher.group())); + tokens.add(new Token<>(matcher.regionStart(), tokenType, matcher.group())); matcher.region(matcher.end(), value.length()); } else { // Should be impossible |
