[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/kotlin-mode c6207be613 038/162: kotlin-mode: Add kotin-mod
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/kotlin-mode c6207be613 038/162: kotlin-mode: Add kotin-mode--syntax-propertize-function |
Date: |
Sat, 29 Jan 2022 08:25:20 -0500 (EST) |
branch: elpa/kotlin-mode
commit c6207be61303753e925f7d9aa263d219a4a8e89b
Author: Shodai Yokoyama <quantumcars@gmail.com>
Commit: Shodai Yokoyama <quantumcars@gmail.com>
kotlin-mode: Add kotin-mode--syntax-propertize-function
---
kotlin-mode.el | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index 86760cc163..6b9c2e982a 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -199,6 +199,20 @@
(match-data))))
)
+(defun kotlin-mode--syntax-propertize-function (start end)
+ (let ((case-fold-search))
+ (goto-char start)
+ (remove-text-properties start end '(kotlin-property--interpolation))
+ (funcall
+ (syntax-propertize-rules
+ ((let ((identifier '(any alnum " !%&()*+-./:<>?[]^_|~")))
+ (rx-to-string
+ `(or (group "${" (* ,identifier) "}")
+ (group "$" (+ ,identifier)))))
+ (0 (ignore (kotlin-mode--syntax-propertize-interpolation)))))
+ start end))
+ )
+
(define-derived-mode kotlin-mode prog-mode "Kotlin"
"Major mode for editing Kotlin."
- [nongnu] elpa/kotlin-mode b2d5ff65fc 125/162: Highlight single quotes and back quotes, (continued)
- [nongnu] elpa/kotlin-mode b2d5ff65fc 125/162: Highlight single quotes and back quotes, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode dd24461721 128/162: Add prefix to class methods, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 6aa6d56c0a 131/162: Merge pull request #42 from taku0/add_keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 2f8a57ba64 138/162: Comment out failing emacs versions and link associated bugs, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 3062e14ac0 140/162: Merge pull request #47 from Emacs-Kotlin-Mode-Maintainers/emacs-version-test, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode d8d6461395 145/162: Fix warnings in tests, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 1f60b01659 148/162: Fix indentation of multiline comment at the beginning of buffer, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 9fba76ff2b 155/162: Fix highlighting of backquotes, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 3e0c34087b 162/162: Merge pull request #61 from taku0/make_underbar_symbol, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode cbeeef8986 015/162: kotlin-mode: Define type declaration keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode c6207be613 038/162: kotlin-mode: Add kotin-mode--syntax-propertize-function,
ELPA Syncer <=
- [nongnu] elpa/kotlin-mode 78db8656d4 047/162: Fixed font lock for types, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 1624e7d795 052/162: add 'nested' and 'inner' class modifiers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 4787bf94c1 058/162: Ignore dist folder produce by `cask package`, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode d4e97ffa4b 095/162: Switch from using a Bash script to using Make for the tests. Though 'cask exec eert-runner' also works to run the tests., ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b86f9b4607 147/162: Fix indentation after comment containing close brackets, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode fe905c587a 023/162: kotlin-mode: Highlight classes/enums, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode c91a82b864 031/162: kotlin-mode: Highlight try-`catch-finally', ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 9314dd61f6 040/162: kotlin-mode: Use syntax-propertize-function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 748fcbbec9 049/162: Fix bug in regular expression, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 4f1d0a3919 055/162: Add 'interface' as a type decl keyword, ELPA Syncer, 2022/01/29