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

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

[nongnu] elpa/kotlin-mode 25f6524edf 027/162: kotlin-mode: Highlight val


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

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

    kotlin-mode: Highlight value bidnings
---
 kotlin-mode.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index eddc5c5858..2430f02729 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -115,6 +115,14 @@
        `(and bow (group (or ,@kotlin-mode--constants-keywords)) eow)
        t)
      0 font-lock-constant-face)
+
+    ;; Value bindings
+    (,(rx-to-string
+       `(and bow (or ,@kotlin-mode--val-decl-keywords) eow
+             (+ space)
+             (group (+ word)) (* space)  (\? ":"))
+       t)
+     1 font-lock-variable-name-face t)
     )
   "Default highlighting expression for `kotlin-mode'"
   )



reply via email to

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