[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/kotlin-mode 1854330e27 06/10: Fix for 24.x when template s
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/kotlin-mode 1854330e27 06/10: Fix for 24.x when template string is incomplete |
Date: |
Tue, 17 Jan 2023 15:08:09 -0500 (EST) |
branch: elpa/kotlin-mode
commit 1854330e27a2e52d8f83fb4e81d6c5fdc9522580
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Fix for 24.x when template string is incomplete
---
kotlin-mode-lexer.el | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/kotlin-mode-lexer.el b/kotlin-mode-lexer.el
index 6e45212430..cf37034d84 100644
--- a/kotlin-mode-lexer.el
+++ b/kotlin-mode-lexer.el
@@ -2464,10 +2464,12 @@ Return the point of the beginning.
Assuming the point is on a string."
(goto-char (or (nth 8 (syntax-ppss)) (point)))
(let (matching-bracket)
- (while (setq matching-bracket
- (get-text-property
- (point)
- 'kotlin-property--matching-bracket))
+ (while (and
+ (setq matching-bracket
+ (get-text-property
+ (point)
+ 'kotlin-property--matching-bracket))
+ (< (point-min) matching-bracket))
(goto-char matching-bracket)
(goto-char (nth 8 (syntax-ppss))))
(point)))
@@ -2479,10 +2481,11 @@ Assuming the point is on a string."
(goto-char (or (nth 8 (syntax-ppss)) (point)))
(let (matching-bracket)
(kotlin-mode--forward-string-chunk)
- (while (setq matching-bracket
- (get-text-property
- (1- (point))
- 'kotlin-property--matching-bracket))
+ (while (and (setq matching-bracket
+ (get-text-property
+ (1- (point))
+ 'kotlin-property--matching-bracket))
+ (< matching-bracket (point-max)))
(goto-char matching-bracket)
(kotlin-mode--forward-string-chunk)))
(point))
- [nongnu] elpa/kotlin-mode updated (ff4637c4ea -> 3a84689d0b), ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode e8969a6214 02/10: Move lexical level routines to kotlin-mode-lexer.el, ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode 0a41f8b7fd 03/10: Fix ckeckdoc errors, ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode 115a7dd7e3 04/10: Rewrite indentation logic, ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode 23a693d264 05/10: Add documentation of indentation logic, ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode 1854330e27 06/10: Fix for 24.x when template string is incomplete,
ELPA Syncer <=
- [nongnu] elpa/kotlin-mode c7d5c67ebc 01/10: Improve detection of line continuation, ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode 2f64645460 08/10: Support definitely non-nullable type, ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode eb2af1723e 07/10: Support value modifier, ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode 70de2560a6 09/10: Support closed range operator, ELPA Syncer, 2023/01/17
- [nongnu] elpa/kotlin-mode 3a84689d0b 10/10: Merge pull request #53 from taku0/rewite-indentation, ELPA Syncer, 2023/01/17