Skip to content

Commit

Permalink
constructor/super
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 22, 2024
1 parent 8792d4f commit ce46d5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions site/token-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export const tokenProvider = {
root: [
[/[{}]/, 'delimiter.bracket'],
[/^\s+#?[\w$]+(?=\s*[;=:])/, 'property'],
[/^\s+(constructor|super)(?=\s*[(])/, 'keyword'],
[/^\s+#?[\w$]+(?=\s*[(])/, 'method'],
{ include: 'common' },
],

Expand Down Expand Up @@ -83,8 +85,7 @@ export const tokenProvider = {
}
}
],
[/[A-Z][\w\$]*/, 'type.identifier'], // to show class names nicely
// [/[A-Z][\w\$]*/, 'identifier'],
[/[A-Z][\w\$]*/, 'type.identifier'],

// whitespace
{ include: '@whitespace' },
Expand Down

0 comments on commit ce46d5b

Please sign in to comment.