branch: master
commit dd8d4916a2ebbd6f0b15912434280948eba5c70c
Author: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
Commit: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>

    Also color defsubst.
---
 context-coloring.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index 0f65b57..a84a1b4 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -466,7 +466,9 @@ generated by `js2-mode'."
               (setq child-0-end (scan-sexps child-0-pos 1))
               (setq child-0-string (buffer-substring-no-properties child-0-pos 
child-0-end))
               (cond
-               ((string-match-p "\\`defun\\'\\|\\`defmacro\\'" child-0-string)
+               ((string-match-p
+                 "\\`defun\\'\\|\\`defmacro\\'\\|\\`defsubst\\'"
+                 child-0-string)
                 (setq in-defun-p t))
                ((string-match-p "\\`lambda\\'" child-0-string)
                 (setq in-lambda-p t))

Reply via email to