No, the start and end patterns of a :syn region
must be a pattern; you cannot reference another syntax group. However, with use of matchgroup=
, you may be able to avoid defining a separate syntax keyword / match for the start pattern. To avoid that the matchgroup highlighting also applies to the end pattern, just switch the argument order, like this:
:syntax region Bar end='\t' matchgroup=Foo start='foo'