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++] Confused by GNU style functions returning a struct/enum type. #4131

Closed
simartin opened this issue Jan 6, 2025 · 1 comment
Closed

Comments

@simartin
Copy link
Contributor

simartin commented Jan 6, 2025

What happened?

Issue noticed on the GCC code base, that uses https://www.gnu.org/prep/standards/html_node/Formatting.html, hence has code formatted as follows:

enum tree_code
cp_parser_ptr_operator (cp_parser* parser)
{
  /* some code */
}

The syntax highlighter gets confused by the newline: the scope for the cp_parser_ptr_operator token is meta.enum.c++ instead of meta.function.c++.

I am working on fixing this, and open this ticket for tracking.

@deathaxe
Copy link
Collaborator

deathaxe commented Jan 6, 2025

Duplicate of #3938 and #4104

@deathaxe deathaxe closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
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

2 participants