Skip to content
Browse files

Underline the linkend attribute, not the whole tag.

  • Loading branch information...
1 parent 8e40eae commit b31389dea1eae81651c9807c1b7b6088105d1174 @nelstrom committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 syntax/pml.vim
5 syntax/pml.vim
@@ -2,5 +2,6 @@ runtime! syntax/xml.vim
syntax spell toplevel
-syntax match pmlCrossReference "<p\=ref\>\_[^>]*>"
-hi def link pmlCrossReference Underlined
+syntax match pmlLinkend @linkend=\('\zs[^']\+\ze'\|\"\zs[^"]\+\ze"\)@ contained
+syntax match pmlCrossReference "<p\=ref\>\_[^>]*>" contains=pmlLinkend
+hi def link pmlLinkend Underlined

0 comments on commit b31389d

Please sign in to comment.
Something went wrong with that request. Please try again.