Add diagnostic tool for determining syntax group