Only check literal edit anchors.

Close #2778