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

Fully-qualified type names are not recognized #167

Open
roge opened this issue Nov 21, 2023 · 0 comments
Open

Fully-qualified type names are not recognized #167

roge opened this issue Nov 21, 2023 · 0 comments

Comments

@roge
Copy link

roge commented Nov 21, 2023

Fully-qualified type names are not handled correctly for syntax highlighting.

In this example, the leading dot (.) in a fully-qualified type name is preventing the type name and field labels from being highlighted correctly:

vscode-proto3 not highlighting valid proto3 code with fully-qualified type names

protoc accepts these type references without issue and they are valid per the language specification:

Type References

Various elements in the source file allow for referencing another element, either defined in the same source file or defined in one of the source file's imports.

TypeName = [ dot ] QualifiedIdentifier .
QualifiedIdentifier = identifier { dot identifier } .

Examples

string
int32
UserResponse
other.Message
.foo.bar.Message
foo.bar.baz.Service.Request
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

No branches or pull requests

1 participant