[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 58b7474 11/47: Don't color function calls as level 0.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 58b7474 11/47: Don't color function calls as level 0. |
Date: |
Mon, 18 May 2015 09:51:44 +0000 |
branch: master
commit 58b7474f6d6e80a3b91c782c23453d173588f878
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Don't color function calls as level 0.
---
context-coloring.el | 9 +--------
test/context-coloring-test.el | 14 +++++++-------
2 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index 3a57b3f..0f65b57 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -376,7 +376,6 @@ generated by `js2-mode'."
in-defun-p
in-lambda-p
in-let*-p
- function-call-p
defun-arglist
defun-arg
let-varlist
@@ -472,10 +471,7 @@ generated by `js2-mode'."
((string-match-p "\\`lambda\\'" child-0-string)
(setq in-lambda-p t))
((string-match-p "\\`let\\*\\'" child-0-string)
- (setq in-let*-p t))
- ;; Assume a global function call
- (t
- (setq function-call-p t)))))
+ (setq in-let*-p t)))))
(when (or in-defun-p
in-lambda-p
in-let*-p)
@@ -489,9 +485,6 @@ generated by `js2-mode'."
(scan-sexps token-pos 1)
(context-coloring-scope-get-level
(car scope-stack)))
- (when function-call-p
- (context-coloring-colorize-region child-0-pos child-0-end 0)
- (setq function-call-p nil))
(cond
((or in-defun-p
in-lambda-p)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 148ddac..c8a3532 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -1090,7 +1090,7 @@ see that function."
(lambda ()
(context-coloring-test-assert-coloring "
111111 000 1111 111 111111111 1111
- 10 111 111 111 000011
+ 11 111 111 111 000011
0000 0 0 00
@@ -1101,16 +1101,16 @@ see that function."
(lambda ()
(context-coloring-test-assert-coloring "
00000000 1111111 1111
- 10000000 11 2222222 2222
- 200 22 12 2221 111 0 00")))
+ 11111111 11 2222222 2222
+ 222 22 12 2221 111 0 00")))
(context-coloring-test-deftest-emacs-lisp-mode quote
(lambda ()
(context-coloring-test-assert-coloring "
(xxxxx x (x)
(xx (xx x 111
- 100000 1 111 111
- 100000 1 1111000000 11 111 1 110 1 00001 10000 11 00001 1 100001111")))
+ 111111 1 111 111
+ 111111 1 1111111111 11 111 1 111 1 00001 10000 11 00001 1 100001111")))
(context-coloring-test-deftest-emacs-lisp-mode comment
(lambda ()
@@ -1118,7 +1118,7 @@ see that function."
(context-coloring-test-assert-coloring "
(xxxxx x ()
(xx (x xxxxx-xxxx xx) ;;;;;;;;;;
- (0 xxxxx-xxxx xx))) ;;;;;;;;;;"))
+ 11 00000-0000 11))) ;;;;;;;;;;"))
:setup (lambda ()
(setq context-coloring-syntactic-comments t)))
@@ -1134,7 +1134,7 @@ see that function."
(lambda ()
(context-coloring-test-assert-coloring "
(xxxxx x ()
- (0 0 1 11 11 111 11 1 111))")))
+ (x x 1 11 11 111 11 1 111))")))
(context-coloring-test-deftest-emacs-lisp-mode let*
(lambda ()
- [elpa] master 056be97 01/47: Add URL to header., (continued)
- [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, 2015/05/18
- [elpa] master 58b7474 11/47: Don't color function calls as level 0.,
Jackson Ray Hamilton <=
- [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
- [elpa] master d7b2c92 21/47: Remove unused functions., Jackson Ray Hamilton, 2015/05/18