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

fix(lib): allow hiding symbols #3180

Merged
merged 1 commit into from
Mar 17, 2024
Merged

Conversation

ObserverOfTime
Copy link
Member

@ObserverOfTime ObserverOfTime commented Mar 14, 2024

Problem

Python extensions should only export the module function (PyInit_foo), but the library bindings currently export all the ts_* symbols and the parser bindings export the tree_sitter_foo and ts_current_* symbols.

Solution

Add a TREE_SITTER_HIDDEN_SYMBOLS flag that can be defined to hide the core symbols.

@amaanq amaanq merged commit 4bbaee2 into tree-sitter:master Mar 17, 2024
10 of 12 checks passed
@ObserverOfTime ObserverOfTime deleted the exports branch March 17, 2024 11:21
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.

None yet

2 participants