1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-10 09:43:26 -08:00

Fix comment end delimiter fontification in OPascal mode

* lisp/progmodes/opascal.el (opascal-mode): Fontify the ending
brace with `font-lock-comment-delimiter-face' correctly (bug#34088).
This commit is contained in:
Lars Ingebrigtsen 2021-05-11 15:51:42 +02:00
parent c9bf4e7f43
commit 17a950cc80

View file

@ -1766,6 +1766,7 @@ Coloring:
(setq-local syntax-propertize-function opascal--syntax-propertize)
(setq-local comment-start "// ")
(setq-local comment-end "}")
(setq-local comment-start-skip "\\(?://\\|(\\*\\|{\\)[ \t]*")
(setq-local comment-end-skip "[ \t]*\\(?:\n\\|\\*)\\|}\\)"))