Reference Support

This commit is contained in:
TheBrokenRail 2024-07-15 03:02:29 -04:00
parent 346d4403df
commit 46c486e56a
2 changed files with 5 additions and 4 deletions

View File

@ -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};

View File

@ -34,7 +34,7 @@
<key>name</key>
<string>keyword.control.symbol-processor</string>
<key>match</key>
<string>\b(extends|size|vtable-size|vtable|property|static-property|method|virtual-method|static-method|constructor|vtable-destructor-offset)\b</string>
<string>\b(extends|size|vtable-size|vtable-destructor-offset|vtable|property|static-property|method|virtual-method|static-method|constructor)\b</string>
</dict>
<dict>
<key>name</key>