| 1 | [ |
| 2 | "syntax" |
| 3 | "edition" |
| 4 | "package" |
| 5 | "option" |
| 6 | "import" |
| 7 | "service" |
| 8 | "rpc" |
| 9 | "returns" |
| 10 | "message" |
| 11 | "map" |
| 12 | "enum" |
| 13 | "oneof" |
| 14 | "repeated" |
| 15 | "optional" |
| 16 | "required" |
| 17 | "reserved" |
| 18 | "to" |
| 19 | "stream" |
| 20 | "extend" |
| 21 | ] @keyword |
| 22 | |
| 23 | [ |
| 24 | (key_type) |
| 25 | (type) |
| 26 | (message_or_enum_type) |
| 27 | ] @type.builtin |
| 28 | |
| 29 | [ |
| 30 | (enum_name) |
| 31 | (message_name) |
| 32 | (service_name) |
| 33 | (rpc_name) |
| 34 | ] @type |
| 35 | |
| 36 | [ |
| 37 | (field_name) |
| 38 | (option_name) |
| 39 | ] @variable.other.member |
| 40 | (enum_variant_name) @type.enum.variant |
| 41 | |
| 42 | (full_ident) @namespace |
| 43 | |
| 44 | (int_lit) @constant.numeric.integer |
| 45 | (float_lit) @constant.numeric.float |
| 46 | (bool) @constant.builtin.boolean |
| 47 | (string) @string |
| 48 | |
| 49 | (block_lit) @constant |
| 50 | |
| 51 | (comment) @comment |
| 52 | |
| 53 | [ |
| 54 | "(" |
| 55 | ")" |
| 56 | "[" |
| 57 | "]" |
| 58 | "{" |
| 59 | "}" |
| 60 | ] @punctuation.bracket |
| 61 | |
| 62 | "=" @operator |
| 63 | |
| 64 | ";" @punctuation.delimiter |