I'd say it's very likely that you are actually not using the mode
"myModeGen" but something else.

Certainly the code that you show cannot explain the error you describe.
It's puzzling that you have an unused argument in myModeGen, making me
guess you have other versions of this code lying around.

Cheers,
JP.

On Wed, Mar 7, 2012 at 3:33 PM, Paul van der Walt <paul...@gmail.com> wrote:
> Dear all,
>
> For a few hours now, I've been playing around trying to make a new
> mode for Yi. The problem is, it breaks when I try to load a Unicode
> file with certain characters. For example, I've made a mode which
> basically only consists of the following:
>
> myModeGen _myBinding =
>  fundamentalMode {
>  , modeApplies = anyExtension ["ext1"]
>  }
>
> myModeVim :: Mode ()
> myModeVim = myModeGen (\ch -> [char '\\', char ch])
>
> When loading the file into fundamental mode, all's well (by changing
> the extention ≠ ext1), but when loading a file containing the
> following, it breaks with the error shown below.
>
> The file:
>
> ∷
>
> (that's right, a single unicode character and a newline)
>
> The error:
>
> yi-linux-x86_64: lexical error around 7_; [])
> op
> yi-linux-x86_64: thread blocked indefinitely in an MVar operation
>
> Now what I don't understand is, I'm not even trying to lex, since I
> don't necessarily want to do syntax highlighting yet!
>
> Any pointers would be welcome.
>
> Paul
>
> --
> Yi development mailing list
> yi-devel@googlegroups.com
> http://groups.google.com/group/yi-devel

-- 
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel

Reply via email to