Function to check syn group under cursor