2017-04-25 13:41:35 +02: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 11:25:46 +01:00
|
|
|
syntax nanohelp
|
2017-04-25 13:41:35 +02:00
|
|
|
|
|
|
|
# Key combos:
|
2020-01-20 17:13:11 +01:00
|
|
|
color cyan "\^[]/4-8@A-Z\^_`◀▶▲▼]" "[◀▶▲▼]" "\<M-." "\<F([1-9]|1[0-9]|2[0-4])"
|
2018-11-07 19:30:04 +01:00
|
|
|
color cyan "\<((Sh-)?Tab|Enter|Ins|(Sh-\^?)?Del|Space|Bsp|Up|Down|Left|Right|Home|End|PgUp|PgDn)\>"
|
2017-04-25 13:41:35 +02:00
|
|
|
|
|
|
|
# Quoted indicators:
|
|
|
|
color brightred "'(\^|M-)'"
|