Instead of testing for the presence of `@type`, test for the presence of both `@start` and `@end` with matching `@n` values
Instead of testing for the presence of
@type, test for the presence of both@startand@endwith matching@nvalues