Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ template syntax support #181

Open
PlasmaHH opened this issue Apr 7, 2022 · 0 comments
Open

C++ template syntax support #181

PlasmaHH opened this issue Apr 7, 2022 · 0 comments

Comments

@PlasmaHH
Copy link

PlasmaHH commented Apr 7, 2022

Not sure if this is really a feature request, or more a request of how to configure things with proper syntax matching...

In C++ nested templates can get a bit ugly to read like a<b<c,e,>,g,> and so on... Therefore using rainbow parens for this can be useful... however there is the tricky part that < and > are part of comparison operations, and thus are for one, not always balanced, and then also in places where you don't want this to happen.

As this plugin is kind of a syntax highlight configuration generator, I wonder if it would be possible to restrict to certain syntactic constructs, or at least "reset" the balancing search if e.g. encountering a closing ) of an if( a > b) statement, or a final ; of a vector> v; delcaration or the : and { of a template struct foo : bar { }; definition...

( alternatively what would be already very helpful I guess is toggling the inclusion of < and > for a short amount of time when you really need the better readability )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant