-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Description
Describe the issue
Async arrow function should be highlighted as function, instead it is not highlighted at all. This is the most used shape for functions in modern Javascript syntax (instead of function name() {}
)
Which language seems to have the issue?
js / ts
Are you using highlight
or highlightAuto
?
highlight
specifically asking for javascript
language
Sample Code to Reproduce
In the examples below, init
is a function name. The function is declared as arrow function in Javascript.
✅ Example without async
(works well) :
const init = () => {
// something
}
❌ Example with async
(does not recognize function name) :
const init = async () => {
// something
}
Expected behavior
The presence or absence of async
should not change function identification. In the example above, init
should be colored blue in both cases.