Ignore comments when calculating shifts