syn-powered parser for JSX-like TokenStreams
Features
value_as_block
method on Node
quote::ToTokens
on NodeName
Fixes
number_of_top_level_nodes
optionRefactoring
ToString
to Display
on Node
parse
and parse2
no longer take a config
as second argument. Instead parse_with_config
and parse2_with_config
exist for this purposeParserConfig
is configured by calling methods instead of having to construct it fully<div {attribute} />
) and as such node attributes
can also be of type NodeType::Block
Node
method name_span
: Returns Span
if the name
is Some
NodeName
method span
: Returns the Span
ParserConfig
options
number_of_top_level_nodes
: Exact number of required top level nodestype_of_top_level_nodes
: Enforce the NodeType
of top level nodesBreaking change
NodeName::Dashed
to NodeName::Dash
Features
NodeName::Colon
, e.g. <div on:click={foo} />