annotate runtime/syntax/setserial.vim @ 10572:67602a764c5b

Added tag v8.0.0175 for changeset b726d3ea70bc23cbeb62442f4520b4f559c8da6b
author Christian Brabandt <cb@256bit.org>
date Thu, 12 Jan 2017 21:45:05 +0100
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: setserial(8) 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 match setserialBegin display '^'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14 \ nextgroup=setserialDevice,setserialComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15 \ skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17 syn match setserialDevice contained display '\%(/[^ \t/]*\)\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20 syn keyword setserialParameter contained port irq baud_base divisor
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 \ close_delay closing_wait rx_trigger
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22 \ tx_trigger flow_off flow_on rx_timeout
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 \ nextgroup=setserialNumber skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25 syn keyword setserialParameter contained uart
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 \ nextgroup=setserialUARTType skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28 syn keyword setserialParameter contained autoconfig auto_irq skip_test
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 \ spd_hi spd_vhi spd_shi spd_warp spd_cust
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30 \ spd_normal sak fourport session_lockout
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31 \ pgrp_lockout hup_notify split_termios
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32 \ callout_nohup low_latency
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35 syn match setserialParameter contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36 \ '\^\%(auto_irq\|skip_test\|sak\|fourport\)'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37 \ contains=setserialNegation
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 syn match setserialParameter contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 \ '\^\%(session_lockout\|pgrp_lockout\)'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 \ contains=setserialNegation
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45 syn match setserialParameter contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46 \ '\^\%(hup_notify\|split_termios\)'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47 \ contains=setserialNegation
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50 syn match setserialParameter contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51 \ '\^\%(callout_nohup\|low_latency\)'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52 \ contains=setserialNegation
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
53 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
54
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
55 syn keyword setserialParameter contained set_multiport
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
56 \ nextgroup=setserialMultiport skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
57
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
58 syn match setserialNumber contained display '\<\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
59 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
60 syn match setserialNumber contained display '0x\x\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
61 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
62
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
63 syn keyword setserialUARTType contained none
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
64
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
65 syn match setserialUARTType contained display
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
66 \ '8250\|16[4789]50\|16550A\=\|16650\%(V2\)\='
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
67 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
68
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
69 syn match setserialUARTType contained display '166[59]4'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
70 \ nextgroup=setserialParameter skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
71
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
72 syn match setserialNegation contained display '\^'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
73
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
74 syn match setserialMultiport contained '\<port\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
75 \ nextgroup=setserialPort skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
76
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
77 syn match setserialPort contained display '\<\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
78 \ nextgroup=setserialMask skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
79 syn match setserialPort contained display '0x\x\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
80 \ nextgroup=setserialMask skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
81
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
82 syn match setserialMask contained '\<mask\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
83 \ nextgroup=setserialBitMask skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
84
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
85 syn match setserialBitMask contained display '\<\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
86 \ nextgroup=setserialMatch skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
87 syn match setserialBitMask contained display '0x\x\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
88 \ nextgroup=setserialMatch skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
89
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
90 syn match setserialMatch contained '\<match\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
91 \ nextgroup=setserialMatchBits skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
92
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
93 syn match setserialMatchBits contained display '\<\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
94 \ nextgroup=setserialMultiport skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
95 syn match setserialMatchBits contained display '0x\x\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
96 \ nextgroup=setserialMultiport skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
97
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
98 syn keyword setserialTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
99
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
100 syn region setserialComment display oneline start='^\s*#' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
101 \ contains=setserialTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
102
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
103 hi def link setserialTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
104 hi def link setserialComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
105 hi def link setserialDevice Normal
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
106 hi def link setserialParameter Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
107 hi def link setserialNumber Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
108 hi def link setserialUARTType Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
109 hi def link setserialNegation Operator
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
110 hi def link setserialMultiport Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
111 hi def link setserialPort setserialNumber
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
112 hi def link setserialMask Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
113 hi def link setserialBitMask setserialNumber
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
114 hi def link setserialMatch Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
115 hi def link setserialMatchBits setserialNumber
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
116
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
117 let b:current_syntax = "setserial"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
118
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
119 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
120 unlet s:cpo_save