From bc73db5dba37f46790172b559e1c5a05d7ca8abe Mon Sep 17 00:00:00 2001 From: TheZoq2 Date: Tue, 3 Jan 2023 16:33:44 +0100 Subject: [PATCH] Do not include range in name --- src/vcd/parse/scopes.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vcd/parse/scopes.rs b/src/vcd/parse/scopes.rs index 94b8965..cb193cf 100644 --- a/src/vcd/parse/scopes.rs +++ b/src/vcd/parse/scopes.rs @@ -97,7 +97,11 @@ pub(super) fn parse_var<'a>( let (word, _) = next_word!(word_reader)?; match word { "$end" => break, - _ => full_signal_name.push(word.to_string()), + other => { + if !other.starts_with("[") { + full_signal_name.push(word.to_string()) + } + } } } let full_signal_name = full_signal_name.join(" ");