java.kak: Add some highlighted keywords and highlight annotations

This commit is contained in:
Maxime Coste 2018-03-22 20:48:18 +11:00
parent f8e297acef
commit 796fbc6c1f

View File

@ -12,8 +12,9 @@ add-highlighter shared/java/comment fill comment
add-highlighter shared/java/code regex %{\b(this|true|false|null)\b} 0:value add-highlighter shared/java/code regex %{\b(this|true|false|null)\b} 0:value
add-highlighter shared/java/code regex "\b(void|int|char|unsigned|float|boolean|double)\b" 0:type add-highlighter shared/java/code regex "\b(void|int|char|unsigned|float|boolean|double)\b" 0:type
add-highlighter shared/java/code regex "\b(while|for|if|else|do|static|switch|case|default|class|interface|enum|goto|break|continue|return|import|try|catch|throw|new|package|extends|implements|instanceof)\b" 0:keyword add-highlighter shared/java/code regex "\b(while|for|if|else|do|static|switch|case|default|class|interface|enum|goto|break|continue|return|import|try|catch|throw|new|package|extends|implements|throws|instanceof)\b" 0:keyword
add-highlighter shared/java/code regex "\b(final|public|protected|private|abstract|synchronized|native|transient|volatile)\b" 0:attribute add-highlighter shared/java/code regex "\b(final|public|protected|private|abstract|synchronized|native|transient|volatile)\b" 0:attribute
add-highlighter shared/java/code regex "(?<!\w)@\w+\b" 0:meta
# Commands # Commands
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾