branch: master
commit ee81da91d90a85f0e1a2937fade7ef5d71456c07
Author: Noam Postavsky <[email protected]>
Commit: Noam Postavsky <[email protected]>
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)))