redguardtoo / js-comint

js-comint will send the code from Emacs into node.js or rhino
GNU General Public License v3.0
69 stars 22 forks source link

smart way to detect current node #16

Open redguardtoo opened 7 years ago

redguardtoo commented 7 years ago
(js2-node-abs-pos (js2-node-at-point (1- (point))))
(js2-node-len (js2-node-abs-pos (js2-node-at-point (1- (point)))))

test [1, 2, 3].slice(0,2) maybe we can apply this into expand-region