[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 171883f 13/47: Add let coloring.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 171883f 13/47: Add let coloring. |
Date: |
Mon, 18 May 2015 09:51:45 +0000 |
branch: master
commit 171883fa4f044bc5c4acf0042531f1b160a8e7d6
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Add let coloring.
---
context-coloring.el | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index a84a1b4..9c31314 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -375,6 +375,7 @@ generated by `js2-mode'."
one-word-found-p
in-defun-p
in-lambda-p
+ in-let-p
in-let*-p
defun-arglist
defun-arg
@@ -472,10 +473,13 @@ generated by `js2-mode'."
(setq in-defun-p t))
((string-match-p "\\`lambda\\'" child-0-string)
(setq in-lambda-p t))
+ ((string-match-p "\\`let\\'" child-0-string)
+ (setq in-let-p t))
((string-match-p "\\`let\\*\\'" child-0-string)
(setq in-let*-p t)))))
(when (or in-defun-p
in-lambda-p
+ in-let-p
in-let*-p)
(setq scope-stack (cons (context-coloring-make-scope
(nth 0 ppss)
@@ -524,7 +528,8 @@ generated by `js2-mode'."
;; Cleanup
(setq in-defun-p nil)
(setq in-lambda-p nil))
- (in-let*-p
+ ((or in-let-p
+ in-let*-p)
(goto-char child-0-end)
;; Lookahead for bindings
(context-coloring-forward-sws)
@@ -552,6 +557,7 @@ generated by `js2-mode'."
(setq let-varlist (cdr let-varlist)))
(goto-char child-1-end))
;; Cleanup
+ (setq in-let-p nil)
(setq in-let*-p nil))
(t
(goto-char (cond
- [elpa] master updated (e42b97b -> b525e2d), Jackson Ray Hamilton, 2015/05/18
- [elpa] master 056be97 01/47: Add URL to header., Jackson Ray Hamilton, 2015/05/18
- [elpa] master eb429df 02/47: Use lowercase for hex codes., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 5e34bec 04/47: Cover malformed defun cases., Jackson Ray Hamilton, 2015/05/18
- [elpa] master d9d901f 03/47: Add basic elisp defun coloring., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 8919acd 05/47: Add lambda coloring., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 62506ae 06/47: Add quote and number coloring., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 284cfa6 08/47: Don't treat unbindables like variables., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 636e6b9 07/47: Add elisp comments and strings support., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 3e3141f 09/47: Refactor elisp tests to use visual assertions., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 171883f 13/47: Add let coloring.,
Jackson Ray Hamilton <=
- [elpa] master 58b7474 11/47: Don't color function calls as level 0., Jackson Ray Hamilton, 2015/05/18
- [elpa] master dd8d491 12/47: Also color defsubst., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 5acd088 10/47: Add non-recursive let* coloring., Jackson Ray Hamilton, 2015/05/18
- [elpa] master c830ae5 15/47: Fix let* test., Jackson Ray Hamilton, 2015/05/18
- [elpa] master b4072c1 14/47: Trivial refactoring for clarity., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 926d74a 17/47: Include binding order in let* test., Jackson Ray Hamilton, 2015/05/18
- [elpa] master 29328af 18/47: Add let test., Jackson Ray Hamilton, 2015/05/18
- [elpa] master ea3ff31 16/47: Pass let* test., Jackson Ray Hamilton, 2015/05/18
- [elpa] master b28e896 19/47: Add complex nesting to let test., Jackson Ray Hamilton, 2015/05/18
- [elpa] master bd9c147 20/47: Ignore the dot., Jackson Ray Hamilton, 2015/05/18