annotate runtime/syntax/sensors.vim @ 28103:1615d305c71d v8.2.4576

patch 8.2.4576: Vim9: error for comparing with null can be annoying Commit: https://github.com/vim/vim/commit/056678184f679c2989b73bd48eda112f3c79a62f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 20:21:33 2022 +0000 patch 8.2.4576: Vim9: error for comparing with null can be annoying Problem: Vim9: error for comparing with null can be annoying. Solution: Allow comparing anything with null. (closes https://github.com/vim/vim/issues/9948)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Mar 2022 21:30:03 +0100
parents 1218c5353e2b
children
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
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: sensors.conf(5) - libsensors configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
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