From 04f311e17870a358ba8bb1923dc18e3f5ed1fbe6 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Wed, 13 Sep 2023 13:24:13 +0200 Subject: [PATCH] Keep index as part of signal name --- src/vcd/parse/scopes.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/vcd/parse/scopes.rs b/src/vcd/parse/scopes.rs index c60deda..fbb297b 100644 --- a/src/vcd/parse/scopes.rs +++ b/src/vcd/parse/scopes.rs @@ -98,14 +98,10 @@ pub(super) fn parse_var<'a, R: std::io::Read>( let (word, _) = next_word!(word_reader)?; match word { "$end" => break, - other => { - if !other.starts_with("[") { - full_signal_name.push(word.to_string()) - } - } + _ => full_signal_name.push(word.to_string()) } } - let full_signal_name = full_signal_name.join(" "); + let full_signal_name = full_signal_name.join(""); let num_bytes = if num_bits.is_some() { let bytes_required = SignalEnum::bytes_required(num_bits.unwrap(), &full_signal_name)?;