2017-09-08 13:44:55 +02:00
|
|
|
# https://www.mercurial-scm.org/
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
# Detection
|
|
|
|
# ‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook global BufCreate .*hg-editor-\w+\.txt$ %{
|
2017-11-03 08:34:41 +01:00
|
|
|
set-option buffer filetype hg-commit
|
2017-09-08 13:44:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Highlighters
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook -group hg-commit-highlight global WinSetOption filetype=hg-commit %{
|
2018-07-26 10:59:42 +02:00
|
|
|
add-highlighter window/ group hg-commit-highlight
|
2018-08-09 11:27:40 +02:00
|
|
|
add-highlighter window/hg-commit-highlight regex '^HG:[^\n]*' 0:comment
|
2018-12-11 00:11:35 +01:00
|
|
|
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/hg-commit-highlight }
|
2017-09-08 13:44:55 +02:00
|
|
|
}
|