[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/yaml e787dd06c6 106/124: Merge pull request #42 from ki
From: |
ELPA Syncer |
Subject: |
[elpa] externals/yaml e787dd06c6 106/124: Merge pull request #42 from kisaragi-hiu/bring-docstring-up-to-date |
Date: |
Fri, 29 Nov 2024 16:00:08 -0500 (EST) |
branch: externals/yaml
commit e787dd06c661e167b5afb96173b69d34eddfba1d
Merge: 0ac7f365bb ee34639c96
Author: Zachary Romero <zacromero@posteo.net>
Commit: GitHub <noreply@github.com>
Merge pull request #42 from kisaragi-hiu/bring-docstring-up-to-date
---
README.md | 5 +++--
yaml.el | 17 ++++++++++++-----
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 5b0edcda2b..9a7d2b7eaa 100644
--- a/README.md
+++ b/README.md
@@ -18,8 +18,9 @@ The following keyword args are accepted:
- `alist`
- `plist`
- `:object-key-type` specifies how map keys should be handled. It takes the
following symbols:
- - `string` (default)
- - `symbol` keys of maps will be converted to symbols. Not that this matches
the behavior of the JSON parser.
+ - `string`
+ - `symbol` (default) Use symbols as keys. If `:object-type` is `plist`,
this becomes the same as `keyword`.
+ - `keyword` Always use keywords as keys.
- `:sequence-type` specifies the Lisp data structure to store the
parsed sequences in. It takes the following symbols:
- `array` (default)
diff --git a/yaml.el b/yaml.el
index ff5de1ed21..0c17aca32c 100644
--- a/yaml.el
+++ b/yaml.el
@@ -1084,16 +1084,23 @@ then check EXPR at the current position."
OBJECT-TYPE specifies the Lisp object to use for representing
key-value YAML mappings. Possible values for OBJECT-TYPE are
-the symbols hash-table, alist, and plist.
+the symbols `hash-table' (default), `alist', and `plist'.
-SEQUENCE-TYPE specifies the Lisp object to use for representing YAML
-sequences. Possible values for SEQUENCE-TYPE are the symbols list, and array.
+OBJECT-KEY-TYPE specifies the Lisp type to use for keys in
+key-value YAML mappings. Possible values are the symbols
+`string', `symbol', and `keyword'. By default, this is `symbol';
+if OBJECT-TYPE is `plist', the default is `keyword' (and `symbol'
+becomes synonym for `keyword').
+
+SEQUENCE-TYPE specifies the Lisp object to use for representing
+YAML sequences. Possible values for SEQUENCE-TYPE are the symbols
+`list', and `array' (default).
NULL-OBJECT contains the object used to represent the null value.
-It defaults to the symbol :null.
+It defaults to the symbol `:null'.
FALSE-OBJECT contains the object used to represent the false
-value. It defaults to the symbol :false."
+value. It defaults to the symbol `:false'."
(yaml--initialize-parsing-state args)
(let ((res (yaml--parse string
(yaml--top))))
- [elpa] externals/yaml c56d47254d 091/124: add unit test, (continued)
- [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, 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 <=
- [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
- [elpa] externals/yaml 7c4b2ec9a5 116/124: Merge pull request #49 from zkry/48-encode-remove-leading-newlines, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 708dd886a2 001/124: Initial commit, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 8771e68930 004/124: Got key-value working, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml afdb23754a 024/124: Fix folding string parsing, ELPA Syncer, 2024/11/29