chore: Cleanup the JSX parser a bit
parent
dc5c2ab92a
commit
03ec9c2e1d
|
@ -52,7 +52,7 @@ open Parser PrettyPrinter
|
||||||
declare_syntax_cat jsxElement
|
declare_syntax_cat jsxElement
|
||||||
declare_syntax_cat jsxChild
|
declare_syntax_cat jsxChild
|
||||||
|
|
||||||
def jsxAttrVal : Parser := strLit <|> group ("{" >> termParser >> "}") <|> ("[" >> termParser >> "]")
|
def jsxAttrVal : Parser := strLit <|> group ("{" >> termParser >> "}")
|
||||||
def jsxAttr : Parser := ident >> "=" >> jsxAttrVal
|
def jsxAttr : Parser := ident >> "=" >> jsxAttrVal
|
||||||
|
|
||||||
-- JSXTextCharacter : SourceCharacter but not one of {, <, > or }
|
-- JSXTextCharacter : SourceCharacter but not one of {, <, > or }
|
||||||
|
|
Loading…
Reference in New Issue