emacs: add Runtime to d-mode font-lock keywords

This commit is contained in:
Jeremy Baxter 2024-03-07 16:27:29 +13:00
parent 542d969589
commit 6b64ae00cb

View file

@ -69,7 +69,7 @@
(sh-mode . bash-ts-mode)))
;; fix to make d-mode highlight primitive types properly
(font-lock-add-keywords 'd-mode
'(("\\<\\(bool\\|byte\\|ubyte\\|char\\|delegate\\|double\\|float\\|function\\|int\\|long\\|short\\|uint\\|ulong\\|ushort\\|cent\\|ucent\\|real\\|ireal\\|idouble\\|ifloat\\|creal\\|cfloat\\|cdouble\\|wchar\\|dchar\\|void\\|string\\|wstring\\|dstring\\|__vector\\|Thread\\)\\>" . 'font-lock-type-face)))
'(("\\<\\(bool\\|byte\\|ubyte\\|char\\|delegate\\|double\\|float\\|function\\|int\\|long\\|short\\|uint\\|ulong\\|ushort\\|cent\\|ucent\\|real\\|ireal\\|idouble\\|ifloat\\|creal\\|cfloat\\|cdouble\\|wchar\\|dchar\\|void\\|string\\|wstring\\|dstring\\|__vector\\|Runtime\\|Thread\\)\\>" . 'font-lock-type-face)))
;; highlight colours
(package-install 'rainbow-mode)