comparison runtime/syntax/sensors.vim @ 389:4fe8e1a7758e v7.0102

updated for version 7.0102
author vimboss
date Mon, 04 Jul 2005 22:49:24 +0000
parents
children 1f3b1021f002
comparison
equal deleted inserted replaced
388:f92bb1845823 389:4fe8e1a7758e
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