Adding an example of a default syntax.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4904 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
277701f530
commit
8491c2251b
|
@ -2,6 +2,7 @@
|
||||||
* src/nano (precalc_multicolorinfo): Do not match the ^ anchor when
|
* src/nano (precalc_multicolorinfo): Do not match the ^ anchor when
|
||||||
looking further on in a line. This prevents an end="^$" from being
|
looking further on in a line. This prevents an end="^$" from being
|
||||||
sometimes mistakenly matched. Fix inspired by Savannah bug #27708.
|
sometimes mistakenly matched. Fix inspired by Savannah bug #27708.
|
||||||
|
* doc/syntax/default.nanorc: New file, example for a default syntax.
|
||||||
|
|
||||||
2014-05-17 Benno Schulenberg <bensberg@justemail.net>
|
2014-05-17 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* doc/syntax/json.nanorc: New file, originally from Aapo Rantalainen,
|
* doc/syntax/json.nanorc: New file, originally from Aapo Rantalainen,
|
||||||
|
|
|
@ -5,6 +5,7 @@ pkgdata_DATA = asm.nanorc \
|
||||||
c.nanorc \
|
c.nanorc \
|
||||||
css.nanorc \
|
css.nanorc \
|
||||||
debian.nanorc \
|
debian.nanorc \
|
||||||
|
default.nanorc \
|
||||||
fortran.nanorc \
|
fortran.nanorc \
|
||||||
gentoo.nanorc \
|
gentoo.nanorc \
|
||||||
go.nanorc \
|
go.nanorc \
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
## An example of a default syntax, which is used
|
||||||
|
## for files that do not match any other syntax.
|
||||||
|
|
||||||
|
syntax "default"
|
||||||
|
|
||||||
|
# Spaces in front of tabs.
|
||||||
|
color ,red " + +"
|
||||||
|
|
||||||
|
# Trailing blanks.
|
||||||
|
color ,red "[[:blank:]]+$"
|
||||||
|
|
||||||
|
# E-mail signatures.
|
||||||
|
color yellow start="^-- $" end="^$"
|
||||||
|
|
||||||
|
# Nano's name.
|
||||||
|
color brightred "(GNU )?nano( [1-9]\.[0-9]\.[^ ]+)?"
|
||||||
|
|
||||||
|
# Tease.
|
||||||
|
color green "\<yellow\>"
|
Loading…
Reference in New Issue