mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
ui/hl-todo: fix comment detection for some major modes
For major modes with poorly implemented syntax-tables, or simply can't use them for their comments.
This commit is contained in:
@@ -7,4 +7,10 @@
|
||||
(setq hl-todo-keyword-faces
|
||||
`(("TODO" . ,(face-foreground 'warning))
|
||||
("FIXME" . ,(face-foreground 'error))
|
||||
("NOTE" . ,(face-foreground 'success)))))
|
||||
("NOTE" . ,(face-foreground 'success))))
|
||||
|
||||
;; Use a more primitive todo-keyword detection method in major modes that
|
||||
;; don't use/have a valid syntax table entry for comments.
|
||||
(add-hook!
|
||||
(pug-mode haml-mode)
|
||||
#'+hl-todo|use-face-detection))
|
||||
|
Reference in New Issue
Block a user