1 " Title: Vim syntax file
2 " Author: Marcin Szamotulski
3 " Note: This file is a part of Automatic Tex Plugin for Vim.
4 " URL: https://launchpad.net/automatictexplugin
6 syntax region atp_Label_Line start=/^/ end=/$/ transparent contains=atp_Label_CounterValue,atp_Label_Name,atp_Label_LineNr oneline nextgroup=atp_Label_Section
7 syntax match atp_Label_CounterValue /^\%(\d\%(\d\|\.\)*[[:alpha:]]\=\)\|\%(\C[IXVL]\+\)/ nextgroup=atp_Label_Counter,atp_Label_Name
8 syntax match atp_Label_Name /\s\S.*\ze(/ contains=atp_label_Counter
9 syntax match atp_Label_Counter /\[\w\=\]/ contained
10 syntax match atp_Label_LineNr /(\d\+)/ nextgroup=atp_Label_LineNr
11 syntax match atp_Label_FileName /^\(\S\&\D\).*(\/[^)]*)$/
13 hi link atp_Label_FileName Title
14 hi link atp_Label_LineNr LineNr
15 hi link atp_Label_Name Label
16 hi link atp_Label_Counter Keyword