[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7b2a4c8 214/271: Merge branch 'develop'
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 7b2a4c8 214/271: Merge branch 'develop' |
Date: |
Thu, 05 Feb 2015 18:31:19 +0000 |
branch: master
commit 7b2a4c82a285a00e4df1c68784fb73048e796ded
Merge: 63e2590 a2ba1ef
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Merge branch 'develop'
---
context-coloring.el | 5 +++--
test/context-coloring-test.el | 17 +++++++++++++++++
test/fixtures/key-values.js | 8 ++++++++
3 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index 00b4cfb..477bc12 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -4,7 +4,7 @@
;; Author: Jackson Ray Hamilton <address@hidden>
;; Keywords: context coloring syntax highlighting
-;; Version: 1.0.0
+;; Version: 2.0.1
;; Package-Requires: ((emacs "24") (js2-mode "20141228"))
;; This program is free software; you can redistribute it and/or modify
@@ -255,7 +255,8 @@ END (exclusive) with the face corresponding to LEVEL."
variable."
(and (js2-name-node-p node)
(let ((parent (js2-node-parent node)))
- (not (or (js2-object-prop-node-p parent)
+ (not (or (and (js2-object-prop-node-p parent)
+ (eq node (js2-object-prop-node-left parent)))
(and (js2-prop-get-node-p parent)
;; For nested property lookup, the node on the left is a
;; `js2-prop-get-node', so this always works.
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 3fa7953..52a93fb 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -235,4 +235,21 @@ invoke when it is done."
"./fixtures/property-lookup.js"
(context-coloring-test-js-property-lookup)))
+(defun context-coloring-test-js-key-values ()
+ (context-coloring-test-assert-region-level 78 79 1))
+
+(ert-deftest-async context-coloring-test-js-mode-key-values (done)
+ (context-coloring-test-js-mode
+ "./fixtures/key-values.js"
+ (lambda (teardown)
+ (unwind-protect
+ (context-coloring-test-js-key-values)
+ (funcall teardown))
+ (funcall done))))
+
+(ert-deftest context-coloring-test-js2-mode-key-values ()
+ (context-coloring-test-js2-mode
+ "./fixtures/key-values.js"
+ (context-coloring-test-js-key-values)))
+
(provide 'context-coloring-test)
diff --git a/test/fixtures/key-values.js b/test/fixtures/key-values.js
new file mode 100644
index 0000000..41bdedd
--- /dev/null
+++ b/test/fixtures/key-values.js
@@ -0,0 +1,8 @@
+(function () {
+ var a;
+ (function () {
+ return {
+ b: a
+ };
+ }());
+}());
- [elpa] master 5826178 239/271: Update the dispatch API., (continued)
- [elpa] master 5826178 239/271: Update the dispatch API., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 3c8f842 195/271: Write failing property lookup test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 4ac1eaa 242/271: Version 3.0.0., Jackson Ray Hamilton, 2015/02/05
- [elpa] master b485897 186/271: Update benchmarks., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 9e177bf 268/271: Update headers and documentation for download-dependencies.el., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 48ff468 220/271: Update linter., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a0fefc4 245/271: Add themes. Prepare for ELPA. Version 3.1.0., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 574b955 248/271: Update sentence spacing., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 1f04586 172/271: Merge branch 'feature/js2-mode' into develop, Jackson Ray Hamilton, 2015/02/05
- [elpa] master 87725bc 190/271: Positions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 7b2a4c8 214/271: Merge branch 'develop',
Jackson Ray Hamilton <=
- [elpa] master e210009 221/271: Flycheck link., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a62e98e 260/271: Update header installation instructions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 94bc0dc 229/271: Add note about comments and strings. Update screenshots., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 83eb0e2 255/271: Externalize the JavaScript scopifier., Jackson Ray Hamilton, 2015/02/05