Skip to content

Commit

Permalink
Support braces in JSX tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 30, 2024
1 parent 912ffda commit fc92b76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/token-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export const tokenProvider = {
],

jsxOpen: [
[/{/, { token: 'keyword', next: '@root.INJSX', bracket: '@open' }],
[/>/, { token: 'delimiter.html', switchTo: '@jsxText.$S2' }],
[/\/>/, { token: 'delimiter.html', next: '@pop' }],
[/ +([\w-$]+)/, 'attribute.name'],
Expand Down

0 comments on commit fc92b76

Please sign in to comment.