chore: Cleanup the JSX parser a bit

main
Henrik Böving 2021-12-17 15:59:33 +01:00
parent dc5c2ab92a
commit 03ec9c2e1d
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ open Parser PrettyPrinter
declare_syntax_cat jsxElement
declare_syntax_cat jsxChild
def jsxAttrVal : Parser := strLit <|> group ("{" >> termParser >> "}") <|> ("[" >> termParser >> "]")
def jsxAttrVal : Parser := strLit <|> group ("{" >> termParser >> "}")
def jsxAttr : Parser := ident >> "=" >> jsxAttrVal
-- JSXTextCharacter : SourceCharacter but not one of {, <, > or }