Skip to content

Commit

Permalink
fix(dart): remove multi-matcher from FUNCTION_REFERENCE
Browse files Browse the repository at this point in the history
  • Loading branch information
guuido committed Nov 13, 2024
1 parent ed3b936 commit c726e93
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/languages/dart.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,8 @@ export default function(hljs) {

const FUNCTION_REFERENCE = {
relevance: 0,
match: [
/[a-z][A-Za-z0-9]*/,
/\(/
],
className: {
1: "title.function"
},
match: /[a-z][A-Za-z0-9]*(?=\()/,
className: "title.function",
};

return {
Expand Down

0 comments on commit c726e93

Please sign in to comment.