Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Highlighting the nftables rules. For Vim/NeoVim editor, using your own color scheme and background.

Like grouping statements together within a rule with heavier emphasis on keywords that starts each of its statement.

Even has the easiest Vim installer, `make install`/`make uninstall`; none of that funky Vundle, or other relatively unknown Vim packagers.

Has over 2,500 semantic nodes, 15,000 syntax match statements, and under 5ms rendering.

This is a purely deterministic LL(1) full semantic parser.

https://github.com/egberts/vim-syntax-nftables

Skip the release (I cannot delete it), go full repo clone.

Is it ready? Yes, almost entirely, unless you are a firewall expert using few remaining nftables-supporting but esoteric features like ‘synproxy’. Gotta master that first before I can highlight it properly.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: