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

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

[nongnu] elpa/kotlin-mode 56cfb15910 029/162: kotlin-mode: Highlight fun


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode 56cfb15910 029/162: kotlin-mode: Highlight function names
Date: Sat, 29 Jan 2022 08:25:19 -0500 (EST)

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

    kotlin-mode: Highlight function names
---
 kotlin-mode.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index 25abe081dd..40e431596e 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -127,6 +127,13 @@
              (group (+ word)) (* space)  (\? ":"))
        t)
      1 font-lock-variable-name-face t)
+
+    ;; Function names
+    (,(rx-to-string
+       `(and (or ,@kotlin-mode--fun-decl-keywords)
+             (+ space) bow (group (+ (any alnum word))) eow)
+       t)
+     1 font-lock-function-name-face)
     )
   "Default highlighting expression for `kotlin-mode'"
   )



reply via email to

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