emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/yaml-mode 701b2ec4b8 2/3: Update page-delimiter to handle


From: ELPA Syncer
Subject: [nongnu] elpa/yaml-mode 701b2ec4b8 2/3: Update page-delimiter to handle YAML directive
Date: Mon, 20 Nov 2023 01:00:58 -0500 (EST)

branch: elpa/yaml-mode
commit 701b2ec4b82d108d44bc346d7358475411b17467
Author: Damien Merenne <dam@cosinux.org>
Commit: GitHub <noreply@github.com>

    Update page-delimiter to handle YAML directive
    
    YAML document header can have directives embedded in it. This commits 
updates the page-delimiter variable to handle them.
---
 yaml-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yaml-mode.el b/yaml-mode.el
index 42c7466e47..990493f6f3 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -225,7 +225,7 @@ that key is pressed to begin a block literal."
   (set (make-local-variable 'indent-line-function) 'yaml-indent-line)
   (set (make-local-variable 'indent-tabs-mode) nil)
   (set (make-local-variable 'fill-paragraph-function) 'yaml-fill-paragraph)
-  (set (make-local-variable 'page-delimiter) "^---[[:space:]]*\n")
+  (set (make-local-variable 'page-delimiter) "^---\\([ \t].*\\)*\n")
 
   (set (make-local-variable 'syntax-propertize-function)
        'yaml-mode-syntax-propertize-function)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]