packages/utils/nano/files/uci.nanorc
Hannu Nyman 0ef948fd0e nano: provide nano-full with most features enabled
Provide a new variant, nano-full, that enables almost
all functionality of nano. Only libmagic file type detection
has been left out.

Ship with a minimal /etc/nanorc that the user can modify.
nanorc documentation at
https://www.nano-editor.org/dist/latest/nanorc.5.html

Provide color highlighting for the uci config files.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-03-23 10:49:54 +00:00

18 lines
308 B
Plaintext

## Syntax highlighting for OpenWrt uci config files.
syntax uci "/etc/config/*"
comment "#"
# Keywords
color green "\<(package|config|option|list)\>"
# Comments.
color cyan "(^|[[:blank:]])#.*"
# Strings.
color yellow ""([^"\]|\\.)*"|'([^'\]|\\.)*'"
# Trailing whitespace.
color ,green "[[:space:]]+$"