Closed dcnorris closed 3 months ago
No, there is nothing less invasive.
I've managed to achieve the desired effect adding these lines to the forth-mode hook:
(dolist (w '("for" "next" "[i" "i]" ";i"))
(forth-syntax--define w #'forth-syntax--state-font-lock-keyword))
Admittedly, this calls a --
function; but is less invasive than editing the original source.
I can of course modify
forth-syntax.el
as follows,But is there a less 'invasive' approach to adding fontified keywords, similar to the provisions made via
forth-smie-bnf-extensions
which we can specify in a.dir-locals.el
as follows?