Enable 'var', 'true' and 'false' keywords highlighting in Java editor

This commit is contained in:
2021-03-11 19:13:37 +01:00
parent 0a9bd87c29
commit 7c6824284a

View File

@@ -47,7 +47,8 @@ class JavaSyntaxHighlighter : SyntaxHighlighter {
"new", "package", "private", "protected", "public",
"return", "short", "static", "strictfp", "super",
"switch", "synchronized", "this", "throw", "throws",
"transient", "try", "void", "volatile", "while", "null"
"transient", "try", "void", "volatile", "while", "null",
"var", "true", "false"
)
private val KEYWORD_PATTERN = "\\b(" + KEYWORDS.joinToString("|") + ")\\b"