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

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

[nongnu] elpa/kotlin-mode 39db5b6208 033/162: kotlin-mode: Highlight pro


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode 39db5b6208 033/162: kotlin-mode: Highlight properties
Date: Sat, 29 Jan 2022 08:25:20 -0500 (EST)

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

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

diff --git a/kotlin-mode.el b/kotlin-mode.el
index c1f43084da..2feb775887 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -159,6 +159,14 @@
              (*? (or space ?\n)) "{")
        t)
      1 font-lock-keyword-face)
+
+    ;; Properties
+    ;; by/get/set are valid identifiers being used as variable
+    ;; TODO: Highlight keywords in the property declaration statement
+    (,(rx-to-string
+       `(and bow (group (or ,@kotlin-mode--property-keywords)) eow)
+       t)
+     1 font-lock-keyword-face)
     )
   "Default highlighting expression for `kotlin-mode'"
   )



reply via email to

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