I'm trying to build a major mode for xwiki, where I'm defining
{{{
verbatim
}}}
as a comment.
So far, I've done
(eval-when-compile
(defconst xwiki-syntax-propertize-rules
(syntax-propertize-precompile-rules
("{{{" (0 "< b"))
("}}}" (0 "> b")))))
(setq-local syntax-propertize-function (syntax-propertize-rules xwiki-syntax-propertize-rules))
When I do describe-char
, on any of the characters in {{{
, I see that it is identified as a comment style b. I also see }}}
identified as comment style b.
However, under text properties, there's nothing set for face
. Am I missing something?
font-lock-defaults
?(setq-local font-lock-defaults '(xwiki-mode-font-lock-keywords t))
in adefine-derived-mode
, and then I did aneval-buffer
, and I switched into another buffer with xwiki text and didxwiki-mode