branch: externals/denote commit 0ea65a07c6068739ea80f24d3eb9ddcc1da610ad Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Refine denote-faces--file-name-regexp for fontification --- denote.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/denote.el b/denote.el index 235d8deaf6..6260195abd 100644 --- a/denote.el +++ b/denote.el @@ -2491,9 +2491,9 @@ and seconds." ;; For character classes, evaluate: (info "(elisp) Char Classes") (defvar denote-faces--file-name-regexp (concat "\\(?1:[0-9]\\{8\\}\\)\\(?2:T[0-9]\\{6\\}\\)" - "\\(?:\\(?3:==\\)\\(?4:[[:alnum:][:nonascii:]]*\\)\\)?" - "\\(?:\\(?5:--\\)\\(?6:[[:alnum:][:nonascii:]-]*\\)\\)?" - "\\(?:\\(?7:__\\)\\(?8:[[:alnum:][:nonascii:]_-]*\\)\\)?" + "\\(?:\\(?3:==\\)\\(?4:[[:alnum:][:nonascii:]]*?\\)\\)?" + "\\(?:\\(?5:--\\)\\(?6:[[:alnum:][:nonascii:]-]*?\\)\\)?" + "\\(?:\\(?7:__\\)\\(?8:[[:alnum:][:nonascii:]_-]*?\\)\\)?" "\\(?9:\\..*\\)?$") "Regexp of file names for fontification.")