---[[
--- The presence of this function prevents serialization by Pluto,
--- I can't figure out why :(
-function lexer.lineinfo_metatable:__tostring()
- local txt = string.format("%s:%i(%i,%i)", self[4], self[3], self[1], self[2])
- if self.comments then
- acc = { }
- for comment in ivalues(self.comments) do
- local content, loc1, loc2, kind = unpack(comment)
- table.insert (acc, string.format ("%s@%i..%i:%q", kind, loc1, loc2, content))
- end
- txt = txt.."["..table.concat(acc,"; ").."]"
- end
- return txt
-end
---]]