use precise getTokenAt

This commit is contained in:
tophf 2019-09-24 13:43:05 +03:00
parent 34922a0d03
commit c94d9dca94

View File

@ -494,7 +494,7 @@ function createAppliesToLineWidget(cm) {
const eatToken = sticky => {
if (!sticky) skipSpace(pos, posEnd);
pos.ch++;
const token = cm.getTokenAt(pos);
const token = cm.getTokenAt(pos, true);
pos.ch = token.end;
return CodeMirror.cmpPos(pos, posEnd) <= 0 ? token : {};
};