mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-14 13:29:37 +03:00
syntax: nanorc: colorize literal control codes, to make them stand out
This makes it easier to read string binds that contain control codes.
This commit is contained in:
parent
51adf02d34
commit
7993fc8b12
@ -20,6 +20,9 @@ color green "^[[:blank:]]*((un)?(bind|set)|include|syntax|header|magic|comment|f
|
||||
# Strings
|
||||
color brightmagenta "([[:blank:]]|(start|end)=)".+"([[:blank:]]|$)"
|
||||
|
||||
# Control codes
|
||||
color bold,pink "[[:cntrl:]]"
|
||||
|
||||
# Colors
|
||||
color yellow "^[[:blank:]]*i?color[[:blank:]]*(bold,)?(italic,)?(bright|light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte)?(,(light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte))?\>"
|
||||
color magenta "^[[:blank:]]*i?color\>" "\<(start|end)="
|
||||
|
Loading…
Reference in New Issue
Block a user