Sarrus1 / sourcepawn-studio

VSCode extension for SourcePawn scripting
https://sarrus1.github.io/sourcepawn-studio/
MIT License
143 stars 22 forks source link

`#endif` at EOF is marked as an error #291

Closed KitRifty closed 1 year ago

KitRifty commented 1 year ago

Basic informations

Further Information

An #endif at EOF is marked as an error (even if the syntax is correct). However, the error goes away if a comment or line break is added after it.

Code to reproduce the behaviour

#define THIS_THING

#if defined THIS_THING

void MyFunc()
{
    PrintToServer("My function");
}

#endif

Expected behaviour

No error.

Error messages

image

Sarrus1 commented 1 year ago

The original tree-sitter-sourcepawn seems to be inactive, I will use my fork for now.