[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/yaml-mode 04c30ea 119/124: Fix propertization for lists of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/yaml-mode 04c30ea 119/124: Fix propertization for lists of dicts with literal block |
Date: |
Sun, 29 Aug 2021 11:36:25 -0400 (EDT) |
branch: elpa/yaml-mode
commit 04c30eabb56f704a5e3902c47960029487d8abc6
Author: Ben Strutt <ben.strutt1@nhs.net>
Commit: Ben Strutt <ben.strutt1@nhs.net>
Fix propertization for lists of dicts with literal block
previously_broken_but_now_correct:
- bash: |
echo "Properties following this block were broken"
displayName: "Incorrectly propertized with face 'yaml-block-literal"
---
...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 4966854 061/124: Merge pull request #36 from mmckinst/license, (continued)
- [nongnu] elpa/yaml-mode 4966854 061/124: Merge pull request #36 from mmckinst/license, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode e73adce 069/124: Fix regex in autoload as well, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode c0d6da0 073/124: Merge pull request #42 from scop/spelling, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode b03fba2 074/124: Merge pull request #43 from scop/raml, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 93252a0 076/124: Change dashes from word to symbol syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 64b2891 083/124: Merge pull request #47 from Wilfred/references_as_punctuation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 700dfda 093/124: Use block literal font-lock first, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 5b4a0db 098/124: Bump version, summarize changes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode ad8685c 104/124: yaml-mode-syntax-propertize-function: Speed up in large strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 0b33131 115/124: Merge pull request #78 from dgutov/spf-correctness, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 04c30ea 119/124: Fix propertization for lists of dicts with literal block,
ELPA Syncer <=
- [nongnu] elpa/yaml-mode 63b637f 124/124: Merge pull request #88 from scop/feature/magic-mode-alist, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 0709258 005/124: Added dist to `Changes', ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 4377ee5 009/124: Apply patch from k-nagano, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode b738999 010/124: changed version, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 522d464 022/124: added changes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 1a779ba 029/124: Merge pull request #8 from holymonson/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 059c255 030/124: Merge branch 'master' of github.com:yoshiki/yaml-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 9e07024 032/124: Changed version to 0.0.9, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 737c7fc 034/124: Remove default C-j binding, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode fb17c37 036/124: Bumping version to 0.0.10, ELPA Syncer, 2021/08/29