Skip to content

Delphi reserved words in .proto file #1

@modersohn

Description

@modersohn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgeneratorissues applying to the code generator

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions