This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree 3 files changed +4
-2
lines changed
tests/parsing/grammar/expressions 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ let verifyJsxOpeningClosingName p nameExpr =
618
618
let closing = match p.Parser. token with
619
619
| Lident lident -> Parser. next p; Longident. Lident lident
620
620
| Uident _ ->
621
- (parseModuleLongIdent ~lowercase: false p).txt
621
+ (parseModuleLongIdent ~lowercase: true p).txt
622
622
| _ -> Longident. Lident " "
623
623
in
624
624
match nameExpr.Parsetree. pexp_desc with
@@ -2422,7 +2422,7 @@ and parseJsxName p =
2422
2422
let loc = mkLoc identStart identEnd in
2423
2423
Location. mkloc (Longident. Lident ident) loc
2424
2424
| Uident _ ->
2425
- let longident = parseModuleLongIdent ~lowercase: false p in
2425
+ let longident = parseModuleLongIdent ~lowercase: true p in
2426
2426
Location. mkloc (Longident. Ldot (longident.txt, " createElement" )) longident.loc
2427
2427
| _ ->
2428
2428
let msg = " A jsx name should start with a lowercase or uppercase identifier, like: div in <div /> or Navbar in <Navbar />"
Original file line number Diff line number Diff line change @@ -542,6 +542,7 @@ let _ =
542
542
[@JSX ])
543
543
let _ = ((Navbar.createElement ~children:[] ())[@JSX ])
544
544
let _ = ((Nav.Navbar.createElement ~children:[] ())[@JSX ])
545
+ let _ = ((Nav.navbar.createElement ~children:[] ())[@JSX ])
545
546
let _ = ((el ~punned:((punned)[@ns.namedArgLoc ]) ~children:[] ())[@JSX ])
546
547
let _ = ((el ?punned:((punned)[@ns.namedArgLoc ]) ~children:[] ())[@JSX ])
547
548
let _ = ((el ~punned:((punned)[@ns.namedArgLoc ]) ~children:[] ())[@JSX ])
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ let _ = <div className="menu" onClick={_ => Js.log("click")}></div>
20
20
21
21
let _ = < Navbar > </ Navbar >
22
22
let _ = < Nav . Navbar > </ Nav . Navbar >
23
+ let _ = < Nav . navbar > </ Nav . navbar >
23
24
24
25
// punning
25
26
let _ = < el punned > </ el >
You can’t perform that action at this time.
0 commit comments