From b9483e03c7cfa854c250ad6415b4d9e6f7a9709e Mon Sep 17 00:00:00 2001 From: Hong Shin Date: Thu, 22 Feb 2024 08:50:13 -0800 Subject: [PATCH] Add syntax, oneof, and stream to protobuf-mode.el PiperOrigin-RevId: 609387708 --- editors/protobuf-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editors/protobuf-mode.el b/editors/protobuf-mode.el index 7d14e1d54d..0f22bda7e0 100644 --- a/editors/protobuf-mode.el +++ b/editors/protobuf-mode.el @@ -87,7 +87,7 @@ "string" "bytes" "group")) (c-lang-defconst c-modifier-kwds - protobuf '("required" "optional" "repeated")) + protobuf '("required" "optional" "repeated" "oneof")) (c-lang-defconst c-class-decl-kwds protobuf '("message" "enum" "service")) @@ -96,7 +96,7 @@ protobuf '("true" "false")) (c-lang-defconst c-other-decl-kwds - protobuf '("package" "import")) + protobuf '("package" "import" "syntax")) (c-lang-defconst c-other-kwds protobuf '("default" "max")) @@ -112,7 +112,7 @@ protobuf '("extensions" "to" "reserved")) (c-lang-defconst c-typeless-decl-kwds - protobuf '("extend" "rpc" "option" "returns")) + protobuf '("extend" "rpc" "stream" "option" "returns")) ;; Here we remove default syntax for loops, if-statements and other C