emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master e06fbe9 158/271: Add comment support for js2-mode.


From: Jackson Ray Hamilton
Subject: [elpa] master e06fbe9 158/271: Add comment support for js2-mode.
Date: Thu, 05 Feb 2015 18:30:45 +0000

branch: master
commit e06fbe9f5b28652a3fc7316a4e43d57adf61bf3d
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Add comment support for js2-mode.
---
 context-coloring.el |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index 986d90d..5da99b6 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -260,6 +260,13 @@ For example: \"context-coloring-level-1-face\"."
      (lambda (node end-p)
        (when (null end-p)
          (cond
+          ((js2-comment-node-p node)
+           (let ((start (js2-node-abs-pos node)))
+             (context-coloring-colorize-region
+              start
+              (+ start (js2-comment-node-len node)) ; End
+              -1                                    ; Level
+              )))
           ((js2-scope-p node)
            ;; TODO: Work on catch blocks.
            ;; (message "SCOPE: %s, SPOS: %s, EPOS: %s"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]