Skip to content

Commit 009f4c2

Browse files
committed
add back Foo.custom-tag to syntax tests
1 parent 78d4d46 commit 009f4c2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

jscomp/syntax/tests/printer/expr/expected/jsx.res.txt

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ let x = <Foo.Bar.Baz className="container" />
55
let x = <Foo.bar className="container" />
66
let x = <Foo.baz className="multiline" />
77
let x = <custom-tag className="container" />
8+
let x = <Foo.custom-tag className="container" />
89

910
// https://github.com/rescript-lang/syntax/issues/570
1011
let x =
@@ -41,6 +42,11 @@ let x =
4142
{a}
4243
<B />
4344
</custom-tag>
45+
let x =
46+
<Foo.custom-tag className="container">
47+
{a}
48+
<B />
49+
</Foo.custom-tag>
4450

4551
let x = <div className="container" className2="container2" className3="container3" onClick />
4652

jscomp/syntax/tests/printer/expr/jsx.res

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ let x = <Foo.baz
77
className="multiline"
88
/>
99
let x = <custom-tag className="container" />
10+
let x = <Foo.\"custom-tag" className="container" />
1011

1112
// https://github.com/rescript-lang/syntax/issues/570
1213
let x = <A> <B> <C> <D /> <E /> </C> <F> <G /> <H /> </F> </B> </A>
@@ -15,6 +16,7 @@ let x = <A> <B/> {children} </A>
1516
let x = <A> {a} </A>
1617
let x = <A> {a} {b} </A>
1718
let x = <custom-tag className="container" > {a} <B/> </custom-tag>
19+
let x = <Foo.\"custom-tag" className="container" > {a} <B/> </Foo.\"custom-tag">
1820

1921
let x =
2022
<div

0 commit comments

Comments
 (0)