When you open the following D file in CudaText (v1.140.5.1 with D lexer [2020.04.23] installed) on Win10 x64 you get an "Access violation" error. Haven't tried other systems.
sample.d
module sample;
class Sample
{
int sampleFunc()
{
}
}
AV is due to complex code-tree nodes config (in lexer). I will correct the lexer too, seems.
Lexer is just updated!
Thanks for the quick fix.
But now it seems that the D lexer (2021.08.07) does not detect functions anymore that have arrays as parameters. This was working before.
void sampleFunc(int[] num)
{
}
Unrelated to previous bug (new issue?):
I noticed the D lexer (2021.08.07) fails to find classes that inherit from other classes. Even if the base class is commented out. Enums are working though.
// not found
class Sample1 : Base
{
}
// not found
class Sample2 // : Base
{
}
// not found
class Sample3 /* : Base */
{
}
// found
enum Sample4 : Base
{
}
Seems fixed.

I will update the lexer in 10minutes.
feedback is welcome.
Awesome! It's working now. Thank you so much again.