branch: elpa/kotlin-mode
commit 3b10a6a97fc768d2dbb69311116851fd0ec21de5
Author: Shodai Yokoyama <[email protected]>
Commit: Shodai Yokoyama <[email protected]>
kotlin-mode: Highlight modifier
---
kotlin-mode.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index 40e431596e..72582fe610 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -134,6 +134,15 @@
(+ space) bow (group (+ (any alnum word))) eow)
t)
1 font-lock-function-name-face)
+
+ ;; Access modifier
+ ;; Access modifier is valid identifier being used as variable
+ ;; TODO: Highlight only modifiers in the front of class/fun
+ (,(rx-to-string
+ `(and bow (group (or ,@kotlin-mode--modifier-keywords))
+ eow)
+ t)
+ 1 font-lock-keyword-face)
)
"Default highlighting expression for `kotlin-mode'"
)