[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/yaml fdc65922c9 099/124: fix zero-column indent problem
From: |
ELPA Syncer |
Subject: |
[elpa] externals/yaml fdc65922c9 099/124: fix zero-column indent problems; add more unit tests |
Date: |
Fri, 29 Nov 2024 16:00:08 -0500 (EST) |
branch: externals/yaml
commit fdc65922c9a5d9a661b9957b7e39e64415580ad3
Author: Zachary Romero <zacromero@posteo.net>
Commit: Zachary Romero <zacromero@posteo.net>
fix zero-column indent problems; add more unit tests
---
yaml-tests.el | 11 ++++++++++-
yaml.el | 2 +-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/yaml-tests.el b/yaml-tests.el
index 1421a07aac..9498a337db 100644
--- a/yaml-tests.el
+++ b/yaml-tests.el
@@ -408,7 +408,16 @@ ship-to:
'((deeply (nested (value . " test string"))))))
(should (equal (yaml-parse-string "deeply:\n nested:\n value: |-\n
test string"
:object-type 'alist)
- '((deeply (nested (value . "test string")))))))
+ '((deeply (nested (value . "test string"))))))
+ (should (equal (yaml-parse-string ">-\n this is text"
+ :object-type 'alist)
+ "this is text"))
+ (should (equal (yaml-parse-string ">-1\n this is text"
+ :object-type 'alist)
+ "this is text"))
+ (should (equal (yaml-parse-string "top: |1\n this is text"
+ :object-type 'alist)
+ '((top . " this is text\n")))))
(ert-deftest yaml-parsing-completes ()
"Tests that the yaml parses."
diff --git a/yaml.el b/yaml.el
index 18447416fb..169cf8f4b4 100644
--- a/yaml.el
+++ b/yaml.el
@@ -768,7 +768,7 @@ repeat for each character in a text.")
(cons (1+ beg)
(1+ yaml--parsing-position)))))
(when (member ,name '("c-l+folded" "c-l+literal"))
- (setq str (propertize str 'yaml-n n)))
+ (setq str (propertize str 'yaml-n (max 0 n))))
(list ,name
(if yaml--parsing-store-position
(propertize str 'yaml-position (cons (1+ beg)
- [elpa] externals/yaml 2aa5a6faf7 056/124: Merge pull request #16 from conao3/indent, (continued)
- [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
- [elpa] externals/yaml fdc65922c9 099/124: fix zero-column indent problems; add more unit tests,
ELPA Syncer <=
- [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
- [elpa] externals/yaml 604774d385 117/124: Add documentation on running tests, ELPA Syncer, 2024/11/29