mattn / mattn/emmet-vim

`>` in arrow function `=>` leads unexpected behaviour

Open
#428 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
6.5k
Forks
414
PR merge metrics
No merged PRs in 30d

Description

Hello, when I use emmet in jsx file,

    render: (text) => div|

produces

    render: <text></text>
<div></div>

instead of

    render: (text) => <div></div>

> in => seems to cause expanding word before =>. Is there anyway to distinguish > in a => bfrom > in a>b?

Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a Vim JSX buffer using the exact arrow-function and Emmet examples from the report. Trace how the > character is interpreted during expansion, then verify that the arrow-function case produces a single <div></div> while ordinary tag expansion still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.