branch: elpa/kotlin-mode
commit ddec669c1208949f4c077936224cf0897f2da1d4
Author: Shodai Yokoyama <[email protected]>
Commit: Shodai Yokoyama <[email protected]>
kotlin-mode: Highlight types
---
kotlin-mode.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index b3f673361a..9a46b09c63 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -90,6 +90,12 @@
`(and bow (group (or ,@kotlin-mode--keywords)) eow)
t)
1 font-lock-keyword-face)
+
+ ;; Types
+ (,(rx-to-string
+ `(and (* space) ":" (* space) (group (+ word)))
+ t)
+ 0 font-lock-type-face)
)
"Default highlighting expression for `kotlin-mode'"
)