diff --git a/ChangeLog b/ChangeLog index 21d34e5b33f443eb63f26de975ef0b57043c1612..834578c24680997d804ec76dd9bfd6e287cad817 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * src/nano (precalc_multicolorinfo): Do not match the ^ anchor when looking further on in a line. This prevents an end="^$" from being 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> * doc/syntax/json.nanorc: New file, originally from Aapo Rantalainen, diff --git a/doc/syntax/Makefile.am b/doc/syntax/Makefile.am index 458c8165155e8b0d1ce38ec86b7c4389d56ae558..03bc8e3e003b955fc6c8c7799f3336cf8e32cd61 100644 --- a/doc/syntax/Makefile.am +++ b/doc/syntax/Makefile.am @@ -5,6 +5,7 @@ pkgdata_DATA = asm.nanorc \ c.nanorc \ css.nanorc \ debian.nanorc \ + default.nanorc \ fortran.nanorc \ gentoo.nanorc \ go.nanorc \ diff --git a/doc/syntax/default.nanorc b/doc/syntax/default.nanorc new file mode 100644 index 0000000000000000000000000000000000000000..9047b9d51f0f699c014a01d1dc5106cb36552800 --- /dev/null +++ b/doc/syntax/default.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\>"