Remove lower case components that use the paran syntax (#551)

* chore: remove lowercase components

* chore: add docs are lowercase components

* docs: also add docs around lowercase components in current scope
This commit is contained in:
Jon Kelley authored and GitHub committed 2022-09-12 20:01:03 -07:00
1 parent d4d5d2733e
commit 38e8745db9
5 files changed
+56 -46

No files matched your search

+2 -5
View File
@@ -74,17 +74,14 @@ impl Parse for BodyNode {
//
// example
// Div {}
// Div ()
// ::Div {}
// crate::Div {}
// component()
// component {} <-- already handled by elements
// ::component {}
// ::component ()
// crate::component{}
// crate::component()
// Input::<InputProps<'_, i32> {}
// crate::Input::<InputProps<'_, i32> {}
if body_stream.peek(token::Brace) || body_stream.peek(token::Paren) {
if body_stream.peek(token::Brace) {
Component::validate_component_path(&path)?;
return Ok(BodyNode::Component(stream.parse()?));