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>
17 lines
308 B
Text
17 lines
308 B
Text
## 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:]]+$"
|
|
|