summaryrefslogblamecommitdiffstats
path: root/syntax/godefstack.vim
blob: bb277ac5e58b8f97f003840b5105e353457d8dee (plain) (tree)
1
2
3
4
5
6
                                        

        
 
                             
        
















                                                                                                                     
                   
if has_key(g:polyglot_is_disabled, 'go')
  finish
endif

if exists("b:current_syntax")
  finish
endif

syn match godefStackComment             '^".*'
syn match godefLinePrefix               '^[>\s]\s' nextgroup=godefStackEntryNumber contains=godefStackCurrentPosition
syn match godefStackEntryNumber         '\d\+' nextgroup=godefStackFilename skipwhite
syn match godefStackCurrentPosition     '>' contained
syn match godefStackFilename            '[^|]\+' contained nextgroup=godefStackEntryLocation
syn region godefStackEntryLocation      oneline start='|' end='|' contained contains=godefStackEntryLocationNumber
syn match godefStackEntryLocationNumber '\d\+' contained display

let b:current_syntax = "godefstack"

hi def link godefStackComment           Comment
hi def link godefStackCurrentPosition   Special
hi def link godefStackFilename          Directory
hi def link godefStackEntryLocationNumber LineNr

" vim: sw=2 ts=2 et