Skip to content

JS arrow functions are difficult to type in strict mode #823

@nickserv

Description

@nickserv

Expected behavior

I can type () => {} or any other valid JS ES6 arrow function and strict mode will allow me to type the > without matching it with a <.

Actual behavior

I'm prevented from typing > on its own so I have to type C-u > every time. Basically, smartparents doesn't know this is valid syntax so it assumes it's an unmatched angle bracket.

Steps to reproduce the problem

  1. Open any supported JS mode
  2. Enable smartparens-strict-mode
  3. Type () => {} or any other valid JS ES6 arrow function

Environment & version information

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    To triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions