ksprojects / protobuf-jetbrains-plugin

Protobuf Support for JetBrains IDEs
https://plugins.jetbrains.com/plugin/8277
Apache License 2.0
259 stars 45 forks source link

Syntax error detected for a valid semicolon terminating a top level option #119

Closed neowulf closed 6 years ago

neowulf commented 6 years ago

Describe the bug The plugin detects the last semicolon as a syntax error. Looking at the proto spec, the provided code is a valid proto file.

To Reproduce Steps to reproduce the behavior:

syntax = "proto3";

import "protoc-gen-swagger/options/annotations.proto";

option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
    info: {
        title: "Service"
        version: "1.0";
    };
};

The last semicolon is detected as a syntax error.

Expected behavior The plugin should not emit a syntax error.

Screenshots

screen shot 2018-10-15 at 11 08 29 am

Plugin (please complete the following information):

Additional context Add any other context about the problem here.

kshchepanovskyi commented 6 years ago

Similar to https://github.com/protostuff/protobuf-jetbrains-plugin/issues/110 It will be fixed in one of next releases.

kshchepanovskyi commented 6 years ago

P.S. Thanks for reporting this!

neowulf commented 6 years ago

Thank you @kshchepanovskyi !