Fix resetall wrongly clear define list
This commit is contained in:
parent
4ba38f42db
commit
7b54b36c8c
@ -2,6 +2,8 @@
|
||||
|
||||
## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.4.3...Unreleased) - ReleaseDate
|
||||
|
||||
* [Fix] \`resetall wrongly clear define list
|
||||
|
||||
## [v0.4.3](https://github.com/dalance/sv-parser/compare/v0.4.2...v0.4.3) - 2019-11-15
|
||||
|
||||
* [Added] parse_sv_str/parse_lib_str
|
||||
|
@ -176,9 +176,7 @@ pub fn preprocess_str<T: AsRef<Path>, U: AsRef<Path>>(
|
||||
}
|
||||
}
|
||||
match n {
|
||||
NodeEvent::Enter(RefNode::ResetallCompilerDirective(_)) if !skip => {
|
||||
defines.clear();
|
||||
}
|
||||
NodeEvent::Enter(RefNode::ResetallCompilerDirective(_)) if !skip => {}
|
||||
NodeEvent::Enter(RefNode::UndefineCompilerDirective(x)) if !skip => {
|
||||
let (_, _, ref name) = x.nodes;
|
||||
let id = identifier((&name.nodes.0).into(), &s).unwrap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user