2017-04-25 14:41:35 +03:00
|
|
|
## This is meant for highlighting key combos in a nano help text.
|
|
|
|
|
|
|
|
# It should not apply to any normal file, so no fileregex.
|
2018-02-07 13:25:46 +03:00
|
|
|
syntax nanohelp
|
2017-04-25 14:41:35 +03:00
|
|
|
|
|
|
|
# Key combos:
|
2021-06-14 10:10:08 +03:00
|
|
|
color cyan "\^[]/4-8@A-Z\^_`◂▸▴▾-]" "[◂▸▴▾]" "\<(M|S[Hh]-[Mm])-[^")”»“」]" "\<F([1-9]|1[0-9]|2[0-4])"
|
2018-11-07 21:30:04 +03:00
|
|
|
color cyan "\<((Sh-)?Tab|Enter|Ins|(Sh-\^?)?Del|Space|Bsp|Up|Down|Left|Right|Home|End|PgUp|PgDn)\>"
|
2017-04-25 14:41:35 +03:00
|
|
|
|
2021-05-30 11:28:42 +03:00
|
|
|
# Colorize M-) and M-" only when between parentheses...
|
|
|
|
color cyan "\(M-(\)|")\)"
|
|
|
|
color normal " \(|\) "
|
|
|
|
# ...or when at start of line.
|
|
|
|
color cyan "^M-(\)|")"
|
|
|
|
|
2017-04-25 14:41:35 +03:00
|
|
|
# Quoted indicators:
|
|
|
|
color brightred "'(\^|M-)'"
|