diff --git a/src/core/sv_parser.rs b/src/core/sv_parser.rs index 00518cc..57999ef 100644 --- a/src/core/sv_parser.rs +++ b/src/core/sv_parser.rs @@ -605,7 +605,14 @@ fn get_includes(path: &PathBuf) -> Vec { let parts: Vec<&str> = line_content.split_whitespace().collect(); if parts.len() >= 2 { - let path = parts[1]; + let mut path = parts[1].trim(); + if path.starts_with("\"") { + path = path.strip_prefix("\"").unwrap(); + } + if path.ends_with("\"") { + path = path.strip_suffix("\"").unwrap(); + } + let last_character = line_content.find(path).unwrap() + path.len(); includes.push(crate::core::hdlparam::Include {