diff options
| author | Christoph Schlosser <christoph@linux.com> | 2020-06-26 15:02:38 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2020-06-26 15:09:49 +0200 |
| commit | 3e68f18e2e10d90bd094707141c943146482f68b (patch) | |
| tree | 28e78a5ca625812e3241cb1917c3f34473fc3061 /src/Lang | |
| parent | 42a085fbda8e742595cf5b543ac4f8202c03fb7d (diff) | |
| download | doxdocgen-3e68f18e2e10d90bd094707141c943146482f68b.tar.gz | |
Add option to filter keywords
Diffstat (limited to 'src/Lang')
| -rw-r--r-- | src/Lang/Cpp/CppParser.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Lang/Cpp/CppParser.ts b/src/Lang/Cpp/CppParser.ts index d59ec9b..708af68 100644 --- a/src/Lang/Cpp/CppParser.ts +++ b/src/Lang/Cpp/CppParser.ts @@ -145,6 +145,8 @@ export default class CppParser implements ICodeParser { // Non type keywords will be stripped from the final return type. this.keywords = this.typeKeywords.concat(this.stripKeywords); + // Remove keywords that should be filtered + this.keywords = this.keywords.concat(this.cfg.Generic.filteredKeywords); this.lexerVocabulary = { ArraySubscript: (x: string): string => (x.match("^\\[[^\\[]*?\\]") || [])[0], |