54b97a6f03
Since ^@ is rebindable too and also a synonym of ^Space, it makes more sense to allow the user to specify ^` instead, as it is an unshifted keystroke on US keyboards. Also, color ^` as valid in a nanorc file, and color ^` and ^@ in the help viewer.
12 строки
405 B
Plaintext
12 строки
405 B
Plaintext
## This is meant for highlighting key combos in a nano help text.
|
|
|
|
# It should not apply to any normal file, so no fileregex.
|
|
syntax nanohelp
|
|
|
|
# Key combos:
|
|
color cyan "\^[]/4-8@A-Z\^_`◀▶▲▼]" "[◀▶▲▼]" "\<M-." "\<F([1-9]|1[0-9]|2[0-4])"
|
|
color cyan "\<((Sh-)?Tab|Enter|Ins|(Sh-\^?)?Del|Space|Bsp|Up|Down|Left|Right|Home|End|PgUp|PgDn)\>"
|
|
|
|
# Quoted indicators:
|
|
color brightred "'(\^|M-)'"
|