From 6413927fc8d56f62ffca8c1e4dd1b29f9d417e0f Mon Sep 17 00:00:00 2001 From: Andrew Nolte Date: Sun, 3 Nov 2024 12:02:07 -0500 Subject: [PATCH] filter out macros for package symbols --- src/analysis/VerilogDoc.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/analysis/VerilogDoc.ts b/src/analysis/VerilogDoc.ts index 62ae97f..1b57655 100644 --- a/src/analysis/VerilogDoc.ts +++ b/src/analysis/VerilogDoc.ts @@ -120,7 +120,9 @@ export class VerilogDoc { async getPackageSymbols(): Promise { let syms = await this.getSymbols({}, false) - return syms.filter((tag) => !this.NON_PKG_TYPES.has(tag.type)) + syms = syms.filter((sym) => !this.NON_PKG_TYPES.has(sym.type)) + syms = syms.filter((sym) => !sym.name.startsWith('`')) + return syms } async execCtags(filepath: string): Promise {