mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 04:45:19 +00:00
Add tsx syntax highlight support
This commit is contained in:
parent
0f4b610c4c
commit
233897d02c
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ export const useSyntaxHighlightingExtension = (language: string, view: EditorVie
|
||||||
view ?? null,
|
view ?? null,
|
||||||
() => {
|
() => {
|
||||||
switch (language.toLowerCase()) {
|
switch (language.toLowerCase()) {
|
||||||
|
case "tsx":
|
||||||
case "typescript":
|
case "typescript":
|
||||||
case "javascript":
|
case "javascript":
|
||||||
return javascript({
|
return javascript({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue