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