Hi MAPJe71,
Thank you for this new code.
I think having 2 separated parser definitions, one for the scripts (.ms) and one for the macros (.mcr), is fine in most of the cases, and your suggestion is nice :)
I tested the code above and I have the following issues:
for .ms files, the structure is correctly identified with the “class” icon and as a new folder level. If there are 2 or more structures in the file though other structures are not recognized at all.
for .mcr files the new folder level for macros is not recognized. It would be nice if it could also support several macros in the .mcr file.
I updated the sample files to introduce several structures and macros to test this, you can find them in this package: https://we.tl/kSLs8d5zhg
Thanks a lot for your help,
Werwack