branch: elpa/kotlin-mode
commit 834620e371e8b351dad526e4b7a739ef07964f53
Author: Shodai Yokoyama <[email protected]>
Commit: Shodai Yokoyama <[email protected]>

    kotlin-mode: Highlight constants
---
 kotlin-mode.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index 293cf47b76..a4057717db 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -106,6 +106,12 @@
             (group (+ word)) eow)
       t)
      1 font-lock-type-face)
+
+    ;; Constants
+    (,(rx-to-string
+       `(and bow (group (or ,@kotlin-mode--constants-keywords)) eow)
+       t)
+     0 font-lock-constant-face)
     )
   "Default highlighting expression for `kotlin-mode'"
   )

Reply via email to