Linking rubyConstant to Constant

Doug Kearns djkea2 at mugca.its.monash.edu.au
Thu Sep 11 13:30:29 EDT 2003


On Tue, Sep 09, 2003 at 11:12:04PM +1000, Gavin Sinclair wrote:
> On Tuesday, September 9, 2003, 11:03:20 PM, Doug wrote:
> 
> > The rubyConstant syntax group is currently linked to the Identifier
> > highlight group. Would there be any objections to linking it to the
> > Constant group?
> 
> What difference would this make?  My ignorance aside, I have no
> objection :)

Most 'identifiers' are currently all linked to the Identifier highlight
group. So, constants, symbols, instance and class variables, global
variables, iteration variables, predefined global variables and global
constants are all highlighted using the same colour.

The change above would mean that constants would now be highlighted in
the same colour as strings and numbers, unless you have a fine grained
colour scheme which defines different colours for these.  

I also thought I might link the predefined variables and global
constants to the Special highlight group. When you're bored try this
patch and let me know what you think.

Thanks,
Doug

Index: syntax/ruby.vim
===================================================================
RCS file: /var/cvs/vim-ruby/vim-ruby/syntax/ruby.vim,v
retrieving revision 1.19
diff -u -r1.19 ruby.vim
--- syntax/ruby.vim	9 Sep 2003 11:53:17 -0000	1.19
+++ syntax/ruby.vim	11 Sep 2003 02:31:44 -0000
@@ -203,13 +203,13 @@
   HiLink rubyModule			Type
   HiLink rubyIdentifier			Identifier
   HiLink rubyClassVariable		rubyIdentifier
-  HiLink rubyConstant			rubyIdentifier
+  HiLink rubyConstant			Constant
   HiLink rubyGlobalVariable		rubyIdentifier
   HiLink rubyIterator			rubyIdentifier
   HiLink rubyInstanceVariable		rubyIdentifier
   HiLink rubyPredefinedIdentifier	rubyIdentifier
-  HiLink rubyPredefinedConstant		rubyPredefinedIdentifier
-  HiLink rubyPredefinedVariable		rubyPredefinedIdentifier
+  HiLink rubyPredefinedConstant		Special
+  HiLink rubyPredefinedVariable		Special
   HiLink rubySymbol			rubyIdentifier
   HiLink rubySharpBang			PreProc
   HiLink rubyKeyword			Keyword


More information about the vim-ruby-devel mailing list