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 support for typedefs internal to cppclasses #2

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

chrhansk
Copy link
Contributor

@chrhansk chrhansk commented Nov 1, 2024

This should enable class-internal typedefs:

cdef cppclass Example[T]:
    ctypedef T LocalAlias

As an aside: The repository contains several auto-generated files (src/parser.c, src/node-types.json, src/grammar.json) which make for large diffs. Could these by any chance be removed?

@b0o
Copy link
Owner

b0o commented Nov 1, 2024

Looks good, thank you!

As an aside: The repository contains several auto-generated files (src/parser.c, src/node-types.json, src/grammar.json) which make for large diffs. Could these by any chance be removed?

Yeah, it's a bit unfortunate, but that's the standard way tree-sitter parser repos are handled, for example:

@b0o b0o merged commit d439eca into b0o:master Nov 1, 2024
4 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