branch: elpa/kotlin-mode
commit 39db5b6208679f69ddc9c6c817ec94f02a042a36
Author: Shodai Yokoyama <[email protected]>
Commit: Shodai Yokoyama <[email protected]>
kotlin-mode: Highlight properties
---
kotlin-mode.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index c1f43084da..2feb775887 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -159,6 +159,14 @@
(*? (or space ?\n)) "{")
t)
1 font-lock-keyword-face)
+
+ ;; Properties
+ ;; by/get/set are valid identifiers being used as variable
+ ;; TODO: Highlight keywords in the property declaration statement
+ (,(rx-to-string
+ `(and bow (group (or ,@kotlin-mode--property-keywords)) eow)
+ t)
+ 1 font-lock-keyword-face)
)
"Default highlighting expression for `kotlin-mode'"
)