branch: elpa/kotlin-mode
commit 25f6524edfdd815dcb8a2a7ef39c5446c533623c
Author: Shodai Yokoyama <[email protected]>
Commit: Shodai Yokoyama <[email protected]>
kotlin-mode: Highlight value bidnings
---
kotlin-mode.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index eddc5c5858..2430f02729 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -115,6 +115,14 @@
`(and bow (group (or ,@kotlin-mode--constants-keywords)) eow)
t)
0 font-lock-constant-face)
+
+ ;; Value bindings
+ (,(rx-to-string
+ `(and bow (or ,@kotlin-mode--val-decl-keywords) eow
+ (+ space)
+ (group (+ word)) (* space) (\? ":"))
+ t)
+ 1 font-lock-variable-name-face t)
)
"Default highlighting expression for `kotlin-mode'"
)