Functions with parameters on multiple lines are not highlighted properly.
- 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:**

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

**In VSCode:**

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