From 46c486e56a15334ccc4bd52bcc9ab1bfbcb7d27e Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Mon, 15 Jul 2024 03:02:29 -0400 Subject: [PATCH] Reference Support --- src/common.ts | 7 ++++--- .../Syntaxes/SymbolProcessor.tmLanguage | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common.ts b/src/common.ts index 19a5311..523f51e 100644 --- a/src/common.ts +++ b/src/common.ts @@ -24,12 +24,13 @@ export function parseTypeAndName(piece: string) { let name = piece.substring(index + 1)!; let type = piece.substring(0, index)!; // Move Asterisks From Name To Type - while (name.startsWith('*')) { + while (name.startsWith('*') || name.startsWith('&')) { + const x = name.substring(0, 1); name = name.substring(1); - if (!type.endsWith('*')) { + if (!type.endsWith('*') && !type.endsWith('&')) { type += ' '; } - type += '*'; + type += x; } // Return return {type, name}; diff --git a/syntax-highlighting/textmate/SymbolProcessor.tmbundle/Syntaxes/SymbolProcessor.tmLanguage b/syntax-highlighting/textmate/SymbolProcessor.tmbundle/Syntaxes/SymbolProcessor.tmLanguage index d488584..1103f73 100644 --- a/syntax-highlighting/textmate/SymbolProcessor.tmbundle/Syntaxes/SymbolProcessor.tmLanguage +++ b/syntax-highlighting/textmate/SymbolProcessor.tmbundle/Syntaxes/SymbolProcessor.tmLanguage @@ -34,7 +34,7 @@ name keyword.control.symbol-processor match - \b(extends|size|vtable-size|vtable|property|static-property|method|virtual-method|static-method|constructor|vtable-destructor-offset)\b + \b(extends|size|vtable-size|vtable-destructor-offset|vtable|property|static-property|method|virtual-method|static-method|constructor)\b name