Skip to content

Commit

Permalink
Fix color for uppercase closing tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 23, 2024
1 parent ec5a823 commit b95b88a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion site/monarch/samplecode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export const sample3 = () => {
list.add('foo');
list.add('bar');
return <>
<TodoInput add={(v) => list.add(v)} />
<TodoInput add={(v) => list.add(v)}>
<TodoInput add={(v) => list.add(v)} />
</TodoInput>
{list.ul}
</>;
};
Expand Down
7 changes: 6 additions & 1 deletion site/token-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ export const tokenProvider = {
}],
[/(<\/)([a-zA-Z_$][.\w$]*)(>)/, {
cases: {
'$2==$S2': ['delimiter.html', 'constant', { token: 'delimiter.html', next: '@pop' }],
'$2==$S2': ['delimiter.html', {
cases: {
'[A-Z].*': 'type.identifier',
'@default': 'constant',
}
}, { token: 'delimiter.html', next: '@pop' }],
'@default': { token: 'invalid', next: '@pop' },
}
}
Expand Down

0 comments on commit b95b88a

Please sign in to comment.