[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/yaml f9fbe392e3 065/124: Merge pull request #22 from zk
From: |
ELPA Syncer |
Subject: |
[elpa] externals/yaml f9fbe392e3 065/124: Merge pull request #22 from zkry/fix-escape-char-literals |
Date: |
Fri, 29 Nov 2024 16:00:02 -0500 (EST) |
branch: externals/yaml
commit f9fbe392e387a689f4c11993b11345a969f01744
Merge: 1f15c0b33a 368452c534
Author: Zachary Romero <zacromero@posteo.net>
Commit: GitHub <noreply@github.com>
Merge pull request #22 from zkry/fix-escape-char-literals
Fix the escape character in parsing string literals
---
yaml-tests.el | 6 +++++-
yaml.el | 22 +++++++++++-----------
2 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/yaml-tests.el b/yaml-tests.el
index 17233262ac..928d18638b 100644
--- a/yaml-tests.el
+++ b/yaml-tests.el
@@ -536,7 +536,11 @@ keep: |+
"null"))
(should (equal
(yaml-encode [1 2 3])
- "[1, 2, 3]")))
+ "[1, 2, 3]"))
+ (should (yaml-test-round-trip
+ '((build_the_package (script . "if [ -z \"${CUSTOM}\" ]; then
+ ./mvnw package
+fi") (stage . "build"))))))
(provide 'yaml-tests)
diff --git a/yaml.el b/yaml.el
index 17681be76b..835efab913 100644
--- a/yaml.el
+++ b/yaml.el
@@ -1150,7 +1150,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
(yaml--all (yaml--chr ?\!) (yaml--chr ?\!))))
('ns-esc-next-line
- (yaml--frame "ns-esc-next-line" (yaml--chr ?\n)))
+ (yaml--frame "ns-esc-next-line" (yaml--chr ?N)))
('l-nb-same-lines
(let ((n (nth 0 args)))
@@ -1292,7 +1292,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
(<= (length (yaml--match)) n)))))
('ns-esc-carriage-return
- (yaml--frame "ns-esc-carriage-return" (yaml--chr ?\r)))
+ (yaml--frame "ns-esc-carriage-return" (yaml--chr ?r)))
('l-chomped-empty
(let ((n (nth 0 args))
@@ -1384,7 +1384,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
(yaml--rep n n (lambda () (yaml--parse-from-grammar 's-space))))))
('ns-esc-line-separator
- (yaml--frame "ns-esc-line-separator" (yaml--chr ?\L)))
+ (yaml--frame "ns-esc-line-separator" (yaml--chr ?L)))
('ns-flow-yaml-node
(let ((n (nth 0 args)) (c (nth 1 args)))
@@ -1470,7 +1470,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
('ns-esc-space
(yaml--frame "ns-esc-space" (yaml--chr ?\x20)))
('ns-esc-vertical-tab
- (yaml--frame "ns-esc-vertical-tab" (yaml--chr ?\v)))
+ (yaml--frame "ns-esc-vertical-tab" (yaml--chr ?v)))
('ns-s-implicit-yaml-key
(let ((c (nth 0 args)))
@@ -1518,7 +1518,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
('ns-esc-backspace
(yaml--frame "ns-esc-backspace"
- (yaml--chr ?\b)))
+ (yaml--chr ?b)))
('c-flow-json-content
(let ((n (nth 0 args)) (c (nth 1 args)))
@@ -2080,7 +2080,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
(yaml--chr ?\-))))
('ns-esc-form-feed
- (yaml--frame "ns-esc-form-feed" (yaml--chr ?\f)))
+ (yaml--frame "ns-esc-form-feed" (yaml--chr ?f)))
('ns-s-block-map-implicit-key
(yaml--frame "ns-s-block-map-implicit-key"
@@ -2142,7 +2142,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
(yaml--parse-from-grammar 's-l+flow-in-block (nth 0 args)))))
('ns-esc-bell
- (yaml--frame "ns-esc-bell" (yaml--chr ?\a)))
+ (yaml--frame "ns-esc-bell" (yaml--chr ?a)))
('c-named-tag-handle
(yaml--frame "c-named-tag-handle"
@@ -2166,7 +2166,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
(yaml--parse-from-grammar 's-l-comments))))
('ns-esc-escape
- (yaml--frame "ns-esc-escape" (yaml--chr ?\e)))
+ (yaml--frame "ns-esc-escape" (yaml--chr ?e)))
('b-nb-literal-next
(let ((n (nth 0 args)))
@@ -2213,7 +2213,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
(yaml--parse-from-grammar 's-l+block-collection (nth 0 args)
(nth 1 args)))))
('ns-esc-paragraph-separator
- (yaml--frame "ns-esc-paragraph-separator" (yaml--chr ?\P)))
+ (yaml--frame "ns-esc-paragraph-separator" (yaml--chr ?P)))
('c-double-quoted
(let ((n (nth 0 args)) (c (nth 1 args)))
@@ -2227,7 +2227,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
('ns-esc-horizontal-tab
(yaml--frame "ns-esc-horizontal-tab"
- (yaml--any (yaml--chr ?\t) (yaml--chr ?\x09))))
+ (yaml--any (yaml--chr ?t) (yaml--chr ?\x09))))
('c-ns-flow-map-empty-key-entry
(let ((n (nth 0 args)) (c (nth 1 args)))
@@ -2340,7 +2340,7 @@ Rules for this function are defined by the yaml-spec JSON
file."
(yaml--frame "c-literal" (yaml--chr ?\|)))
('ns-esc-line-feed
- (yaml--frame "ns-esc-line-feed" (yaml--chr ?\n)))
+ (yaml--frame "ns-esc-line-feed" (yaml--chr ?n)))
('nb-double-multi-line
(let ((n (nth 0 args)))
- [elpa] externals/yaml 0bf6a1b686 088/124: YAML anchor should match exactly how it was defined, (continued)
- [elpa] externals/yaml 0bf6a1b686 088/124: YAML anchor should match exactly how it was defined, ELPA Syncer, 2024/11/29
- [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 <=
- [elpa] externals/yaml fdc65922c9 099/124: fix zero-column indent problems; add more unit tests, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml c81f87f0fd 080/124: fix unit test, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 7783d802b0 102/124: Don't remove all properties, just yaml-n, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 73fde9d8fb 110/124: Merge pull request #44 from kisaragi-hiu/eldoc-hints, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml e787dd06c6 106/124: Merge pull request #42 from kisaragi-hiu/bring-docstring-up-to-date, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 5af0cd7c55 122/124: Fix octal/hex parsing (#54), ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 4a3243a2be 108/124: yaml--the-end: fix incorrect regexp, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 3381a5d2f7 109/124: Merge pull request #43 from kisaragi-hiu/fix/regexp-missing-escape, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 70c4fcead9 124/124: bump version, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 37a6b80ee3 121/124: Update declared version to match tag, ELPA Syncer, 2024/11/29