2017-09-08 14:44:55 +03:00
|
|
|
# https://www.mercurial-scm.org/
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
# Faces
|
|
|
|
# ‾‾‾‾‾
|
|
|
|
|
2017-11-03 10:34:41 +03:00
|
|
|
set-face MercurialCommitComment cyan
|
2017-09-08 14:44:55 +03:00
|
|
|
|
|
|
|
# Detection
|
|
|
|
# ‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook global BufCreate .*hg-editor-\w+\.txt$ %{
|
2017-11-03 10:34:41 +03:00
|
|
|
set-option buffer filetype hg-commit
|
2017-09-08 14:44:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
hook -group hg-commit-highlight global WinSetOption filetype=(?!hg-commit).* %{
|
2017-10-28 06:00:51 +03:00
|
|
|
remove-highlighter window/hg-commit-highlight
|
2017-09-08 14:44:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
# Highlighters
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook -group hg-commit-highlight global WinSetOption filetype=hg-commit %{
|
2017-10-28 06:00:51 +03:00
|
|
|
add-highlighter window group hg-commit-highlight
|
|
|
|
add-highlighter window/hg-commit-highlight regex '^HG:[^\n]*' 0:MercurialCommitComment
|
2017-09-08 14:44:55 +03:00
|
|
|
}
|