Skip to content

Commit 6d84935

Browse files
committed
add support for JSX and TSX
Signed-off-by: Luke-zhang-04 <[email protected]>
1 parent d8506af commit 6d84935

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

Diff for: resources/jsx.ascii

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{0} '::::::' '::::::'
2+
{0} ,js' ',jsx:' ':jsx,' js,
3+
{0} js' ':react:' 'js
4+
{0} js ,react' js
5+
{0} js' jsx' 'jsx 'js
6+
{0} :jsx:::react:::react:::jsx:
7+
{0} '::react:jsx:,' '::react:jsx:,'
8+
{0} ':jsx,' jsx'jsx ',:,' jsx'jsx ',jsx:'
9+
{0}:jsx :jsx, 'reactjs' ,jsx: jsx:
10+
{0}' 'js: :reactjsx: :js' '
11+
{0}:jsx :jsx, 'reactjs' ,jsx: jsx:
12+
{0} ':jsx,' jsx'jsx ',:,' jsx'jsx ',jsx:'
13+
{0} '::react:jsx:,' '::react:jsx:,'
14+
{0} :jsx:::react:::react:::jsx:
15+
{0} js' jsx' 'jsx 'js
16+
{0} js ,react, js
17+
{0} js' ':react:' 'js
18+
{0} ,js' ',:js:' ':js:,' 'js,
19+
{0} '::::::' '::::::'

Diff for: resources/tsx.ascii

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{0} '::::::' '::::::'
2+
{0} ,ts' ',tsx:' ':tsx,' ts,
3+
{0} ts' ':react:' 'ts
4+
{0} ts ,react' ts
5+
{0} ts' tsx' 'tsx 'ts
6+
{0} :tsx:::react:::react:::tsx:
7+
{0} '::react:tsx:,' '::react:tsx:,'
8+
{0} ':tsx,' tsx'tsx ',:,' tsx'tsx ',tsx:'
9+
{0}:tsx :tsx, 'reactts' ,tsx: tsx:
10+
{0}' 'ts: :reacttsx: :ts' '
11+
{0}:tsx :tsx, 'reactts' ,tsx: tsx:
12+
{0} ':tsx,' tsx'tsx ',:,' tsx'tsx ',tsx:'
13+
{0} '::react:tsx:,' '::react:tsx:,'
14+
{0} :tsx:::react:::react:::tsx:
15+
{0} ts' tsx' 'tsx 'ts
16+
{0} ts ,react, ts
17+
{0} ts' ':react:' 'ts
18+
{0} ,ts' ',:ts:' ':ts:,' 'ts,
19+
{0} '::::::' '::::::'

Diff for: src/onefetch/language.rs

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ define_languages! {
196196
{ Idris, "idris.ascii", "Idris", define_colors!( [Color::Red] ) },
197197
{ Java, "java.ascii", "Java", define_colors!( [Color::Cyan, Color::Red] ) },
198198
{ JavaScript, "javascript.ascii", "JavaScript", define_colors!( [Color::Yellow] ) },
199+
{ Jsx, "jsx.ascii", "JSX", define_colors!( [Color::Blue] ) },
199200
{ Julia, "julia.ascii", "Julia", define_colors!( [Color::White, Color::Blue, Color::Green, Color::Red, Color::Magenta] ) },
200201
{ Jupyter, "jupyter.ascii", "Jupyter-Notebooks", define_colors!( [Color::White, Color::Yellow, Color::White] ), "jupyter-notebooks" },
201202
{ Kotlin, "kotlin.ascii", "Kotlin", define_colors!( [Color::Blue, Color::Yellow, Color::Magenta] ) },
@@ -245,6 +246,7 @@ define_languages! {
245246
},
246247
{ Tcl, "tcl.ascii", "Tcl", define_colors!( [Color::Blue, Color::White, Color::Cyan] ) },
247248
{ Tex, "tex.ascii", "Tex", define_colors!( [Color::White, Color::Black] ) },
249+
{ Tsx, "tsx.ascii", "TSX", define_colors!( [Color::Blue] ) },
248250
{ TypeScript, "typescript.ascii", "TypeScript", define_colors!( [Color::Cyan] ) },
249251
{ Vue, "vue.ascii", "Vue", define_colors!( [Color::Green, Color::Blue] ) },
250252
{ Xml, "xml.ascii", "XML", define_colors!( [Color::Yellow, Color::White, Color::Green] ) },

0 commit comments

Comments
 (0)