Skip to content

Match JavaScript functions using dedicated regions #111

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

Merged
merged 1 commit into from
Apr 27, 2025
Merged

Conversation

jparise
Copy link
Owner

@jparise jparise commented Apr 27, 2025

Our previous function-matching approach (#109) was implemented on top of
the existing tag-matching patterns. This had the downside of including
the function name and initial parenthesis in the region match.

Instead, use dedicated syntax regions to specifically match the string
template argument passed to our named GraphQL-aware functions for both
JavaScript and TypeScript.

Our previous function-matching approach (#109) was implemented on top of
the existing tag-matching patterns. This had the downside of including
the function name and initial parenthesis in the region match.

Instead, use dedicated syntax regions to specifically match the string
template argument passed to our named GraphQL-aware functions for both
JavaScript and TypeScript.
@jparise jparise merged commit 904e3e8 into master Apr 27, 2025
1 check passed
@jparise jparise deleted the function-regions branch April 27, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant