I have made a face to highlight elisp comments starting with ;; [
using hi-lock
. My intention is to only colour the expression [text]
using SUBEXP
.
(highlight-regexp "^;; \\[.+\\].+$" 'face-aid "\\[.+\\]"))
Tho above does not do the highlight. How does one construct SUBEXP
exactly?
The documentation for highlight-regexp
states that the function limits face setting to the corresponding SUBEXP
of REGEXP
. But does not say how a SUBEXP
would look like. Using "\\[.+\\]"
for SUBEXP
is definitely incorrect.
subexp
inhighlight-regexp
.SUBEXP
do you have trouble understanding?