`>` in arrow function `=>` leads unexpected behaviour
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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