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
master
David Lawrence Ramsey 2006-07-07 13:54:38 +00:00
parent 2c36e2eb00
commit c2e585ef6c
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View 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