Allow "# --" end-of-header marker to have trailing space

* yasnippet.el (yas--parse-template): Allow trailing space after "#
--" marker.
This commit is contained in:
Noam Postavsky 2017-10-13 23:51:49 -04:00
parent 1292cd263a
commit ee81da91d9

View File

@ -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)))