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

feat: add context for c++ namespace definition #422

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

defr0std
Copy link
Contributor

Sometimes in complex c++ headers with several namespaces it's a bit hard to orient in which namespace you are currently working. Typically, there is one "public" namespace, and one "internal", and the file looks like this:

namespace public {
  // some code
namespace internal {
  // some code
}
  // some code
}

The proposal is to add the namespace definition as the context line.

@defr0std defr0std changed the title Add context for c++ namespace definition feat: add context for c++ namespace definition Mar 22, 2024
@lewis6991 lewis6991 merged commit f197661 into nvim-treesitter:master Mar 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants