Branch
Hash :
87e5a376
Author :
Date :
2021-09-06T20:16:52
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
protocol MyProto {
@namespace("org.apache.avro.someOtherNamespace")
record Foo {}
record Bar {}
enum Kind {
FOO,
BAR, // the bar enum value
BAZ
}
error TestError {
string message;
}
}
----------------------------------------------------
[
["keyword", "protocol"],
["class-name", "MyProto"],
["punctuation", "{"],
["annotation", "@namespace"],
["punctuation", "("],
["string", "\"org.apache.avro.someOtherNamespace\""],
["punctuation", ")"],
["keyword", "record"],
["class-name", "Foo"],
["punctuation", "{"],
["punctuation", "}"],
["keyword", "record"],
["class-name", "Bar"],
["punctuation", "{"],
["punctuation", "}"],
["keyword", "enum"], ["class-name", "Kind"], ["punctuation", "{"],
"\r\n FOO", ["punctuation", ","],
"\r\n BAR", ["punctuation", ","], ["comment", "// the bar enum value"],
"\r\n BAZ\r\n ",
["punctuation", "}"],
["keyword", "error"], ["class-name", "TestError"], ["punctuation", "{"],
["keyword", "string"], " message", ["punctuation", ";"],
["punctuation", "}"],
["punctuation", "}"]
]