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

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

[nongnu] elpa/kotlin-mode 3b10a6a97f 030/162: kotlin-mode: Highlight mod


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

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

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

diff --git a/kotlin-mode.el b/kotlin-mode.el
index 40e431596e..72582fe610 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -134,6 +134,15 @@
              (+ space) bow (group (+ (any alnum word))) eow)
        t)
      1 font-lock-function-name-face)
+
+    ;; Access modifier
+    ;; Access modifier is valid identifier being used as variable
+    ;; TODO: Highlight only modifiers in the front of class/fun
+    (,(rx-to-string
+       `(and bow (group (or ,@kotlin-mode--modifier-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]