Detects cannot end with semicolon, my mistake in f4b2ec17526db8327841f413cc77ebf7593ed28b