[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/yaml-mode 831ef3a 120/124: Merge pull request #81 from str
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/yaml-mode 831ef3a 120/124: Merge pull request #81 from strutt/master |
Date: |
Sun, 29 Aug 2021 11:36:25 -0400 (EDT) |
branch: elpa/yaml-mode
commit 831ef3a04e4d32ec3fa3d77a54dc7e7bc5b6fd81
Merge: 68fecb5 04c30ea
Author: Vasilij Schneidermann <mail@vasilij.de>
Commit: GitHub <noreply@github.com>
Merge pull request #81 from strutt/master
Fix propertization for sequences of mappings with literal block
---
...yntax-highlighting-list-of-dicts-containing-literal-block.yaml | 8 ++++++++
yaml-mode.el | 2 ++
2 files changed, 10 insertions(+)
diff --git
a/test-files/test-syntax-highlighting-list-of-dicts-containing-literal-block.yaml
b/test-files/test-syntax-highlighting-list-of-dicts-containing-literal-block.yaml
new file mode 100644
index 0000000..2682f14
--- /dev/null
+++
b/test-files/test-syntax-highlighting-list-of-dicts-containing-literal-block.yaml
@@ -0,0 +1,8 @@
+# Propertized incorrectly prior to PR
+example:
+ - key1: Correctly propertized
+ key2: |
+ Correctly propertized.
+ - key3: |
+ Correctly propertized
+ key4: Incorrectly propertized as part of preceding yaml-literal-block
diff --git a/yaml-mode.el b/yaml-mode.el
index cb86652..97ddff3 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -322,6 +322,8 @@ artificially limited to the value of
(unless (looking-at yaml-blank-line-re)
(setq min-level (min min-level (current-indentation))))
(forward-line -1))
+ (when (looking-at-p " *- ")
+ (setq min-level (- min-level 2)))
(cond
((and (< (current-indentation) min-level)
(looking-at yaml-block-literal-re))
- [nongnu] elpa/yaml-mode fc5e1c5 121/124: Bump version, summarize changes, (continued)
- [nongnu] elpa/yaml-mode fc5e1c5 121/124: Bump version, summarize changes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 04ef268 103/124: Add test example with quotes in strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 3a57058 122/124: Pacify package-lint, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 1c3ade4 081/124: Merge pull request #46 from pkulev/fix-typo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode e3b06b2 088/124: Support non-whitespace preceded apostrophe, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 40067a1 096/124: Merge pull request #62 from ts4z/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode ed7ec2e 111/124: Don't freeze on unclosed strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode c7c2994 090/124: Support escaped quote in a single quoted string, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 05ae757 108/124: Don't fall through the first case, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 34648f2 117/124: Add comment test file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 831ef3a 120/124: Merge pull request #81 from strutt/master,
ELPA Syncer <=