GNU bug report logs -
#36759
26.1; nftables major mode
Previous Next
Reported by: trentbuck <at> gmail.com (Trent W. Buck)
Date: Mon, 22 Jul 2019 07:46:02 UTC
Severity: wishlist
Found in version 26.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 36759 <at> debbugs.gnu.org (full text, mbox):
> From: trentbuck <at> gmail.com (Trent W. Buck)
> Date: Mon, 22 Jul 2019 17:45:33 +1000
>
> nftables is a Linux kernel firewall.
>
> Its configuration uses a complex BNF where many keywords are repeated;
> they mean different things in different places.
>
> I want syntax highlighting and smart indentation for such files,
> because they're very hard to read in just conf-mode,
> even with some conf-space-keywords.
>
> I couldn't find a major mode for this, so I wrote a basic one.
> This is working well enough for today, but I don't have the time or
> interest to maintain it properly.
>
> If someone else is prepared to adopt it and get it into mainline Emacs,
> that would be FANTASTIC.
Sorry for the delay in responding.
Would it be possible to rewrite this mode using define-generic-mode?
See generic-x.el for some example of using that macro.
If using generic.el is somehow impossible or impractical, then could
you please format your code as a separate Lisp file according to our
conventions (see any of the *.el files in the Emacs tree for an
example), add a NEWS entry, and submit that in the "git format-patch"
form? Bonus points for adding tests based on your example file.
Thanks.
This bug report was last modified 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.