Skip to content

Commit

Permalink
refactor: remove deprecated scopes (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaschdoc authored Oct 12, 2022
1 parent 3fd8fc0 commit 092f687
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/flix.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function(hljs) {
};

const CLASS = {
scope: 'class',
scope: 'title.class',
beginKeywords: 'class enum',
end: /[:={\[\n;]/,
excludeEnd: true,
Expand All @@ -51,10 +51,16 @@ export default function(hljs) {
]
};

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

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

0 comments on commit 092f687

Please sign in to comment.