branch: elpa/yaml-mode
commit 0b33131664719c61f834e77ff3b91ded3de2cd3b
Merge: 41adb32 fea2fb0
Author: Vasilij Schneidermann <[email protected]>
Commit: GitHub <[email protected]>
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))