Skip to content

smart way to detect current node #16

@redguardtoo

Description

@redguardtoo
(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions