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

Add cpp for range loop #251

Merged

Conversation

Abstract-Everything
Copy link
Contributor

The main reason for the pull request is to add a query for the C++ range based for loop. While I was at it I also decided to add a test file for the C++ language. I have included the test cases that are specified for the C language. I did this because they are separate languages and I think we should check that the features work in both, not just check C and assume that they work for C++. That being said, this introduces duplication of test code, if a test is added the the C file, the C++ test file needs to be updated as well.

@lewis6991 lewis6991 merged commit 79f2758 into nvim-treesitter:master Apr 26, 2023
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