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

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

[elpa] master ee81da9 11/51: Allow "# --" end-of-header marker to have t


From: Noam Postavsky
Subject: [elpa] master ee81da9 11/51: Allow "# --" end-of-header marker to have trailing space
Date: Sun, 13 May 2018 13:11:40 -0400 (EDT)

branch: master
commit ee81da91d90a85f0e1a2937fade7ef5d71456c07
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Allow "# --" end-of-header marker to have trailing space
    
    * yasnippet.el (yas--parse-template): Allow trailing space after "#
    --" marker.
---
 yasnippet.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yasnippet.el b/yasnippet.el
index a8a3bbb..760b224 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1493,7 +1493,7 @@ Here's a list of currently recognized directives:
          expand-env
          binding
          uuid)
-    (if (re-search-forward "^# --\n" nil t)
+    (if (re-search-forward "^# --\\s-*\n" nil t)
         (progn (setq template
                      (buffer-substring-no-properties (point)
                                                      (point-max)))



reply via email to

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