Releases: stoically/syn-rsx
Releases · stoically/syn-rsx
v0.7.1
v0.7.0
Breaking changes
parse
andparse2
no longer take aconfig
as second argument. Insteadparse_with_config
andparse2_with_config
exist for this purposeParserConfig
is configured by calling methods instead of having to construct it fully- Braced blocks are allowed in attribute position (
<div {attribute} />
) and as such nodeattributes
can also be of typeNodeType::Block
Features
Node
methodname_span
: ReturnsSpan
if thename
isSome
NodeName
methodspan
: Returns theSpan
ParserConfig
optionsnumber_of_top_level_nodes
: Exact number of required top level nodestype_of_top_level_nodes
: Enforce theNodeType
of top level nodes
- Better error reporting on empty input