" Vim syntax file " Language: Netcool Webtop entity.group file " Maintainer: Scott R. Keszler " Info: $Id: $ " URL: http://srkconsulting.com/netcool_vim " Anon SVN: $HeadURL: $ " Release Coordinator: Scott R. Keszler " ---------------------------------------------------------------------------- " " Remove any old syntax stuff that was loaded (5.x) or quit when a syntax file " was already loaded (6.x). if version < 600 syntax clear elseif exists("b:current_syntax") finish endif syntax case match " all spaces are errors unless found in strings syn match entitySpace / / hi def link entitySpace Error " strings (double-quotes only, not single) syn region entityString matchgroup=entityDQuote start=/"/ end=/"/ hi def link entityString String hi def link entityDQuote SpecialChar " entityset(view="basic") syn keyword entitySet entityset nextgroup=entitySetOParen,entitySetOParenError syn match entitySetOParenError contained /.*/ syn match entitySetOParen contained /(/ nextgroup=entitySetView,entitySetViewError syn match entitySetViewError contained /.*/ syn match entitySetView contained /view=/ nextgroup=entitySetString,entitySetStringError syn match entitySetStringError contained /.*/ syn region entitySetString contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entitySetCParen,entitySetCParenError syn match entitySetCParenError contained /.*/ syn match entitySetCParen contained /)$/ hi def link entitySet Statement hi def link entitySetOParenError Error hi def link entitySetViewError Error hi def link entitySetView Function hi def link entitySetStringError Error hi def link entitySetString String hi def link entitySetCParenError Error " entitygroup(value="demo") syn keyword entityGroup entitygroup nextgroup=entityGroupOParen,entityGroupOParenError syn match entityGroupOParenError contained /.*/ syn match entityGroupOParen contained /(/ nextgroup=entityGroupValue,entityGroupValueError syn match entityGroupValueError contained /.*/ syn match entityGroupValue contained /value=/ nextgroup=entityGroupString,entityGroupStringError syn match entityGroupStringError contained /.*/ syn region entityGroupString contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityGroupCParen,entityGroupCParenError syn match entityGroupCParenError contained /.*/ syn match entityGroupCParen contained /)$/ hi def link entityGroup Statement hi def link entityGroupOParenError Error hi def link entityGroupValueError Error hi def link entityGroupValue Function hi def link entityGroupStringError Error hi def link entityGroupString String hi def link entityGroupCParenError Error " entitylist(name="Sev2_mcu",view="Auction_Loc_Plus",list="Sev2_mcu_33|Sev2_mcu_51",metriclabel="Metric:",metricshow="Maximum",metricof="Severity") " metricshow values: Sum|Average|Count|Maximum|Minimum - CASE MATTERS! syn keyword entityList entitylist nextgroup=entityListOParen,entityListOParenError syn match entityListOParenError contained /.*/ syn match entityListOParen contained /(/ nextgroup=entityListName,entityListNameError syn match entityListNameError contained /.*/ syn match entityListName contained /name=/ nextgroup=entityListNStr,entityListNStrError syn match entityListNStrError contained /.*/ syn region entityListNStr contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityListView,entityListViewError syn match entityListViewError contained /.*/ syn match entityListView contained /,view=/ nextgroup=entityListVStr,entityListVStrError syn match entityListVStrError contained /.*/ syn region entityListVStr contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityListList,entityListListError syn match entityListListerror contained /.*/ syn match entityListList contained /,list=/ nextgroup=entityListLStr,entityListLStrError syn match entityListLStrError contained /.*/ syn region entityListLStr contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityListMLabel,entityListMLabelError syn match entityListMLabelError contained /.*/ syn match entityListMLabel contained /,metriclabel=/ nextgroup=entityListMLStr,entityListMLStrError syn match entityListMLStrError contained /.*/ syn region entityListMLStr contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityListMShow,entityListMShowError syn match entityListMShowError contained /.*/ syn match entityListMShow contained /,metricshow=/ nextgroup=entityListMSvalue,entityListMSvalueError syn match entityListMSvalueError contained /.*/ syn match entityListMSvalue contained /"\(Average\|Count\|Maximum\|Minimum\|Sum\)"/ nextgroup=entityListMOf,entityListMOfError syn match entityListMOfError contained /.*/ syn match entityListMOf contained /,metricof=/ nextgroup=entityListMOStr,entityListMOStrError syn match entityListMOStrError contained /.*/ " making 'metricof' require a first-letter capital - this is an ObjectServer " field and all standard fields are capitalized syn match entityListMOStr contained /"[A-Z][^"]*"/ nextgroup=entityListCParen,entityListCParenError syn match entityListCParenError contained /.*/ syn match entityListCParen contained /)$/ hi def link entityList Statement hi def link entityListOParenError Error hi def link entityListNameError Error hi def link entityListName Function hi def link entityListNStrError Error hi def link entityListNStr String hi def link entityListViewError Error hi def link entityListView Function hi def link entityListVStrError Error hi def link entityListVStr String hi def link entityListListerror Error hi def link entityListList Function hi def link entityListLStrError Error hi def link entityListLStr String hi def link entityListMLabelError Error hi def link entityListMLabel Function hi def link entityListMLStrError Error hi def link entityListMLStr String hi def link entityListMShowError Error hi def link entityListMShow Function hi def link entityListMSvalueError Error hi def link entityListMSvalue String hi def link entityListMOfError Error hi def link entityListMOf Function hi def link entityListMOStrError Error hi def link entityListMOStr String hi def link entityListCParenError Error " entity(name="RT_NY",view="basic",filter="Class>3300",metriclabel="Metric:",metricshow="Sum",metricof="Tally") " metricshow values: Sum|Average|Count|Maximum|Minimum - CASE MATTERS! syn keyword entityE entity nextgroup=entityEOParen,entityEOParenError syn match entityEOParenError contained /.*/ syn match entityEOParen contained /(/ nextgroup=entityEName,entityENameError syn match entityENameError contained /.*/ syn match entityEName contained /name=/ nextgroup=entityENStr,entityENStrError syn match entityENStrError contained /.*/ syn region entityENStr contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityEView,entityEViewError syn match entityEViewError contained /.*/ syn match entityEView contained /,view=/ nextgroup=entityEVStr,entityEVStrError syn match entityEVStrError contained /.*/ syn region entityEVStr contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityEFilt,entityEFiltError syn match entityEFilterror contained /.*/ syn match entityEFilt contained /,filter=/ nextgroup=entityELStr,entityELStrError syn match entityELStrError contained /.*/ syn region entityELStr contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityEMLabel,entityEMLabelError syn match entityEMLabelError contained /.*/ syn match entityEMLabel contained /,metriclabel=/ nextgroup=entityEMLStr,entityEMLStrError syn match entityEMLStrError contained /.*/ syn region entityEMLStr contained matchgroup=entityDQuote start=/"/ end=/"/ nextgroup=entityEMShow,entityEMShowError syn match entityEMShowError contained /.*/ syn match entityEMShow contained /,metricshow=/ nextgroup=entityEMSvalue,entityEMSvalueError syn match entityEMSvalueError contained /.*/ syn match entityEMSvalue contained /"\(Average\|Count\|Maximum\|Minimum\|Sum\)"/ nextgroup=entityEMOf,entityEMOfError syn match entityEMOfError contained /.*/ syn match entityEMOf contained /,metricof=/ nextgroup=entityEMOStr,entityEMOStrError syn match entityEMOStrError contained /.*/ " making 'metricof' require a first-letter capital - this is an ObjectServer " field and all standard fields are capitalized syn match entityEMOStr contained /"[A-Z][^"]*"/ nextgroup=entityECParen,entityECParenError syn match entityECParenError contained /.*/ syn match entityECParen contained /)$/ hi def link entityE Statement hi def link entityEOParenError Error hi def link entityENameError Error hi def link entityEName Function hi def link entityENStrError Error hi def link entityENStr String hi def link entityEViewError Error hi def link entityEView Function hi def link entityEVStrError Error hi def link entityEVStr String hi def link entityEFilterror Error hi def link entityEFilt Function hi def link entityELStrError Error hi def link entityELStr String hi def link entityEMLabelError Error hi def link entityEMLabel Function hi def link entityEMLStrError Error hi def link entityEMLStr String hi def link entityEMShowError Error hi def link entityEMShow Function hi def link entityEMSvalueError Error hi def link entityEMSvalue String hi def link entityEMOfError Error hi def link entityEMOf Function hi def link entityEMOStrError Error hi def link entityEMOStr String hi def link entityECParenError Error let b:current_syntax = "entity" " vim:ts=8 sw=4 et