Closed DecimalTurn closed 1 year ago
Thanks @DecimalTurn for another great issue. Agreed.
Many of the above classes are likely in need of removal also as they are mostly legacy ideas which are just copies of existing classes from VB6 at present. Unsure if they are adding unnecessary clutter.
Looking now it is mostly bas modules not sure if there is a method to get these to show up properly?
@sancarn There is a way if you want to make it all VBA. For modules, there are a few regexes that can make the file detected as VBA but the easiest is to have simply "VBA" appear somewhere in the code. Hence, a simple comment at the top like this would be enough:
'Lang: VBA
There is currently about 20% of the code detected as VB6.
That is because these 5 classes have the
Persistable
metadata key at the top of the file[^1]:Normally, for VBA classes, this metadata is absent and we simply have:
I'd suggest to standardize the metadata section accross all classes since the extra metadata is ignored by VBA anyway.
[^1]: This detection rule comes from this regex in github-linguist: https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/heuristics.yml#L156C7-L156C7