Prevent conflict markers from breaking syntactic analysis
コンフリクトでシンタックスハイライトなどが壊れないようにするマイナーモー ド
This package provides a minor-mode which advices major modes to treat git conflict markers and “their” changes as comments, so that they will not break major-mode’s syntax-highlighting.
- without
commentize-conflict
show-paren-mode
is broken by the conflict marker. - with
commentize-conflict
lines between
=
and<<<<<<< feature-branch
are treated as comments andshow-paren-mode
is NOT broken.
Put this scrpit into a ‘load-path’ed directory, and load it in your init file.
(require 'commentize-conflict)
and add hook to the modes you want to enable the feature.
(add-hook 'prog-mode-hook 'commentize-conflict-mode)