Commit 918a5eae authored by k3tu0isui's avatar k3tu0isui Committed by Lars Ingebrigtsen

Make font locking work in mercury-mode

* lisp/progmodes/prolog.el (prolog-font-lock-keywords): Work in
all modes derived from prolog-mode (bug#45747).
(mercury-mode): Set up variables based on the Prolog system (bug#45747).

Copyright-paperwork-exempt: yes
parent 25dadca0
......@@ -1201,7 +1201,9 @@ Commands:
(define-derived-mode mercury-mode prolog-mode "Prolog[Mercury]"
"Major mode for editing Mercury programs.
Actually this is just customized `prolog-mode'."
(setq-local prolog-system 'mercury))
(setq-local prolog-system 'mercury)
;; Run once more to set up based on `prolog-system'
......@@ -2082,7 +2084,7 @@ Argument BOUND is a buffer position limiting searching."
((eq major-mode 'prolog-mode)
((derived-mode-p 'prolog-mode)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment