codekingpro/portable-devtools
115k
1" Vim syntax file2" Language: sysctl.conf(5) configuration file3" Previous Maintainer: Nikolai Weibull <now@bitwi.se>4" Latest Revision: 2011-05-025 6if exists("b:current_syntax")7 finish8endif9 10let s:cpo_save = &cpo11set cpo&vim12 13syn match sysctlBegin display '^'14 \ nextgroup=sysctlToken,sysctlComment skipwhite15 16syn match sysctlToken contained display '[^=]\+'17 \ nextgroup=sysctlTokenEq skipwhite18 19syn match sysctlTokenEq contained display '=' nextgroup=sysctlValue skipwhite20 21syn region sysctlValue contained display oneline22 \ matchgroup=sysctlValue start='\S'23 \ matchgroup=Normal end='\s*$'24 25syn keyword sysctlTodo contained TODO FIXME XXX NOTE26 27syn region sysctlComment display oneline start='^\s*[#;]' end='$'28 \ contains=sysctlTodo,@Spell29 30hi def link sysctlTodo Todo31hi def link sysctlComment Comment32hi def link sysctlToken Identifier33hi def link sysctlTokenEq Operator34hi def link sysctlValue String35 36let b:current_syntax = "sysctl"37 38let &cpo = s:cpo_save39unlet s:cpo_save40 