The files have a relatively uncomplicated syntax. Plain statements ending with a semicolon, and blocks delimited by curly braces (see for example https://github.com/jtkristoff/junos/blob/master/firewall.conf).

I tried the junos-mode but it behaved rather weirdly.

Is there a programming language mode that will be suitable for this format?

If not, is there a mode which can do the following, or something close to these?

  • Backspace at whitespace indents properly with previous block
  • Ability to collapse and expand blocks depending on indent level or matching brace
  • spell check using words already used in the buffer

Will appreciate your help!