Skip to content

Commit

Permalink
add a comment to explain matching the start of params
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Goebel <[email protected]>
  • Loading branch information
MohamedAli00949 and joshgoebel authored Nov 15, 2023
1 parent 2550cd0 commit 56a61ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/languages/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export default function(hljs) {
]);
const PARAMS = {
className: 'params',
// convert this to negative lookbehind in v12
begin: /(\s*)\(/, // to match the parms with
end: /\)/,
excludeBegin: true,
Expand Down

0 comments on commit 56a61ef

Please sign in to comment.