Closed jgm closed 1 year ago
This would be more useful for many purposes. We just need to construct a table that maps byte offsets to line, column pairs. We can do that by iterating over the characters using the lua utf8 functions.
This would be more useful for many purposes. We just need to construct a table that maps byte offsets to line, column pairs. We can do that by iterating over the characters using the lua utf8 functions.