specky/syntax/specrun.vim
branchvim-stuff
changeset 21 cd1f3381c1ed
parent 19 763cef799c74
equal deleted inserted replaced
20:09c4f575f627 21:cd1f3381c1ed
    25 " Failed specs
    25 " Failed specs
    26 syntax match specFailed /.*FAILED - #\d\+)/ contains=specDuration,specBoxLine
    26 syntax match specFailed /.*FAILED - #\d\+)/ contains=specDuration,specBoxLine
    27 syntax keyword specFailedKeyword Failed
    27 syntax keyword specFailedKeyword Failed
    28 
    28 
    29 " Failure details
    29 " Failure details
    30 syntax region specFailedDetails start="^FAILURE - #\d\+)" end="^$" fold contains=specCallout
    30 syntax region specFailedDetails start="^FAILURE - #\d\+)" end="^$" fold contains=specCallout,specErrorLine
       
    31 syntax match specErrorLine /^  >>/
       
    32 
    31 
    33 
    32 " Boxes
    34 " Boxes
    33 syntax match specBox /^\(\s\+\)\?\(+[+-]\+\||.*|\)$/ contains=specFailedKeyword,specDurationKeyword,specPendingKeyword,specPassedKeyword,specBoxContent
    35 syntax match specBox /^\(\s\+\)\?\(+[+-]\+\||.*|\)$/ contains=specFailedKeyword,specDurationKeyword,specPendingKeyword,specPassedKeyword,specBoxContent
    34 syntax match specBoxContent /[a-zA-Z0-9]\+/ contained
    36 syntax match specBoxContent /[a-zA-Z0-9]\+/ contained
    35 syntax match specBoxLine /^\(\s\+\)\?|/ contained
    37 syntax match specBoxLine /^\(\s\+\)\?|/ contained
    49 highlight def link specFailedDetails specFailed
    51 highlight def link specFailedDetails specFailed
    50 highlight def link specDuration Normal
    52 highlight def link specDuration Normal
    51 highlight def link specBox LineNr
    53 highlight def link specBox LineNr
    52 highlight def link specBoxContent Constant
    54 highlight def link specBoxContent Constant
    53 highlight def link specBoxLine LineNr
    55 highlight def link specBoxLine LineNr
       
    56 highlight def link specErrorLine ErrorMsg
    54 
    57 
    55 let b:current_syntax = "specrun"
    58 let b:current_syntax = "specrun"
    56 
    59