help-zile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-zile] [ANN] Zile Syntax Highlighter


From: Gary V. Vaughan
Subject: Re: [Help-zile] [ANN] Zile Syntax Highlighter
Date: Mon, 12 May 2014 11:34:10 +0700

On May 9, 2014, at 9:18 PM, Gary V. Vaughan <address@hidden> wrote:
> Two major issues remain:
> 
>  1. The current highlighter is a proof-of-concept, and consequently very
>     slow (especially on files with more than 200 lines or so).  The algorithms
>     are fully featured and correct though, just the implementation needs to
>     be optimized *a lot*.  I think some of the slowness can also be attributed
>     to Zile's curses redrawing being suboptimal, but 90% of it is definitely
>     in the new highlighting code.
> 
>  2. Highlighting for more kinds of files.  The use of oniguruma is to
>     leverage the hundreds of TextMate language bundles that are now freely
>     available.  I didn't reimplement an Apple Property List parser, so the
>     tmLang files need mechanically translating to Lua read syntax and adding
>     to the Zile source repository.
> 
> I'll be tackling (1) slowly over the coming months, and will probably convert
> a handful of tmLang files for languages I use regularly in due course.

True!

>  2.5. In addition to leveraging the vast library of existing tmLang files,
>       basing the Zz syntax highlighter on TextMate also enables nested
>       syntaxes (not yet implemented!).  That is, the format supports proper
>       highlighting and editing of an HTML file with embedded CSS, JS and
>       PHP for example!  Or more important to me, shell syntax in Make files;
>       m4 and shell syntax in configure.ac files...
> 
> It will likely be quite some time before I get to (2.5).

False!

I just committed a YAML grammar that embeds the Lua grammar, which highlights
Specl files rather well.

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]