mooz / js2-mode

Improved JavaScript editing mode for GNU Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

forward-sexp and backward-sexp are incoherent

DamienCassou opened this issue · comments

Given this content

values
    .filter((a) => a)
    .filter((a) => a);

in a js2-mode buffer, forward-sexp seems to work fine but backward-sexp goes back to the beginning of the first line when invoked with point at the end of second line.

More information at AmaiKinono/puni#9.

Yes, there is certain imbalance in their working. It has been that way for basically ever, I think.

I'll look into this when I have the time. If someone would like to propose a patch, though -- welcome.