KaptainMicila / ZScript-VSCode

GZDoom's ZScript language support for VSCode
MIT License
19 stars 7 forks source link

Array<> detection is broken #1

Open KaptainMicila opened 3 years ago

KaptainMicila commented 3 years ago

Array<> breaks everything Array<type> is broken and requires Array<type > to fix.

The correct syntax would be: Array<type> normally Array<class<type> >, to avoid colliding with the >> operator.

KaptainMicila commented 3 years ago

I did some editing and now the situation is reversed: Array<> still breaks everything Array<type> is not broken anymore Array<class<type>> is detected as correct, and that's not good.

KaptainMicila commented 3 years ago

I decided to leave this as it is because: Array<> is not valid anyway (thanks phantombeta for the tip), but it still breaks everything. Array<type> has been resolved, and that's the best thing right now. whoever is developing in ZScript has to know that Array<Class<Type>> is not valid anyway, so I'm happy with these results, for now.

If some regex god manages to fix the problem with some regex miracle I will be even happier than I am now.