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

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

[nongnu] elpa/yaml-mode 0b33131 115/124: Merge pull request #78 from dgu


From: ELPA Syncer
Subject: [nongnu] elpa/yaml-mode 0b33131 115/124: Merge pull request #78 from dgutov/spf-correctness
Date: Sun, 29 Aug 2021 11:36:24 -0400 (EDT)

branch: elpa/yaml-mode
commit 0b33131664719c61f834e77ff3b91ded3de2cd3b
Merge: 41adb32 fea2fb0
Author: Vasilij Schneidermann <mail@vasilij.de>
Commit: GitHub <noreply@github.com>

    Merge pull request #78 from dgutov/spf-correctness
    
    Hopefully last follow-up
---
 yaml-mode.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/yaml-mode.el b/yaml-mode.el
index 6bd4000..3424e1d 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -273,7 +273,11 @@ that key is pressed to begin a block literal."
            ((and (char-equal ?' (char-before (1- pt)))
                  (char-equal ?' (char-before pt)))
             (put-text-property (- pt 2) pt
-                               'syntax-table (string-to-syntax "w")))
+                               'syntax-table (string-to-syntax "w"))
+            ;; Workaround for https://debbugs.gnu.org/41195.
+            (let ((syntax-propertize--done syntax-propertize--done))
+              ;; Carefully invalidate the last cached ppss.
+              (syntax-ppss-flush-cache (- pt 2))))
            ;; If quote is detected as a syntactic string start but appeared
            ;; after a non-whitespace character, then mark it as syntactic word.
            ((and (char-before (1- pt))



reply via email to

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