Re: syncolor.e + tokenize.e = an absolute disaster
- Posted by mattlewis (admin) Nov 20, 2012
- 1805 views
Like Jim, I'm not sure what +200K refers to. The combination of tokenize.e and syncolor.e are about 1400 lines (including white space and comments) for a total of about 31K.
It's been a while, but IIRC (and I wasn't directly involved), the goal was to move some more old C code into easier to maintain euphoria code. Obviously, the transition has introduced some regressions.
Matt
I stand corrected - 31k, then... syncolor.e sans tokenize.e = 8.3k: 31k/8.3k = 3.74, nearly %375 of the original code size.
Here are some ed.ex routines to deal with syncolor.e's current problems:
I've been taking a look at syncolor/tokenize. I think that tokenize was written with the idea that it would be working with correct euphoria code, which is obviously inappropriate for a text editor. I've got some updates that I think fix the issues with quotes and shebangs. They just need some more testing to make sure I didn't break something else.
Matt