Skip to content

Commit

Permalink
fix: function highlight ends after fun name (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaschdoc authored Oct 12, 2022
1 parent 092f687 commit ed0d9b8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/flix.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,10 @@ export default function(hljs) {
]
};

const PARAMS = {
scope: 'params',
begin: NAME + 's*:s*' + NAME,
end: ',|)'
};

const METHOD = {
scope: 'title.function',
beginKeywords: 'def',
end: /\)/,
end: /[(\[]/,
excludeEnd: true,
contains: [
NAME
Expand Down

0 comments on commit ed0d9b8

Please sign in to comment.