Re: [Nix-dev] [Ann] Sublime Text/TextMate/Atom syntax highlighter

2014-12-06 Thread Colin Putney
On Sun, Nov 30, 2014 at 5:01 PM, Wout Mertens 
wrote:

> Hey all,
>
> I made a highlighter for Sublime Text, which uses the TextMate format.
> Atom also seems to use it, as does github.
>

This works nicely. Thanks!
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] [Ann] Sublime Text/TextMate/Atom syntax highlighter

2014-11-30 Thread Wout Mertens
Hey all,

I made a highlighter for Sublime Text, which uses the TextMate format. Atom
also seems to use it, as does github.

Trying to get it in github via
https://github.com/NixOS/nixpkgs/issues/5109 and as a Sublime Text package
named Nix .

The highlighter is pedantic; if something doesn't match Nix grammar it will
mark it illegal.

Unfortunately it cannot implement the real Nix language because the
regex-based highlighter is not a real parser with proper states.
It seems to render nixpkgs ok though as well as the tests directory in the
Nix source.

Please try it out and let me know if something doesn't render right for
you, or if things should be marked differently.

Source at https://github.com/wmertens/sublime-nix. Comments and ways to
incorporate in other editors welcome.

Cheers,

Wout.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev