[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/kotlin-mode a174f5ba44 039/162: kotlin-mode: Add kotlin-mo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/kotlin-mode a174f5ba44 039/162: kotlin-mode: Add kotlin-mode--match-interpolation |
Date: |
Sat, 29 Jan 2022 08:25:20 -0500 (EST) |
branch: elpa/kotlin-mode
commit a174f5ba4466909fcce9fe2a855f1108bc1c1af8
Author: Shodai Yokoyama <quantumcars@gmail.com>
Commit: Shodai Yokoyama <quantumcars@gmail.com>
kotlin-mode: Add kotlin-mode--match-interpolation
---
kotlin-mode.el | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index 6b9c2e982a..adab2d0ff4 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -213,6 +213,21 @@
start end))
)
+(defun kotlin-mode--match-interpolation (limit)
+ (let ((pos (next-single-char-property-change (point)
+ 'kotlin-property--interpolation
+ nil
+ limit)))
+ (when (and pos (> pos (point)))
+ (goto-char pos)
+ (let ((value (get-text-property pos 'kotlin-property--interpolation)))
+ (if value
+ (progn (set-match-data value)
+ t)
+ (kotlin-mode--match-interpolation limit)))))
+ )
+
+
(define-derived-mode kotlin-mode prog-mode "Kotlin"
"Major mode for editing Kotlin."
- [nongnu] elpa/kotlin-mode 4f1d0a3919 055/162: Add 'interface' as a type decl keyword, (continued)
- [nongnu] elpa/kotlin-mode 4f1d0a3919 055/162: Add 'interface' as a type decl keyword, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode e75f8b0113 144/162: Make compatible with Emacs 24.3, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b9d03a769b 158/162: Add version attribute, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 36b030022e 120/162: Improve identification and handling of line continuation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 639203bf84 143/162: Require cl-lib instead of cl, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 8e6dd578f2 154/162: Merge pull request #52 from taku0/add-makefile, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode ffeb70e788 048/162: Temporarily disable syntax highlighting for "by", "get", "set", "in", and "out", ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 86b94d7d34 160/162: Add LICENSE file, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 39db5b6208 033/162: kotlin-mode: Highlight properties, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 300acc2341 036/162: kotlin-mode: Highlight package names, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode a174f5ba44 039/162: kotlin-mode: Add kotlin-mode--match-interpolation,
ELPA Syncer <=
- [nongnu] elpa/kotlin-mode 42b7af8122 046/162: 'data class' -> 'data', ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 6c5531cd6f 059/162: Add autoload cookie to the kotlin-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 876cc27dc1 159/162: Merge pull request #63 from phikal/patch-1, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode a51321a4d1 161/162: Merge pull request #64 from phst/license, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 8e4018e7a5 044/162: Added new keywords to kotlin-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode fdadc96898 034/162: kotlin-mode: Defin initializer keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode c3942942a8 066/162: Merge branch 'patch-1' of https://github.com/jasonm23/kotlin-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode d6720fe9bc 123/162: Merge pull request #40 from martinblake/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode fd099c806b 134/162: Propertize multiline strings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 0649b358f2 141/162: Make compatible with 24.3, ELPA Syncer, 2022/01/29