[Nix-dev] [Ann] Sublime Text/TextMate/Atom syntax highlighter
    Wout Mertens 
    wout.mertens at gmail.com
       
    Mon Dec  1 02:01:19 CET 2014
    
    
  
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 <https://github.com/wbond/package_control_channel/pull/3866>.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141201/7dbcd4df/attachment.html 
    
    
More information about the nix-dev
mailing list