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

Update special-handling queries for import-grammars #344

Open
mylinhdao opened this issue Apr 30, 2024 · 1 comment
Open

Update special-handling queries for import-grammars #344

mylinhdao opened this issue Apr 30, 2024 · 1 comment
Labels
question Further information is requested tech

Comments

@mylinhdao
Copy link
Collaborator

mylinhdao commented Apr 30, 2024

Sometime, we use special-handling queries instead of generated queries to cover syntaxes without dedicated node-types. But if the grammars change, we need to update these queries, too.
An example for a special-handling query is:
(enum_specifier body: (enumerator_list)) @enum_definition
If one of the node types (enum_specifier or enumerator_list) is deleted or modified, we must be informed about this query.

@mylinhdao mylinhdao changed the title Update special-handling queries when the grammar changes Update special-handling queries for import-grammars Apr 30, 2024
@ChristianHuehn
Copy link
Collaborator

Is there anyway we could auto detect changes to it? And for example update them automatically or at least get a notification?

@ChristianHuehn ChristianHuehn added tech question Further information is requested labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested tech
Projects
None yet
Development

No branches or pull requests

2 participants