From: David Lawrence Ramsey Date: Fri, 7 Jul 2006 13:54:38 +0000 (+0000) Subject: per John M. Gabriele's patch with a few tweaks by me, in X-Git-Tag: v1.9.99pre1~97 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c2e585ef6c2fa54a6a2be3e6e0fbbfe5f624b7c9;p=nano.git per John M. Gabriele's patch with a few tweaks by me, in doc/syntax/ruby.nanorc, improve highlighting of constants git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3764 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 986101cb..76b271e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -95,6 +95,8 @@ CVS code - - doc/syntax/ruby.nanorc: - Add missing blank line after the first comment, for consistency. (DLR) + - Improve highlighting of constants. (John M. Gabriele, minor + tweaks by DLR) GNU nano 1.3.12 - 2006.06.26 - General: diff --git a/doc/syntax/ruby.nanorc b/doc/syntax/ruby.nanorc index 9eaf4ba2..a557287e 100644 --- a/doc/syntax/ruby.nanorc +++ b/doc/syntax/ruby.nanorc @@ -4,7 +4,7 @@ syntax "ruby" "\.rb$" ## Asciibetical list of reserved words color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" ## Constants -color brightblue "(\$|@|@@)?[A-Z]+[0-9A-Z_a-z]*" +color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" ## Ruby "symbols" icolor magenta "([ ]|^):[0-9A-Z_]+\>" ## Some unique things we want to stand out