var TOKEN_NAMES = {
  "+": "inserted",
  "-": "deleted",
  "@": "meta"
};
const diff = {
  name: "diff",
  token: function(t) {
    var n = t.string.search(/[\t ]+?$/);
    if (!t.sol() || n === 0) return t.skipToEnd(), ("error " + (TOKEN_NAMES[t.string.charAt(0)] || "")).replace(/ $/, "");
    var r = TOKEN_NAMES[t.peek()] || t.skipToEnd();
    return n === -1 ? t.skipToEnd() : t.pos = n, r;
  }
};
export {
  diff as t
};
