[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a27c9cb 17/38: Fix length of shorthand object property nod
From: |
Dmitry Gutov |
Subject: |
[elpa] master a27c9cb 17/38: Fix length of shorthand object property nodes (e.g. `{foo, bar}`) |
Date: |
Wed, 28 Feb 2018 20:12:11 -0500 (EST) |
branch: master
commit a27c9cbbd88adb295b77d61aee68f231fe83178c
Author: Mihai Bazon <address@hidden>
Commit: Mihai Bazon <address@hidden>
Fix length of shorthand object property nodes (e.g. `{foo,bar}`)
---
js2-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/js2-mode.el b/js2-mode.el
index 74da82b..c9685c4 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -11127,9 +11127,10 @@ string or expression."
(js2-name-node-p prop))))
(setq result (make-js2-object-prop-node
:pos pos
+ :len (js2-node-len prop)
:left prop
:right prop
- :op-pos (js2-current-token-len)))
+ :op-pos (- (js2-current-token-beg) pos)))
(js2-node-add-children result prop)
(js2-node-set-prop result 'SHORTHAND t)
result)
- [elpa] master 4062ae4 22/38: [bugfix] Mark @type jsdoc tag as a typed tag not an arg tag, (continued)
- [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
- [elpa] master 7e4293b 01/38: Parse all default exports as expressions, Dmitry Gutov, 2018/02/28
- [elpa] master 5cb52a7 11/38: Merge pull request #454 from olessavluk/trailing-comma, Dmitry Gutov, 2018/02/28
- [elpa] master a27c9cb 17/38: Fix length of shorthand object property nodes (e.g. `{foo, bar}`),
Dmitry Gutov <=
- [elpa] master 29d295a 31/38: Merge pull request #476 from lelit/avoid-dynbind, Dmitry Gutov, 2018/02/28
- [elpa] master a495394 34/38: Do not overwrite POS, Dmitry Gutov, 2018/02/28
- [elpa] master 4e032e6 24/38: Merge pull request #467 from felipeochoa/jsdoc-single-line, Dmitry Gutov, 2018/02/28
- [elpa] master 33c7169 32/38: Port over fix for https://debbugs.gnu.org/23391, Dmitry Gutov, 2018/02/28
- [elpa] master 38e4257 37/38: Release new version, Dmitry Gutov, 2018/02/28
- [elpa] master 8488723 29/38: Merge pull request #466 from mishoo/master, Dmitry Gutov, 2018/02/28
- [elpa] master dfaa145 12/38: Add separate object property access face., Dmitry Gutov, 2018/02/28
- [elpa] master 700c024 23/38: Merge pull request #468 from felipeochoa/jsdoc-type, Dmitry Gutov, 2018/02/28
- [elpa] master 5a99c23 20/38: Add tests for jsdoc highlighting, Dmitry Gutov, 2018/02/28
- [elpa] master a104d62 21/38: [feat] add support for single-line jsdoc highlighting, Dmitry Gutov, 2018/02/28