filetype/mercurial: Fix file name regex

The regex for detecting Mercurial's file types was too strict and
didn't catch commit messages.

Relax it to make it detect the commit files properly.
This commit is contained in:
Nico Sonack 2023-11-16 11:30:07 +01:00
parent 6fb03b55a1
commit f19546a2bb

View File

@ -4,7 +4,7 @@
# Detection
# ‾‾‾‾‾‾‾‾‾
hook global BufCreate .*hg-editor-\w+\.txt$ %{
hook global BufCreate .*hg-editor-.*\.txt$ %{
set-option buffer filetype hg-commit
}