Skip to content

Commit

Permalink
feat: add enums (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaschdoc authored Oct 12, 2022
1 parent 3f38f4a commit a969b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flix.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function(hljs) {

const CLASS = {
scope: 'class',
beginKeywords: 'class',
beginKeywords: 'class enum',
end: /[:={\[\n;]/,
excludeEnd: true,
contains: [
Expand All @@ -86,7 +86,7 @@ export default function(hljs) {
const METHOD = {
scope: 'function',
beginKeywords: 'def',
end: /[(\[]/, // Start of type parameters or formal parameters
end: /[(\[]/,
excludeEnd: true,
contains: [
NAME
Expand Down

0 comments on commit a969b5d

Please sign in to comment.