annotate runtime/syntax/sensors.vim @ 1624:18ee39301b82 v7.2a

updated for version 7.2a
author vimboss
date Tue, 24 Jun 2008 22:58:06 +0000
parents 1f3b1021f002
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 " Vim syntax file
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 " Language: sensors.conf(5) - libsensors configuration file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
4 " Latest Revision: 2006-04-19
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 set cpo&vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 syn keyword sensorsTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15 syn region sensorsComment display oneline start='#' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 \ contains=sensorsTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 syn keyword sensorsKeyword bus chip label compute ignore set
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 syn region sensorsName display oneline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22 \ start=+"+ skip=+\\\\\|\\"+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 \ contains=sensorsNameSpecial
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24 syn match sensorsName display '\w\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 syn match sensorsNameSpecial display '\\["\\rnt]'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28 syn match sensorsLineContinue '\\$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30 syn match sensorsNumber display '\d*.\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32 syn match sensorsRealWorld display '@'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34 syn match sensorsOperator display '[+*/-]'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36 syn match sensorsDelimiter display '[()]'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 hi def link sensorsTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39 hi def link sensorsComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 hi def link sensorsKeyword Keyword
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 hi def link sensorsName String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 hi def link sensorsNameSpecial SpecialChar
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 hi def link sensorsLineContinue Special
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 hi def link sensorsNumber Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45 hi def link sensorsRealWorld Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46 hi def link sensorsOperator Normal
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47 hi def link sensorsDelimiter Normal
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49 let b:current_syntax = "sensors"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52 unlet s:cpo_save