components/vim/patches/7197223.patch
branchs11-sru
changeset 2350 e2c992920a55
child 7049 e8d705cba87d
equal deleted inserted replaced
2349:887ec13fca20 2350:e2c992920a55
       
     1 --- runtime/syntax/dtrace.vim	Thu Sep 13 09:27:02 2012
       
     2 +++ runtime/syntax/dtrace.vim	Thu Sep 13 09:27:15 2012
       
     3 @@ -40,8 +40,8 @@
       
     4  " XXX: This allows a probe description to end with ',', even if it's not
       
     5  " followed by another probe.
       
     6  " XXX: This doesn't work if followed by a comment.
       
     7 -let s:oneProbe = '\%(BEGIN\|END\|ERROR\|\S\{-}:\S\{-}:\S\{-}:\S\{-}\)\_s*'
       
     8 -exec 'syn match dtraceProbe "'.s:oneProbe.'\%(,\_s*'.s:oneProbe.'\)*\ze\_s\%({\|\/[^*]\|\%$\)"'
       
     9 +let s:oneProbe = '\%(BEGIN\|END\|ERROR\|\S\{-}:\S\{-}:\S\{-}:\S*\)\_s*'
       
    10 +exec 'syn match dtraceProbe "'.s:oneProbe.'\%(,\_s*'.s:oneProbe.'\)*\ze\_s*\%({\|\/[^*]\|\_s*\S\|\%$\)"'
       
    11  
       
    12  " Note: We have to be careful to not make this match /* */ comments.
       
    13  " Also be careful not to eat `c = a / b; b = a / 2;`. We use the same