branch: externals/yaml
commit 69654c291ff0d74da93dfae3ed0f1e9899719e39
Author: Zachary Romero <[email protected]>
Commit: Zachary Romero <[email protected]>
Fix string values state bug
---
yaml.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/yaml.el b/yaml.el
index 317b85050b..c92d42b689 100644
--- a/yaml.el
+++ b/yaml.el
@@ -1064,8 +1064,9 @@ then check EXPR at the current position."
((equal 'list sequence-type)
(setq yaml--parsing-sequence-type 'list))
(t (error "Invalid sequence-type. sequence-type must be list or array")))
- (when string-values
- (setq yaml--string-values t))))
+ (if string-values
+ (setq yaml--string-values t)
+ (setq yaml--string-values nil))))
(defun yaml-parse-string (string &rest args)
"Parse the YAML value in STRING. Keyword ARGS are as follows: