branch: master commit cb8b1f2d241fc5a68933f7feb5e57801a98cf7da Author: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com> Commit: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
Add light color scheme. --- context-coloring.el | 26 ++++++++++---------------- test/fixtures/nest.js | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 16 deletions(-) diff --git a/context-coloring.el b/context-coloring.el index 3b871a8..852b749 100644 --- a/context-coloring.el +++ b/context-coloring.el @@ -42,60 +42,54 @@ ;;; Faces (defface context-coloring-depth--1-face - '((((background light)) (:foreground "#999999")) - (((background dark)) (:foreground "#999999"))) + '((((background light)) (:foreground "#7f7f7f")) + (((background dark)) (:foreground "#7f7f7f"))) "Nested blocks face, depth -1; comments." :group 'context-coloring-faces) (defface context-coloring-depth-0-face - '((((background light)) (:foreground "#ffffff")) + '((((background light)) (:foreground "#000000")) (((background dark)) (:foreground "#ffffff"))) "Nested blocks face, depth 0; global scope." :group 'context-coloring-faces) (defface context-coloring-depth-1-face - '((((background light)) (:foreground "#ffff80")) + '((((background light)) (:foreground "#2D6994")) (((background dark)) (:foreground "#ffff80"))) "Nested blocks face, depth 1." :group 'context-coloring-faces) (defface context-coloring-depth-2-face - '((((background light)) (:foreground "#cdfacd")) + '((((background light)) (:foreground "#592D94")) (((background dark)) (:foreground "#cdfacd"))) "Nested blocks face, depth 2." :group 'context-coloring-faces) (defface context-coloring-depth-3-face - '((((background light)) (:foreground "#d8d8ff")) + '((((background light)) (:foreground "#A13143")) (((background dark)) (:foreground "#d8d8ff"))) "Nested blocks face, depth 3." :group 'context-coloring-faces) (defface context-coloring-depth-4-face - '((((background light)) (:foreground "#e7c7ff")) + '((((background light)) (:foreground "#AC7135")) (((background dark)) (:foreground "#e7c7ff"))) "Nested blocks face, depth 4." :group 'context-coloring-faces) (defface context-coloring-depth-5-face - '((((background light)) (:foreground "#ffcdcd")) + '((((background light)) (:foreground "#ACA135")) (((background dark)) (:foreground "#ffcdcd"))) "Nested blocks face, depth 5." :group 'context-coloring-faces) (defface context-coloring-depth-6-face - '((((background light)) (:foreground "#ffe390")) + '((((background light)) (:foreground "#539A2F")) (((background dark)) (:foreground "#ffe390"))) "Nested blocks face, depth 6." :group 'context-coloring-faces) -(defface context-coloring-depth-7-face - '((((background light)) (:foreground "#cdcdcd")) - (((background dark)) (:foreground "#cdcdcd"))) - "Nested blocks face, depth 7." - :group 'context-coloring-faces) - -(defconst context-coloring-face-count 8 +(defconst context-coloring-face-count 7 "Number of faces defined for highlighting delimiter levels. Determines depth at which to cycle through faces again.") diff --git a/test/fixtures/nest.js b/test/fixtures/nest.js new file mode 100644 index 0000000..2e79213 --- /dev/null +++ b/test/fixtures/nest.js @@ -0,0 +1,32 @@ +function a() { + var A = a(); + function b() { + var B = b; + function c() { + var C = c; + function d() { + var D = d; + function e() { + var E = e; + function f() { + var F = f; + function g() { + var G = g; + function h() { + var H = [ + A, + B, + C, + D, + E, + F, + G + ]; + } + } + } + } + } + } + } +}