From b31389dea1eae81651c9807c1b7b6088105d1174 Mon Sep 17 00:00:00 2001 From: Drew Neil Date: Mon, 7 Mar 2011 11:04:42 +0200 Subject: [PATCH] Underline the linkend attribute, not the whole tag. --- syntax/pml.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syntax/pml.vim b/syntax/pml.vim index 37d9ce9..afb08f1 100644 --- a/syntax/pml.vim +++ b/syntax/pml.vim @@ -2,5 +2,6 @@ runtime! syntax/xml.vim syntax spell toplevel -syntax match pmlCrossReference "\_[^>]*>" -hi def link pmlCrossReference Underlined +syntax match pmlLinkend @linkend=\('\zs[^']\+\ze'\|\"\zs[^"]\+\ze"\)@ contained +syntax match pmlCrossReference "\_[^>]*>" contains=pmlLinkend +hi def link pmlLinkend Underlined