thrift top-level property

Mode thrift
final

Implementation

final thrift = Mode(refs: {}, keywords: {
  "keyword":
      "namespace const typedef struct enum service exception void oneway set list map required optional",
  "built_in": "bool byte i16 i32 i64 double string binary",
  "literal": "true false"
}, contains: [
  QUOTE_STRING_MODE,
  NUMBER_MODE,
  C_LINE_COMMENT_MODE,
  C_BLOCK_COMMENT_MODE,
  Mode(
      className: "class",
      beginKeywords: "struct enum service exception",
      end: "\\{",
      illegal: "\\n",
      contains: [
        Mode(
            className: "title",
            begin: "[a-zA-Z]\\w*",
            relevance: 0,
            starts: Mode(endsWithParent: true, excludeEnd: true))
      ]),
  Mode(
      begin: "\\b(set|list|map)\\s*<",
      end: ">",
      keywords: "bool byte i16 i32 i64 double string binary",
      contains: [Mode(self: true)])
]);