slynch8 / 10x

10x IDE/Editor
191 stars 35 forks source link

Parser issue using anonymous lambda in array decleration #2846

Open JayMarBu opened 1 month ago

JayMarBu commented 1 month ago

Hi, in my work codebase i have encountered a kinda niche parser bug.

in the codebase we have a macro used to define the hashed integer of a string at compile time rather than runtime, whos implementation uses an anonymous lambda to do it. however adding this to a static array declaration seems to break the parser when trying to declare class member functions in the file. i have attached a project that demonstrates a minimal repro of this minimal_repro_example.zip

image