Skip to content

Commit

Permalink
filter out macros for package symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewNolte committed Nov 3, 2024
1 parent bd3cc10 commit 6413927
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/analysis/VerilogDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export class VerilogDoc {

async getPackageSymbols(): Promise<Symbol[]> {
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<string> {
Expand Down

0 comments on commit 6413927

Please sign in to comment.