From ee81da91d90a85f0e1a2937fade7ef5d71456c07 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Fri, 13 Oct 2017 23:51:49 -0400 Subject: [PATCH] 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)))