[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/yaml 0bf6a1b686 088/124: YAML anchor should match exact
From: |
ELPA Syncer |
Subject: |
[elpa] externals/yaml 0bf6a1b686 088/124: YAML anchor should match exactly how it was defined |
Date: |
Fri, 29 Nov 2024 16:00:05 -0500 (EST) |
branch: externals/yaml
commit 0bf6a1b6868709c24759a9b478e267090f779841
Author: Zachary Romero <zacromero@posteo.net>
Commit: Zachary Romero <zacromero@posteo.net>
YAML anchor should match exactly how it was defined
---
yaml-tests.el | 29 +++++++++++++++++++++++++++++
yaml.el | 2 +-
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/yaml-tests.el b/yaml-tests.el
index efa21676ab..8b31e851b0 100644
--- a/yaml-tests.el
+++ b/yaml-tests.el
@@ -355,6 +355,35 @@ key-2: |2-
(yaml-parse-string "bill-to:
city: East Centerville
state: KS
+" :object-type 'alist
+ :object-key-type 'string
+ :string-values t)))
+ ;; anchor should expand to be identical to definition
+ (should (equal (yaml-parse-string "bill-to: &id001
+ street: |
+ 123 Tornado Alley
+ Suite 16
+ city: East Cenrville
+ state: KS
+
+ship-to: *id001
+" :object-type 'alist
+ :object-key-type 'string
+ :string-values t)
+ (yaml-parse-string "bill-to:
+ street: |
+ 123 Tornado Alley
+ Suite 16
+ city: East Cenrville
+ state: KS
+
+ship-to:
+ street: |
+ 123 Tornado Alley
+ Suite 16
+ city: East Cenrville
+ state: KS
+
" :object-type 'alist
:object-key-type 'string
:string-values t))))
diff --git a/yaml.el b/yaml.el
index 11965d3c3b..317b85050b 100644
--- a/yaml.el
+++ b/yaml.el
@@ -414,7 +414,7 @@ This flag is intended for development purposes.")
((equal top-state :anchor)
(let* ((anchor (pop yaml--object-stack))
(name (nth 1 anchor)))
- (puthash name value* yaml--anchor-mappings)
+ (puthash name value yaml--anchor-mappings)
(pop yaml--state-stack)
(yaml--scalar-event nil value)))
((equal top-state :sequence)
- [elpa] externals/yaml 79a6bbc1e1 040/124: Fix various parsing bugs; reduce stack usage of parsing strings, (continued)
- [elpa] externals/yaml 79a6bbc1e1 040/124: Fix various parsing bugs; reduce stack usage of parsing strings, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 367f470203 029/124: Add github action file, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml a45f60c999 051/124: Merge pull request #8 from zkry/symbol-keys, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 10af746dad 050/124: Add option to convert string keys to symbols, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 96d3e51aeb 048/124: Add yaml-encode feature, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 51023c4551 049/124: Merge pull request #7 from zkry/add-yaml-encode, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 8903b6c7e4 055/124: return plist key as a keyword as a default, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml ed108ab526 084/124: add option for skipping processing of scalars, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml a2ed8f1fd6 072/124: Fix empty single quote string bug, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 419e85fbce 094/124: fix folding block parsing error, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 0bf6a1b686 088/124: YAML anchor should match exactly how it was defined,
ELPA Syncer <=
- [elpa] externals/yaml 2aa5a6faf7 056/124: Merge pull request #16 from conao3/indent, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 5b352258f5 067/124: Merge pull request #24 from j-shilling/fix-alist-to-hash, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml d0abc17e3d 060/124: Merge pull request #18 from conao3/alist-symbol, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml e32ef2f5e5 092/124: add note to yaml-parse-string-with-pos function, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml c56d47254d 091/124: add unit test, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 69c699a15a 071/124: Minor code formatting fixes, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 1f15c0b33a 062/124: Merge pull request #20 from j-shilling/fix-encoding-symbols, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml adb3e52a21 081/124: Merge pull request #32 from zkry/fix-encoding-deeply-nested-lists, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 2500074ebf 097/124: Merge pull request #39 from zkry/fix-obob-for-storing-position, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml f9fbe392e3 065/124: Merge pull request #22 from zkry/fix-escape-char-literals, ELPA Syncer, 2024/11/29