[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master dd295e8 13/38: Merge pull request #461 from Fuco1/feature/
From: |
Dmitry Gutov |
Subject: |
[elpa] master dd295e8 13/38: Merge pull request #461 from Fuco1/feature/add-object-property-access-face |
Date: |
Wed, 28 Feb 2018 20:12:10 -0500 (EST) |
branch: master
commit dd295e838d3878188b1797b82a86867e3e56d22c
Merge: 5cb52a7 dfaa145
Author: Dmitry Gutov <address@hidden>
Commit: GitHub <address@hidden>
Merge pull request #461 from Fuco1/feature/add-object-property-access-face
Add separate object property access face
---
js2-mode.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/js2-mode.el b/js2-mode.el
index fd1655a..000f087 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -1031,6 +1031,11 @@ in large files.")
"Face used to highlight named property in object literal."
:group 'js2-mode)
+(defface js2-object-property-access
+ '((t :inherit js2-object-property))
+ "Face used to highlight property access with dot on an object."
+ :group 'js2-mode)
+
(defface js2-instance-member
'((t :foreground "DarkOrchid"))
"Face used to highlight instance variables in javascript.
@@ -6835,7 +6840,7 @@ Shown at or above `js2-highlight-level' 3.")
(if (string-match js2-ecma-object-props prop-name)
'font-lock-constant-face))))))
(when (and (not face) target (not call-p) prop-name)
- (setq face 'js2-object-property))
+ (setq face 'js2-object-property-access))
(when face
(let ((pos (+ (js2-node-pos parent) ; absolute
(js2-node-pos prop)))) ; relative
- [elpa] master updated (94c7628 -> a6c39c2), Dmitry Gutov, 2018/02/28
- [elpa] master 4daab44 03/38: remove stray message call, Dmitry Gutov, 2018/02/28
- [elpa] master b0f8f03 02/38: make sure to visit import clause children in order, Dmitry Gutov, 2018/02/28
- [elpa] master 3207e5c 05/38: correctly handle arrow functions in js2-node-parent-stmt, Dmitry Gutov, 2018/02/28
- [elpa] master 91c745a 04/38: Merge pull request #440 from felipeochoa/issue439, Dmitry Gutov, 2018/02/28
- [elpa] master daed014 10/38: add support for trailing comma in function arguments, Dmitry Gutov, 2018/02/28
- [elpa] master 048da26 06/38: Merge pull request #442 from felipeochoa/arrowStatements, Dmitry Gutov, 2018/02/28
- [elpa] master 6cf9ea4 07/38: Add jsdoc highlighting for yield and yields, Dmitry Gutov, 2018/02/28
- [elpa] master 43306d1 08/38: Merge pull request #444 from felipeochoa/jsdoc-yield, Dmitry Gutov, 2018/02/28
- [elpa] master dd295e8 13/38: Merge pull request #461 from Fuco1/feature/add-object-property-access-face,
Dmitry Gutov <=
- [elpa] master ce540d2 19/38: Merge pull request #465 from felipeochoa/jsdoc-abstract, Dmitry Gutov, 2018/02/28
- [elpa] master ba14eb8 16/38: [feat] add jsdoc @abstract and @virtual empty tags, Dmitry Gutov, 2018/02/28
- [elpa] master 4062ae4 22/38: [bugfix] Mark @type jsdoc tag as a typed tag not an arg tag, Dmitry Gutov, 2018/02/28
- [elpa] master 47dc8f2 25/38: [feat] add @typedef jsdoc highlighting support, Dmitry Gutov, 2018/02/28
- [elpa] master eba9797 26/38: Merge pull request #469 from felipeochoa/jsdoc-typedef, Dmitry Gutov, 2018/02/28
- [elpa] master 32c0491 15/38: Merge pull request #464 from felipeochoa/unary-node-pos, Dmitry Gutov, 2018/02/28
- [elpa] master e481404 27/38: [bugfix] error when parsing malformed namespace import, Dmitry Gutov, 2018/02/28
- [elpa] master ba3263b 28/38: Merge pull request #473 from felipeochoa/namespace-import-error, Dmitry Gutov, 2018/02/28
- [elpa] master 3ec4114 30/38: Explicitly pass the variable instead of relying on dynamic binding, Dmitry Gutov, 2018/02/28
- [elpa] master df51992 09/38: Fix function/class declaration issues from commit 7e4293b, Dmitry Gutov, 2018/02/28