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

rename grammarSource->source #104

Merged
merged 1 commit into from
Apr 15, 2023
Merged

rename grammarSource->source #104

merged 1 commit into from
Apr 15, 2023

Conversation

pjmolina
Copy link
Contributor

Rename grammarSource-> source to be compliant with peggy.
fix #101

@@ -53,7 +53,7 @@ declare class _PeggySyntaxError extends Error {
public name: string;
constructor(message: string, expected: Expectation[], found: string | null, location: FileRange);
format(sources: {
grammarSource?: string;
source?: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this looks right. It has to be any because you can pass a complicated object in there that knows about start offsets, etc.

@pjmolina pjmolina merged commit 9e9007c into master Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generated type for PeggySyntaxError.format doesn't match
2 participants