Sublime Forum

Improved C++ support

#1

I noticed some C++ parsing/handling issues. The following code snipped summerizes it:

// regions aren't recognized as collapsible blocks (it's more a VC++ issue...)
#pragma region ARegion
HRESULT A::a()
{
    return S_OK;
}

// leading comment prevent function recognition
/**/ HRESULT A::b()
{
    return S_OK;
}

// function is recognized as a golobal function not a class function
template <class ACLASS>
HRESULT A<ACLASS>::c()
{
    return S_OK;
}
#pragma endregion
0 Likes

#2

You can propose changes via a pull request at:

https://github.com/sublimehq/Packages

0 Likes

#3

Thanks for the hint. Should I also create an issue on GitHub?

0 Likes

#4

Yes, please create an issue for every issue you have :slight_smile: .

0 Likes

#5

Done. Created an issue on GitHub so that the discussion could continue on that platform.

0 Likes