初稿: 2018-08-09 Thu 09:56
最終更新日: 2018-12-14 Fri 20:44
ホーム | 文書トップ | 目次

org-make-options-regexp
org記法をパースする正規表現を作る

1: (defun org-make-options-regexp (kwds &optional extra)
2:   "Make a regular expression for keyword lines.
3: KWDS is a list of keywords, as strings.  Optional argument EXTRA,
4: when non-nil, is a regexp matching keywords names."
5:   (concat "^[ \t]*#\\+\\("
6:       (regexp-opt kwds)
7:       (and extra (concat (and kwds "\\|") extra))
8:       "\\):[ \t]*\\(.*\\)"))

日付: 2018-08-09 Thu 09:56

著者: conao

Created: 2018-12-14 Fri 21:04

Validate