1" Vim syntax file 2" Language: sensors.conf(5) - libsensors configuration file 3" Previous Maintainer: Nikolai Weibull <[email protected]> 4" Latest Revision: 2006-04-19 5 6if exists("b:current_syntax") 7 finish 8endif 9 10let s:cpo_save = &cpo 11set cpo&vim 12 13syn keyword sensorsTodo contained TODO FIXME XXX NOTE 14 15syn region sensorsComment display oneline start='#' end='$' 16 \ contains=sensorsTodo,@Spell 17 18 19syn keyword sensorsKeyword bus chip label compute ignore set 20 21syn region sensorsName display oneline 22 \ start=+"+ skip=+\\\\\|\\"+ end=+"+ 23 \ contains=sensorsNameSpecial 24syn match sensorsName display '\w\+' 25 26syn match sensorsNameSpecial display '\\["\\rnt]' 27 28syn match sensorsLineContinue '\\$' 29 30syn match sensorsNumber display '\d*.\d\+\>' 31 32syn match sensorsRealWorld display '@' 33 34syn match sensorsOperator display '[+*/-]' 35 36syn match sensorsDelimiter display '[()]' 37 38hi def link sensorsTodo Todo 39hi def link sensorsComment Comment 40hi def link sensorsKeyword Keyword 41hi def link sensorsName String 42hi def link sensorsNameSpecial SpecialChar 43hi def link sensorsLineContinue Special 44hi def link sensorsNumber Number 45hi def link sensorsRealWorld Identifier 46hi def link sensorsOperator Normal 47hi def link sensorsDelimiter Normal 48 49let b:current_syntax = "sensors" 50 51let &cpo = s:cpo_save 52unlet s:cpo_save 53