[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs 27.1] Comment and delimiter highlighting
From: |
Marcus Harnisch |
Subject: |
[Emacs 27.1] Comment and delimiter highlighting |
Date: |
Mon, 1 Mar 2021 20:56:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 |
Hi all
What determines the assignment of faces to comment delimiters and
comment text? Syntax table or variables such as ‘comment-start’,
‘comment-end’, etc.
The reason I am asking is that in ‘verilog-mode’ block comment enders
are not highlighted properly:
* Set ‘font-lock-comment-face’ and ‘font-lock-comment-delimiter-face’ to
reasonably distinguishable colours.
* Create buffer and enable verilog-mode.
* Enter this text:
/****** ****
***** sdhfghg
**** ****/
* Observe that the trailing delimiter is not assigned the expected face.
Alternatively use ‘M-x describe-char’ to see details.
There is a second issue that I noticed when comparing with a C file,
since both languages share the same comment syntax: The asterisks
immediately following the comment start delimiter are also assigned
‘font-lock-comment-delimiter-face’, even though they are not actually
part of the delimiter. Note that highlighting of asterisks preceding
the comment end delimiter does not follow the same logic (symmetry).
Cheers,
Marcus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs 27.1] Comment and delimiter highlighting,
Marcus Harnisch <=