Skip to content

Commit

Permalink
fix(javascript) incorrect function name highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfung1031 committed Dec 16, 2023
1 parent 6317acd commit 6f7aa63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Core Grammars:
- enh(delphi) allow digits to be omitted for hex and binary literals [Jonah Jeleniewski][]
- enh(delphi) add support for digit separators [Jonah Jeleniewski][]
- enh(delphi) add support for character strings with non-decimal numerics [Jonah Jeleniewski][]
- fix(javascript) incorrect function name highlighting [CY Fung][]

New Grammars:

Expand All @@ -36,6 +37,7 @@ Developer Tool:
[Robloxian Demo]: https://github.com/RobloxianDemo
[Paul Tsnobiladzé]: https://github.com/tsnobip
[Jonah Jeleniewski]: https://github.com/cirras
[CY Fung]: https://github.com/cyfung1031


## Version 11.9.0
Expand Down
4 changes: 2 additions & 2 deletions src/languages/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ export default function(hljs) {
...ECMAScript.BUILT_IN_GLOBALS,
"super",
"import"
]),
IDENT_RE, regex.lookahead(/\(/)),
].map(x => `${x}\\s*\\(`)),
IDENT_RE, regex.lookahead(/\s*\(/)),
className: "title.function",
relevance: 0
};
Expand Down

0 comments on commit 6f7aa63

Please sign in to comment.