* Parse declarations.
()
| 242 | */ |
| 243 | |
| 244 | function declarations() { |
| 245 | var decls = []; |
| 246 | |
| 247 | if (!open()) return error("missing '{'"); |
| 248 | comments(decls); |
| 249 | |
| 250 | // declarations |
| 251 | var decl; |
| 252 | while ((decl = declaration())) { |
| 253 | if (decl !== false) { |
| 254 | decls.push(decl); |
| 255 | comments(decls); |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | if (!close()) return error("missing '}'"); |
| 260 | return decls; |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * Parse keyframe. |