snippet parser are now setting doc instead of passing a string as doc