[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/yaml-mode 756e64b 084/124: Don't consider a line a documen
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/yaml-mode 756e64b 084/124: Don't consider a line a document delimiter if it has leading whitespace |
Date: |
Sun, 29 Aug 2021 11:36:18 -0400 (EDT) |
branch: elpa/yaml-mode
commit 756e64ba128e296b15a92d9bdaf48d4bdecad354
Author: Jonathan Frederickson <jfrederickson@linode.com>
Commit: Jonathan Frederickson <jfrederickson@linode.com>
Don't consider a line a document delimiter if it has leading whitespace
The YAML spec says this:
>This line must start with a document separator: “---” followed by a
>line break or a sequence of space characters.
http://yaml.org/spec/1.0/#id2561718
If I'm reading the spec correctly, this seems to mean that a document
separator must appear at the start of the line. The current behavior
causes yaml-mode to interpret three dashes as a document separator even
inside an indented block literal.
(https://github.com/yoshiki/yaml-mode/issues/53)
---
yaml-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/yaml-mode.el b/yaml-mode.el
index 90e2109..e257379 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -125,7 +125,7 @@ that key is pressed to begin a block literal."
(defconst yaml-directive-re "^\\(?:--- \\)? *%\\(\\w+\\)"
"Regexp matching a line contatining a YAML directive.")
-(defconst yaml-document-delimiter-re "^ *\\(?:---\\|[.][.][.]\\)"
+(defconst yaml-document-delimiter-re "^\\(?:---\\|[.][.][.]\\)"
"Rexexp matching a YAML document delimiter line.")
(defconst yaml-node-anchor-alias-re "[&*][a-zA-Z0-9_-]+"
- [nongnu] elpa/yaml-mode fb17c37 036/124: Bumping version to 0.0.10, (continued)
- [nongnu] elpa/yaml-mode fb17c37 036/124: Bumping version to 0.0.10, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 34b6367 041/124: Use font-lock-flush when available, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode a817e46 045/124: Bumping version to 0.0.12, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 93dd95c 051/124: remove regexp details from test-file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode e9937d2 063/124: Backquote FTW, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 3dc2212 065/124: Remove obsolete `font-lock-syntactic-keywords` use, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 8d1f218 071/124: Spelling fix, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 5abb2f4 078/124: update yaml-mode-version, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 10dddc5 080/124: Fix typo in yaml-mode-version docstring, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 162f7e4 082/124: Treat alias nodes as punctuation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 756e64b 084/124: Don't consider a line a document delimiter if it has leading whitespace,
ELPA Syncer <=
- [nongnu] elpa/yaml-mode 78b3ba5 095/124: fill while in a comment should behave as in text modes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 20d12a2 001/124: init, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 00ac9e5 116/124: Merge pull request #67 from HParker/fix-comment-indent, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 6694896 002/124: change e-mail, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 67348f3 014/124: dash (-) is a word character, see YAML spec 1.2 section 5.6, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 37469ca 015/124: Changed versions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode c7624d4 018/124: added *.elc to .gitignore, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 52d6d57 019/124: Merge pull request #3 from arthuraa/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 5eae0c1 031/124: Changed version to 0.0.9, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 5f92179 035/124: Merge pull request #15 from barrkel/master, ELPA Syncer, 2021/08/29