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

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

[nongnu] elpa/kotlin-mode fe905c587a 023/162: kotlin-mode: Highlight cla


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

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

    kotlin-mode: Highlight classes/enums
---
 kotlin-mode.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index 9a46b09c63..a77d3b0121 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -96,6 +96,13 @@
       `(and (* space) ":" (* space) (group (+ word)))
       t)
      0 font-lock-type-face)
+
+    ;; Classes/Enums
+    (,(rx-to-string
+      `(and bow "class" eow (+ space)
+            (group (+ word)) eow)
+      t)
+     1 font-lock-type-face)
     )
   "Default highlighting expression for `kotlin-mode'"
   )



reply via email to

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