]> git.wh0rd.org Git - nano.git/commitdiff
per John M. Gabriele's patch with a few tweaks by me, in
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 7 Jul 2006 13:54:38 +0000 (13:54 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 7 Jul 2006 13:54:38 +0000 (13:54 +0000)
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

ChangeLog
doc/syntax/ruby.nanorc

index 986101cbee0415121d5f91a111f6d08e54b33d2a..76b271e51d2b8c8d0318f0d9318b8201d711048f 100644 (file)
--- 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:
index 9eaf4ba2134c4a8a7b08e17c4ddc480e872681c8..a557287ef1d3388bf0189f13e79cbbc41daff4b7 100644 (file)
@@ -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