protobuf top-level property

Mode protobuf
final

Implementation

final protobuf = Mode(refs: {}, keywords: {
  "keyword": "package import option optional required repeated group oneof",
  "built_in":
      "double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",
  "literal": "true false"
}, contains: [
  QUOTE_STRING_MODE,
  NUMBER_MODE,
  C_LINE_COMMENT_MODE,
  Mode(
      className: "class",
      beginKeywords: "message enum service",
      end: "\\{",
      illegal: "\\n",
      contains: [
        Mode(
            className: "title",
            begin: "[a-zA-Z]\\w*",
            relevance: 0,
            starts: Mode(endsWithParent: true, excludeEnd: true))
      ]),
  Mode(
      className: "function",
      beginKeywords: "rpc",
      end: ";",
      excludeEnd: true,
      keywords: "rpc returns"),
  Mode(begin: "^\\s*[A-Z_]+", end: "\\s*=", excludeEnd: true)
]);