babel / babel/babel-sublime

Functions with parameters on multiple lines are not highlighted properly.

Open
#424 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
3.2k
Forks
169
PR merge metrics
No merged PRs in 30d

Description

Functions with lists of parameters that might begin/end on different lines are not highlighted properly. This means that if you also use Prettier with Sublime, it's formatting will cause this issue to occur for functions with lots of parameters.

Here's an example:

**Parameter list closing paren on same line as function name:**

Screen Shot 2022-03-20 at 7 29 31 PM

**After formatting with prettier (closing paren on different line than opening paren):**

Screen Shot 2022-03-20 at 7 35 15 PM

**In VSCode:**

Screen Shot 2022-03-20 at 7 32 37 PM

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in Sublime using a JavaScript function whose parameter list spans multiple lines, then compare the highlighting with the provided VSCode examples. Trace the syntax definition responsible for function parameter highlighting; done means multiline parameter lists are highlighted correctly after Prettier formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
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.