()
| 1285 | } |
| 1286 | |
| 1287 | #[test] |
| 1288 | fn init_modifier_backtrack() { |
| 1289 | // `static x = {` must match with type token `static` (the JS engine |
| 1290 | // backtracks the modifier loop) — harmless downstream, but collected. |
| 1291 | let f = facts("; static x = {1};\n; static struct cmd t[] = { {0} };"); |
| 1292 | assert!(f.init_tokens.contains(&"static".to_string())); |
| 1293 | assert!(f.init_tokens.contains(&"cmd".to_string())); |
| 1294 | } |
| 1295 | |
| 1296 | #[test] |