💾 Archived View for gmi.noulin.net › gitRepositories › systemSetup › file › dotfiles › .vim › after … captured on 2024-08-25 at 05:45:03. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
gcov.vim (2741B)
1 " Vim syntax file 2 " Language: gcov (gcc coverage testing output) 3 " Maintainer: Saikat Guha <saikat@cs.cornell.edu> 4 " Last Change: 2008 Jan 09 5 6 " Quit when a (custom) syntax file was already loaded 7 if exists("b:current_syntax") 8 finish 9 endif 10 11 " Tag lines 12 syn match gcovTag "^\s*-:\s*0:" nextgroup=gcovTagName 13 syn match gcovTagName contained "[^:]\+" nextgroup=gcovTagNameColon 14 syn match gcovTagNameColon contained ":" nextgroup=gcovTagValue 15 syn match gcovTagValue contained ".*$" 16 17 " Source lines 18 syn match gcovNoCode "^\s*-:\s*[1-9]\d*:.*" 19 syn match gcovNotExecuted "^\s*#####:\s*[1-9]\d*:.*" 20 syn match gcovExecuted "^\s*[1-9]\d*:\s*[1-9]\d*:.*" 21 22 " Basic blocks 23 syn match gcovBlockNotExecuted "^\s*\$\$\$\$\$:\s*[1-9]\d*-block\s\+\d*" 24 syn match gcovBlockExecuted "^\s*[1-9]\d*:\s*[1-9]\d*-block\s\+\d*" 25 26 " Branches 27 syn match gcovBranchNotExecuted "^branch\s\+\d* never executed" 28 syn match gcovBranchTaken "^branch\s\+\d* taken\s\+[1-9]\d*.*$" 29 syn match gcovBranchNeverTaken "^branch\s\+\d* taken\s\+0.*$" 30 syn match gcovUBranchNotExecuted "^unconditional\s\+\d* never executed" 31 syn match gcovUBranchTaken "^unconditional\s\+\d* taken\s\+[1-9]\d*.*$" 32 33 " Calls 34 syn match gcovCallNotExecuted "^call\s\+\d* never executed" 35 syn match gcovCallExecuted "^call\s\+\d* returned\s\+\d*" 36 37 " Functions 38 syn match gcovfunctionExecuted "^function\s\+\w*\s\+called\s\+[1-9]\d*.*" 39 syn match gcovfunctionNotExecuted "^function\s\+\w*\s\+called\s\+0.*" 40 41 " Define the default highlighting. 42 " Only used when an item doesn't have highlighting yet 43 hi def link gcovTag Ignore 44 hi def link gcovTagNameColon gcovTag 45 hi def link gcovTagName Statement 46 hi def link gcovTagValue Identifier 47 hi def link gcovNotExecuted Constant 48 hi def link gcovExecuted Type 49 hi def link gcovNoCode Ignore 50 51 hi def link gcovSpecialExecuted Comment 52 hi def link gcovSpecialNotExecuted Special 53 54 55 hi def link gcovBlockNotExecuted gcovSpecialNotExecuted 56 hi def link gcovBlockExecuted gcovSpecialExecuted 57 58 hi def link gcovBranchNotExecuted gcovSpecialNotExecuted 59 hi def link gcovBranchTaken gcovSpecialExecuted 60 hi def link gcovUBranchNotExecuted gcovSpecialNotExecuted 61 hi def link gcovUBranchTaken gcovSpecialExecuted 62 hi def link gcovBranchNeverTaken Statement 63 64 hi def link gcovCallNotExecuted gcovSpecialNotExecuted 65 hi def link gcovCallExecuted gcovSpecialExecuted 66 67 hi def link gcovFunctionNotExecuted gcovSpecialNotExecuted 68 hi def link gcovFunctionExecuted gcovSpecialExecuted 69 70 let b:current_syntax = "gcov" 71 72 " vim: ts=8 sw=2