small regex fix
This commit is contained in:
parent
a3435e6138
commit
bfc867b8fd
@ -44,7 +44,7 @@ public class Java implements ProgrammingLanguage {
|
||||
e("\\[|\\]", "squareBrackets"),
|
||||
e(";", "semicolon"),
|
||||
e("\\.\\w+\\b(?!\\()", "property"),
|
||||
e("[A-Z]\\w+", "identifier"),
|
||||
e("\\b[A-Z]\\w+\\b", "identifier"),
|
||||
e("\\b(" + String.join("|", keywords) + ")\\b",
|
||||
"keyword"),
|
||||
e("(?://.*)|(?:\\/?\\s?\\*.*)", "comment")
|
||||
|
Loading…
Reference in New Issue
Block a user