From 1237bc8b31366c10290050562654bb37db4889ef Mon Sep 17 00:00:00 2001 From: Scott Addie <10702007+scottaddie@users.noreply.github.com> Date: Mon, 15 Jul 2019 16:28:51 -0500 Subject: [PATCH] Add syntax highlighting for protobuf snippet (#13305) * Add syntax highlighting for protobuf snippet * Add semi-colon to fix colorization --- aspnetcore/grpc/basics.md | 2 +- .../grpc/grpc-start/sample/GrpcGreeter/Protos/greet.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/grpc/basics.md b/aspnetcore/grpc/basics.md index 7fd6ce1788..fd75a7102d 100644 --- a/aspnetcore/grpc/basics.md +++ b/aspnetcore/grpc/basics.md @@ -26,7 +26,7 @@ For example, consider the *greet.proto* file used in [Get started with gRPC serv * The `Greeter` service defines a `SayHello` call. * `SayHello` sends a `HelloRequest` message and receives a `HelloResponse` message: -[!code-proto[](~/tutorials//grpc/grpc-start/sample/GrpcGreeter/Protos/greet.proto)] +[!code-protobuf[](~/tutorials//grpc/grpc-start/sample/GrpcGreeter/Protos/greet.proto)] ## Add a .proto file to a C\# app diff --git a/aspnetcore/tutorials/grpc/grpc-start/sample/GrpcGreeter/Protos/greet.proto b/aspnetcore/tutorials/grpc/grpc-start/sample/GrpcGreeter/Protos/greet.proto index 75721ab7d1..10b4ca3ced 100644 --- a/aspnetcore/tutorials/grpc/grpc-start/sample/GrpcGreeter/Protos/greet.proto +++ b/aspnetcore/tutorials/grpc/grpc-start/sample/GrpcGreeter/Protos/greet.proto @@ -5,7 +5,7 @@ package Greet; // The greeting service definition. service Greeter { // Sends a greeting - rpc SayHello (HelloRequest) returns (HelloReply) {} + rpc SayHello (HelloRequest) returns (HelloReply) {}; } // The request message containing the user's name.