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

Delphi reserved words in .proto file #1

Open
modersohn opened this issue Nov 8, 2018 · 0 comments
Open

Delphi reserved words in .proto file #1

modersohn opened this issue Nov 8, 2018 · 0 comments
Labels
enhancement New feature or request generator issues applying to the code generator

Comments

@modersohn
Copy link
Owner

modersohn commented Nov 8, 2018

This might actually result in generated code that does not compile.

Examples:

enum dummy
{
	mode = 0;
	type = 1;
	class = 2;      
        end = 3;
}

Not all reserved words cause an error, e.g. external is a reserved word, but netherthelessa accepted. Private, Public etc. are allowed too.

The proposed solution would be to add an underscore at the end of the name - similar to what the Delphi TypeLibrary importer does.

@modersohn modersohn added enhancement New feature or request generator issues applying to the code generator labels Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request generator issues applying to the code generator
Projects
None yet
Development

No branches or pull requests

1 participant