emacs-typescript / typescript.el

TypeScript-support for Emacs
GNU General Public License v3.0
266 stars 79 forks source link

typescript-beginning-of-defun misses ES2015 forms #135

Open leungbk opened 4 years ago

leungbk commented 4 years ago

ES2015 classes and class methods, along with stuff like

const foo = (args) => {
  const a = 42;
  return false;
}

are not treated as defuns.

thiagotps commented 3 years ago

Same problem here. Class methods are not treated as defuns.

josteink commented 3 years ago

Can reproduce this. Clearly a bug.