Laurence Tratt

Results 142 comments of Laurence Tratt

Yes, this isn't currently supported. Given that we currently use the Rust regex crate, if we wanted to do something like this, we'd have some interesting fun and games getting...

It would be nice if it supported `&mut` but as @ratmice said, I'm not sure how practical that is. One of the challenges of very-clever type systems is that it...

To some extent, the current design reflects the fact that I always write parsers that bubble state up rather than mutate state: honestly, it didn't really occur to me to...

Agreed, it would be good if lrlex supported comments, and I'd happily take a PR to that effect! If flex supports them, I might also be inclined to support `//`...

The other alternative might be to resize up to the cursor, if there's only whitespace between the "initially reinserted" box and the cursor?

I think my suggestion is a hack that means we don't need to remember the previous box: we would just say "if my current change inserts a box, and there's...

Maybe when you move the cursor out of a box, we `trim` the box (in the sense that we move trailing whitespace out of the box) automatically?

Agreed. We should use Yacc's comment syntax (`/* ... */`) I guess? Even though it's ugly, it's portable... [Though, personally, I wouldn't object to adding `//` as a secondary comment...