2014-05-28 Chris Allegretta <chrisa@asty.org>
* doc/syntax/mutt.nanorc: Include Benno's awesome signature matcher, modified slightly to also work for quoted sigs. * doc/syntax/default.nanorc: Be far more gentle with something which affects every file which doesn't match another syntax, and the user may not be able to override if their distro turns on highlighting by default.\ git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4929 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
f470c900ae
Коммит
4f3fe133b8
@ -1,3 +1,11 @@
|
|||||||
|
2014-05-28 Chris Allegretta <chrisa@asty.org>
|
||||||
|
* doc/syntax/mutt.nanorc: Include Benno's awesome signature
|
||||||
|
matcher, modified slightly to also work for quoted sigs.
|
||||||
|
* doc/syntax/default.nanorc: Be far more gentle with something
|
||||||
|
which affects every file which doesn't match another syntax, and
|
||||||
|
the user may not be able to override if their distro turns on
|
||||||
|
highlighting by default.
|
||||||
|
|
||||||
2014-05-28 Benno Schulenberg <bensberg@justemail.net>
|
2014-05-28 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/nano.c (do_input): Remove the three unused parameters 's_or_t',
|
* src/nano.c (do_input): Remove the three unused parameters 's_or_t',
|
||||||
'ran_func', and 'finished'. They are only ever set and never used.
|
'ran_func', and 'finished'. They are only ever set and never used.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## An example of a default syntax, which is used
|
## A default syntax, which is used
|
||||||
## for files that do not match any other syntax.
|
## for files that do not match any other syntax.
|
||||||
|
|
||||||
syntax "default"
|
syntax "default"
|
||||||
@ -9,11 +9,5 @@ color ,red " + +"
|
|||||||
# Trailing blanks.
|
# Trailing blanks.
|
||||||
color ,red "[[:blank:]]+$"
|
color ,red "[[:blank:]]+$"
|
||||||
|
|
||||||
# E-mail signatures.
|
# Nano's name, including version.
|
||||||
color yellow start="^-- $" end="^$"
|
color brightred "(GNU )?nano [1-9]\.[0-9]\.[^[:space:][:punct:]]+"
|
||||||
|
|
||||||
# Nano's name.
|
|
||||||
color brightred "(GNU )?nano( [1-9]\.[0-9]\.[^ ]+)?"
|
|
||||||
|
|
||||||
# Tease.
|
|
||||||
color green "\<yellow\>"
|
|
||||||
|
@ -2,4 +2,8 @@
|
|||||||
|
|
||||||
syntax "mutt"
|
syntax "mutt"
|
||||||
|
|
||||||
|
# Quoted lines.
|
||||||
color green "^>.*"
|
color green "^>.*"
|
||||||
|
|
||||||
|
# Signatures, even quoted ones.
|
||||||
|
color yellow start="^>* ?-- $" end="^>* ?$"
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user