1
1
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4762 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
Benno Schulenberg 2014-04-13 15:57:05 +00:00
родитель f803ef5aea
Коммит 8347d02b28
4 изменённых файлов: 19 добавлений и 4 удалений

Просмотреть файл

@ -5,6 +5,7 @@
Go-To-Line menu. Go-To-Line menu.
* global.c (shortcut_init): Delete a misplaced setting of 'currmenu'. * global.c (shortcut_init): Delete a misplaced setting of 'currmenu'.
* global.c (shortcut_init, strtomenu): Cosmetic tweaks. * global.c (shortcut_init, strtomenu): Cosmetic tweaks.
* doc/syntax/{changelog,c,po}.nanorc: Some small extra colourings.
2014-04-10 Benno Schulenberg <bensberg@justemail.net> 2014-04-10 Benno Schulenberg <bensberg@justemail.net>
* doc/syntax/Makefile.am: Add four recent syntaxes to the packlist. * doc/syntax/Makefile.am: Add four recent syntaxes to the packlist.

Просмотреть файл

@ -23,9 +23,12 @@ color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
## This string is VERY resource intensive! ## This string is VERY resource intensive!
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Comment highlighting ## Comments
color brightblue "//.*" color brightblue "//.*"
color brightblue start="/\*" end="\*/" color brightblue start="/\*" end="\*/"
## Reminders
color ,yellow "(FIXME|TODO|XXX)"
## Trailing whitespace ## Trailing whitespace
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

Просмотреть файл

@ -1,19 +1,28 @@
## Colouring for Changelogs. ## Colouring for Changelogs.
## ##
syntax "changelog" "^Change[Ll]og" syntax "changelog" "Change[Ll]og.*"
# Author lines. # Author lines.
color green "^(19|20).*$" color green "^(19|20).*$"
# Dates. # Dates.
color red "^(19|20)[-0123456789]*" color red "^(19|20)[0-9-]{8}"
# Email addresses. # Email addresses.
color yellow "<[^>]*@[^>]*>" color yellow "<[^>]*@[^>]*>"
# Changed files. # Changed files.
color magenta "[[:space:]]\*[[:space:]].*:" 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. # Probable variables, for variety.
color brightred "\<[A-Z_][0-9A-Z_]+\>" color brightred "\<[A-Z_][0-9A-Z_]+\>"
# Key sequences.
color brightblue "\^[A-Z]" "\<M-." "\<F1?[0-9]" "(\^|M-)Space"
# Trailing whitespace. # Trailing whitespace.
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

Просмотреть файл

@ -1,4 +1,4 @@
## Syntax colouring for PO files. ## Colouring for PO files.
## ##
syntax "po" "\.pot?$" syntax "po" "\.pot?$"
# Comments. # Comments.
@ -20,5 +20,7 @@ color brightmagenta "%([1-9]\$)?[a-z]*"
# Quotes and newlines. # Quotes and newlines.
color yellow "\"" color yellow "\""
color cyan "\\n" color cyan "\\n"
# Reminders.
color ,yellow "(FIXME|TODO|XXX)"
# Obsolete strings. # Obsolete strings.
color red "#~.*$" color red "#~.*$"