On Sun, Jun 26, 2011 at 4:18 PM, Reiner Pope <reiner.p...@gmail.com> wrote: > Hi, > > I was looking at the Highlighter data type in Yi.Syntax, and I'm wondering > about this: > > data Highlighter cache syntax = SynHL { > ... > hlRun :: Scanner Point Char -> Point -> cache -> cache, > ... > } > > What does this achieve over the following? > > ... > hlRun :: Rope -> Point -> cache -> cache > ...
There is a "stack" of scanners that build up more complex tokens. If you were to remove Scanners, most of the functionality would have to be collapsed and modularity would suffer. In my experience the conversion to Chars only causes a minor performance hit. Cheers, JP. -- Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel