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

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

[nongnu] elpa/kotlin-mode a659099864 037/162: kotlin-mode: Add kotlin-mo


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode a659099864 037/162: kotlin-mode: Add kotlin-mode--syntax-propertize-interpolation
Date: Sat, 29 Jan 2022 08:25:20 -0500 (EST)

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

    kotlin-mode: Add kotlin-mode--syntax-propertize-interpolation
---
 kotlin-mode.el | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index 4734a9ecb9..86760cc163 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -188,6 +188,16 @@
   "Default highlighting expression for `kotlin-mode'"
   )
 
+(defun kotlin-mode--syntax-propertize-interpolation ()
+  (let* ((pos (match-beginning 0))
+         (context (save-excursion
+                    (save-match-data (syntax-ppss pos)))))
+    (when (nth 3 context)
+      (put-text-property pos
+                         (1+ pos)
+                         'kotlin-property--interpolation
+                         (match-data))))
+  )
 
 (define-derived-mode kotlin-mode prog-mode "Kotlin"
   "Major mode for editing Kotlin."



reply via email to

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