The error message is "Basic type, type constructor, symbol, typeof, __traits, __vector or mixin expected"
This syntax is perfectly legal, and occurs in the dub source code. Furthermore, it is documented as legal as "scope" is one of the "ForeachTypeAttributes".
I suspect libdparse does not understand this -- I ran into this in my own grammar, probably because I was borrowing the libdparse grammar.
The following syntax results in an error in LSP..
The error message is "Basic type, type constructor, symbol,
typeof
,__traits
,__vector
ormixin
expected"This syntax is perfectly legal, and occurs in the dub source code. Furthermore, it is documented as legal as "scope" is one of the "ForeachTypeAttributes".
I suspect libdparse does not understand this -- I ran into this in my own grammar, probably because I was borrowing the libdparse grammar.