From d196d51e07f50f3510c43ad375c5559b58860023 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 29 Sep 2025 09:39:49 +0200 Subject: java: Add tokens support for Java 21 Some new keywords, I opted to modify java-8 grammar to use the new names, even if they are not going to match anything. Makes the tokenizer easier to write. --- src/java_version.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/java_version.hh') diff --git a/src/java_version.hh b/src/java_version.hh index 444ae36..4877263 100644 --- a/src/java_version.hh +++ b/src/java_version.hh @@ -7,8 +7,9 @@ namespace java { enum class Version : uint8_t { kJava8 = 8, + kJava21 = 21, - kMax = kJava8, + kMax = kJava21, }; } // namespace java -- cgit v1.3