branch: elpa/kotlin-mode
commit a659099864cb0e3981021cc0019b60fc7fc1d52f
Author: Shodai Yokoyama <[email protected]>
Commit: Shodai Yokoyama <[email protected]>

    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