branch: elpa/yaml-mode commit e9696eb9ceec8eb79c807c907630e4b5d049db8e Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@yandex.ru>
Fix a thinko --- yaml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml-mode.el b/yaml-mode.el index 01530bd..67f3e94 100644 --- a/yaml-mode.el +++ b/yaml-mode.el @@ -276,7 +276,7 @@ that key is pressed to begin a block literal." 'syntax-table (string-to-syntax "w")))) ;; If quote is detected as a syntactic string start but appeared ;; after a non-whitespace character, then mark it as syntactic word. - ((and (not (eq ?\n (char-before (1- pt)))) + ((and (char-before (1- pt)) (char-equal ?w (char-syntax (char-before (1- pt))))) (put-text-property (1- pt) pt 'syntax-table (string-to-syntax "w")))