You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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) :
constinit=()=>{// something}
❌ Example with async (does not recognize function name) :
constinit=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.
The text was updated successfully, but these errors were encountered:
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
orhighlightAuto
?highlight
specifically asking forjavascript
languageSample 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) :❌ Example with
async
(does not recognize function name) :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.The text was updated successfully, but these errors were encountered: