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

Suffix reserved names with underscore. #3

Merged
merged 1 commit into from
May 17, 2014

Conversation

paurkedal
Copy link
Contributor

I was running piqi-ocaml on a bunch of external proto files and found it was a bit of a hazzle to deal with reserved names, most notoriously "type". Can you accept this patch which adds an understore to all the standard keywords? It also adds an option --reserved-name to add additional keywords, e.g. when using a syntax extension.

alavrik added a commit that referenced this pull request May 17, 2014
Suffix reserved names with underscore.
@alavrik alavrik merged commit 8dead94 into alavrik:master May 17, 2014
@alavrik
Copy link
Owner

alavrik commented May 17, 2014

Absolutely. I think this is a well-balanced solution to a rather common problem. Thank you!

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