diff --git a/ChangeLog b/ChangeLog index 0b4df1cc..2f6d63e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ Go-To-Line menu. * global.c (shortcut_init): Delete a misplaced setting of 'currmenu'. * global.c (shortcut_init, strtomenu): Cosmetic tweaks. + * doc/syntax/{changelog,c,po}.nanorc: Some small extra colourings. 2014-04-10 Benno Schulenberg * doc/syntax/Makefile.am: Add four recent syntaxes to the packlist. diff --git a/doc/syntax/c.nanorc b/doc/syntax/c.nanorc index d85fee9e..39946f9e 100644 --- a/doc/syntax/c.nanorc +++ b/doc/syntax/c.nanorc @@ -23,9 +23,12 @@ color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" ## This string is VERY resource intensive! color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" -## Comment highlighting +## Comments color brightblue "//.*" color brightblue start="/\*" end="\*/" +## Reminders +color ,yellow "(FIXME|TODO|XXX)" + ## Trailing whitespace color ,green "[[:space:]]+$" diff --git a/doc/syntax/changelog.nanorc b/doc/syntax/changelog.nanorc index 99b46ca5..84c07b09 100644 --- a/doc/syntax/changelog.nanorc +++ b/doc/syntax/changelog.nanorc @@ -1,19 +1,28 @@ ## Colouring for Changelogs. ## -syntax "changelog" "^Change[Ll]og" +syntax "changelog" "Change[Ll]og.*" # Author lines. color green "^(19|20).*$" # Dates. -color red "^(19|20)[-0123456789]*" +color red "^(19|20)[0-9-]{8}" # Email addresses. color yellow "<[^>]*@[^>]*>" # Changed files. color magenta "[[:space:]]\*[[:space:]].*:" +# Command-line options. +color cyan "[[:space:]]-[a-zA-Z\$]" "--[8a-z-]+" + +# Bug numbers. +color cyan "bug #[0-9]{5}" + # Probable variables, for variety. color brightred "\<[A-Z_][0-9A-Z_]+\>" +# Key sequences. +color brightblue "\^[A-Z]" "\