Fix fixed_number priority in delay_value
This commit is contained in:
parent
c606d64093
commit
7b9c4278eb
@ -2,5 +2,6 @@
|
|||||||
|
|
||||||
## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.1.4...Unreleased) - ReleaseDate
|
## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.1.4...Unreleased) - ReleaseDate
|
||||||
|
|
||||||
|
* [Fixed] fixed_number priority in delay_value
|
||||||
* [Fixed] cast/const_cast priority
|
* [Fixed] cast/const_cast priority
|
||||||
* [Added] unwrap_node macro
|
* [Added] unwrap_node macro
|
||||||
|
@ -68,8 +68,8 @@ pub(crate) fn delay_value(s: Span) -> IResult<Span, DelayValue> {
|
|||||||
alt((
|
alt((
|
||||||
map(keyword("1step"), |x| DelayValue::Step1(Box::new(x))),
|
map(keyword("1step"), |x| DelayValue::Step1(Box::new(x))),
|
||||||
map(time_literal, |x| DelayValue::TimeLiteral(Box::new(x))),
|
map(time_literal, |x| DelayValue::TimeLiteral(Box::new(x))),
|
||||||
map(unsigned_number, |x| DelayValue::UnsignedNumber(Box::new(x))),
|
|
||||||
map(real_number, |x| DelayValue::RealNumber(Box::new(x))),
|
map(real_number, |x| DelayValue::RealNumber(Box::new(x))),
|
||||||
|
map(unsigned_number, |x| DelayValue::UnsignedNumber(Box::new(x))),
|
||||||
map(ps_identifier, |x| DelayValue::PsIdentifier(Box::new(x))),
|
map(ps_identifier, |x| DelayValue::PsIdentifier(Box::new(x))),
|
||||||
))(s)
|
))(s)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user