-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(js) Async arrow function should be highlighted as function #3405
Labels
Comments
Please provide textual examples that can be easily cut and paste in addition to images. |
@joshgoebel done ✅ |
Can async we used with the old syntax at all? |
2 tasks
Sure, like so : // not async
function myFunction() {
// ...
}
// async
async function myFunction() {
// ...
} Thank you very much for your reactivity ! 🥇 |
Which we already support because it's just a keyword there that needs no special coding. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: