On Tue, Jul 23, 2024 at 12:22 PM <[email protected]> wrote:
>
> On Tue, Jul 23, 2024 at 03:46:56PM +0100, Tom Smyth wrote:
> >Folks,
> >I wondering had anyone tried to make a syntax highlighting for  pf.conf 
> >syntax,
> >
> >to help folks new to the pf.conf syntax in the editor of their choice...
> >
> >I was thinking that this approach might be lower hanging fruit rather
> >than trying to write a rule editor in nsh (for now at least), and it
> >might be more generally useful for for the community or those in the
> >community who like syntax highlighting
> >
>
> This already exists in the vim port.
>


/usr/local/share/vim/vim82/syntax/ipfilter.vim
/usr/local/share/vim/vim82/syntax/pf.vim
/usr/local/share/vim/vim82/syntax/pfmain.vim

" pf syntax file
" Language:        OpenBSD packet filter configuration (pf.conf)
" Original Author: Camiel Dobbelaar <[email protected]>
" Maintainer:      Lauri Tirkkonen <[email protected]>
" Last Change:     2018 Jul 16

Interesting.

Reply via email to