Skip to content

Commit

Permalink
Underline the linkend attribute, not the whole tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Mar 7, 2011
1 parent 8e40eae commit b31389d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions syntax/pml.vim
Expand Up @@ -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.