emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/kotlin-mode ddec669c12 022/162: kotlin-mode: Highlight typ


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode ddec669c12 022/162: kotlin-mode: Highlight types
Date: Sat, 29 Jan 2022 08:25:19 -0500 (EST)

branch: elpa/kotlin-mode
commit ddec669c1208949f4c077936224cf0897f2da1d4
Author: Shodai Yokoyama <quantumcars@gmail.com>
Commit: Shodai Yokoyama <quantumcars@gmail.com>

    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'"
   )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]