From 6b64ae00cb1d2722256b4fabf0dd4e195a2c5829 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Thu, 7 Mar 2024 16:27:29 +1300 Subject: [PATCH] emacs: add Runtime to d-mode font-lock keywords --- .emacs.d/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 11361fe..9e5a51f 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -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)