branch: elpa/yaml-mode
commit b83482e3fd69791aa94540d7ed7c504be1ace0ad
Author: Väinö Järvelä <[email protected]>
Commit: Väinö Järvelä <[email protected]>
Support double quote in implicit keys
This fixes keys such as:
key"s: value
which is valid YAML.
---
yaml-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/yaml-mode.el b/yaml-mode.el
index 594fc36..ce8c8ac 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -262,7 +262,7 @@ that key is pressed to begin a block literal."
;; after a non-whitespace character, then mark it as syntactic word.
(save-excursion
(goto-char beg)
- (while (search-forward "'" end t)
+ (while (re-search-forward "['\"]" end t)
(when (nth 8 (syntax-ppss))
(save-excursion
(forward-char -1)