Hello,

You'll probably need to use 'execute':

  execute 'syn match myPattern' s:mypattern

but again, highlighting won't work for you then.

regards,
Peter


  

--- Ian Tegebo <[EMAIL PROTECTED]> wrote:

> Is doesn't seem possible to store my patterns in variables for use in syntax
> definitions like the following:
> 
> let s:mypattern = '#.*'
> syn match myPattern s:mypattern
> 
> I get 'pattern delimiter not found' and what not.  Is there a way to achieve
> this?
> 
> The general "problem" I'm trying to solve is having to update patterns in
> syntax files when they're used in multiple places and to reduce the line
> length of syntax definitions; I've tried using line continuations but
> highlighting in the definition file itself seems to fail in this case.
> 
> -- 
> Ian Tegebo
> 


Send instant messages to your online friends http://au.messenger.yahoo.com 

Reply via email to