Skip to content

Commit

Permalink
Match class-level properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 22, 2024
1 parent e46764c commit 07c5416
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion site/token-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ export const tokenProvider = {

// The main tokenizer for our languages
tokenizer: {
root: [[/[{}]/, 'delimiter.bracket'], { include: 'common' }],
root: [

[/[{}]/, 'delimiter.bracket'],

[/^\s+#?[\w$]+(?=\s*[;=:])/, 'property'],

{ include: 'common' },

],

newtype: [
[/\s+/, ''],
Expand Down

0 comments on commit 07c5416

Please sign in to comment.