]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix comment end delimiter fontification in OPascal mode
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 11 May 2021 13:51:42 +0000 (15:51 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 11 May 2021 13:52:33 +0000 (15:52 +0200)
* lisp/progmodes/opascal.el (opascal-mode): Fontify the ending
brace with `font-lock-comment-delimiter-face' correctly (bug#34088).

lisp/progmodes/opascal.el

index 662d2b4b74f0372587814db08cf08aada85691bf..686e72ce6dd7204d19cf148326c87851b4729d77 100644 (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\\|\\*)\\|}\\)"))