| 1 |
|
| 2 |
|
| 3 |
((identifier) @variable) |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
[ |
| 8 |
"include" |
| 9 |
"cpp_include" |
| 10 |
] @keyword |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
(function_definition |
| 15 |
(identifier) @function) |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
(field (identifier) @variable.other.member) |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
(function_definition |
| 24 |
(parameters |
| 25 |
(parameter (identifier) @variable.parameter))) |
| 26 |
|
| 27 |
(throws |
| 28 |
(parameters |
| 29 |
(parameter (identifier) @keyword.control.exception))) |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
(typedef_identifier) @type |
| 34 |
(struct_definition |
| 35 |
"struct" (identifier) @type) |
| 36 |
|
| 37 |
(union_definition |
| 38 |
"union" (identifier) @type) |
| 39 |
|
| 40 |
(exception_definition |
| 41 |
"exception" (identifier) @type) |
| 42 |
|
| 43 |
(service_definition |
| 44 |
"service" (identifier) @type) |
| 45 |
|
| 46 |
(interaction_definition |
| 47 |
"interaction" (identifier) @type) |
| 48 |
|
| 49 |
(type |
| 50 |
type: (identifier) @type) |
| 51 |
|
| 52 |
(definition_type |
| 53 |
type: (identifier) @type) |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
(const_definition (identifier) @constant) |
| 58 |
|
| 59 |
(enum_definition "enum" |
| 60 |
. (identifier) @type |
| 61 |
"{" (identifier) @constant "}") |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
(primitive) @type.builtin |
| 66 |
|
| 67 |
[ |
| 68 |
"list" |
| 69 |
"map" |
| 70 |
"set" |
| 71 |
"sink" |
| 72 |
"stream" |
| 73 |
"void" |
| 74 |
] @type.builtin |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
(namespace_declaration |
| 79 |
(namespace_scope) @tag |
| 80 |
[(namespace) @namespace (_ (identifier) @namespace)]) |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
(annotation_definition |
| 85 |
(annotation_identifier (identifier) @attribute)) |
| 86 |
(fb_annotation_definition |
| 87 |
"@" @attribute (annotation_identifier (identifier) @attribute) |
| 88 |
(identifier)? @attribute) |
| 89 |
(namespace_uri (string) @attribute) |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
[ |
| 94 |
"=" |
| 95 |
"&" |
| 96 |
] @operator |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
[ |
| 101 |
"throws" |
| 102 |
] @keyword.control.exception |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
[ |
| 107 |
"enum" |
| 108 |
"exception" |
| 109 |
"extends" |
| 110 |
"interaction" |
| 111 |
"namespace" |
| 112 |
"senum" |
| 113 |
"service" |
| 114 |
"struct" |
| 115 |
"typedef" |
| 116 |
"union" |
| 117 |
"uri" |
| 118 |
] @keyword |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
[ |
| 123 |
"cocoa_prefix" |
| 124 |
"cpp_namespace" |
| 125 |
"csharp_namespace" |
| 126 |
"delphi_namespace" |
| 127 |
"java_package" |
| 128 |
"perl_package" |
| 129 |
"php_namespace" |
| 130 |
"py_module" |
| 131 |
"ruby_namespace" |
| 132 |
"smalltalk_category" |
| 133 |
"smalltalk_prefix" |
| 134 |
"xsd_all" |
| 135 |
"xsd_attrs" |
| 136 |
"xsd_namespace" |
| 137 |
"xsd_nillable" |
| 138 |
"xsd_optional" |
| 139 |
] @keyword |
| 140 |
|
| 141 |
|
| 142 |
[ |
| 143 |
"package" |
| 144 |
"performs" |
| 145 |
] @keyword |
| 146 |
|
| 147 |
[ |
| 148 |
"async" |
| 149 |
"oneway" |
| 150 |
] @keyword |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
[ |
| 155 |
"client" |
| 156 |
"const" |
| 157 |
"idempotent" |
| 158 |
"optional" |
| 159 |
"permanent" |
| 160 |
"readonly" |
| 161 |
"required" |
| 162 |
"safe" |
| 163 |
"server" |
| 164 |
"stateful" |
| 165 |
"transient" |
| 166 |
] @type.directive |
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
(string) @string |
| 171 |
|
| 172 |
(escape_sequence) @constant.character.escape |
| 173 |
|
| 174 |
(namespace_uri |
| 175 |
(string) @string.special) |
| 176 |
|
| 177 |
(number) @constant.numeric.integer |
| 178 |
|
| 179 |
(double) @constant.numeric.float |
| 180 |
|
| 181 |
(boolean) @constant.builtin.boolean |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
(typedef_identifier) @type.definition |
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
[ |
| 190 |
"*" |
| 191 |
] @punctuation.special |
| 192 |
|
| 193 |
["{" "}"] @punctuation.bracket |
| 194 |
|
| 195 |
["(" ")"] @punctuation.bracket |
| 196 |
|
| 197 |
["[" "]"] @punctuation.bracket |
| 198 |
|
| 199 |
["<" ">"] @punctuation.bracket |
| 200 |
|
| 201 |
[ |
| 202 |
"." |
| 203 |
"," |
| 204 |
";" |
| 205 |
":" |
| 206 |
] @punctuation.delimiter |
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
(comment) @comment |
| 211 |
|