Open DosMike opened 1 year ago
This is due to how macros are expanded. The server sees the macros as expanded, so it thinks that there is a for
instead of forEach
in your example, thus the incorrect highlighting.
I think this can be sorted by keeping a sorted array of the expanded macros, and checking that the symbols that are highlighted are not stepping on another symbol.
Basic informations
Further Information
Usage of a function macro ignores the parens after and pulls symbol information from after the macro arcuments, making it look funny. If there's no more tokens in the line it just doesn't provide a tooltip at all, but coloring seems stable.
Omg most important feature, unworkable, 1 star on yelp 🤣
To Reproduce
#define something(%1) for(;(%1);(%1)--)
)something(number) PrintToServer("%i", number);
)Code to reproduce the behaviour
Expected behaviour
Type hints and colors on marco arguments should work