Skip to content

Commit

Permalink
enh(js/ts) fix => async function title highlights (#3414)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Dec 9, 2021
1 parent 0bf3ade commit 4ddfbe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -2,6 +2,7 @@

Grammars:

- enh(js/ts) fix => async function title highlights (#3405) [Josh Goebel][]
- enh(twig) update keywords list (#3415) [Matthieu Lempereur][]
- fix(python) def, class keywords detected mid-identifier (#3381) [Josh Goebel][]
- fix(python) Fix recognition of numeric literals followed by keywords without whitespace (#2985) [Richard Gibson][]
Expand Down
2 changes: 2 additions & 0 deletions src/languages/javascript.js
Expand Up @@ -406,8 +406,10 @@ export default function(hljs) {
/const|var|let/, /\s+/,
IDENT_RE, /\s*/,
/=\s*/,
/(async\s*)?/, // async is optional
regex.lookahead(FUNC_LEAD_IN_RE)
],
keywords: "async",
className: {
1: "keyword",
3: "title.function"
Expand Down

0 comments on commit 4ddfbe4

Please sign in to comment.