Reference Support
This commit is contained in:
parent
346d4403df
commit
46c486e56a
@ -24,12 +24,13 @@ export function parseTypeAndName(piece: string) {
|
|||||||
let name = piece.substring(index + 1)!;
|
let name = piece.substring(index + 1)!;
|
||||||
let type = piece.substring(0, index)!;
|
let type = piece.substring(0, index)!;
|
||||||
// Move Asterisks From Name To Type
|
// Move Asterisks From Name To Type
|
||||||
while (name.startsWith('*')) {
|
while (name.startsWith('*') || name.startsWith('&')) {
|
||||||
|
const x = name.substring(0, 1);
|
||||||
name = name.substring(1);
|
name = name.substring(1);
|
||||||
if (!type.endsWith('*')) {
|
if (!type.endsWith('*') && !type.endsWith('&')) {
|
||||||
type += ' ';
|
type += ' ';
|
||||||
}
|
}
|
||||||
type += '*';
|
type += x;
|
||||||
}
|
}
|
||||||
// Return
|
// Return
|
||||||
return {type, name};
|
return {type, name};
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>keyword.control.symbol-processor</string>
|
<string>keyword.control.symbol-processor</string>
|
||||||
<key>match</key>
|
<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>
|
||||||
<dict>
|
<dict>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
|
Loading…
Reference in New Issue
Block a user