3854
|
1 " Vim syntax file
|
|
2 " Language: dts/dtsi (device tree files)
|
|
3 " Maintainer: Daniel Mack <vim@zonque.org>
|
4264
|
4 " Last Change: 2013 Apr 05
|
3854
|
5
|
|
6 if exists("b:current_syntax")
|
|
7 finish
|
|
8 endif
|
|
9
|
|
10 syntax region dtsComment start="/\*" end="\*/"
|
|
11 syntax match dtsReference "&[[:alpha:][:digit:]_]\+"
|
|
12 syntax region dtsBinaryProperty start="\[" end="\]"
|
|
13 syntax match dtsStringProperty "\".*\""
|
|
14 syntax match dtsKeyword "/.*/"
|
|
15 syntax match dtsLabel "^[[:space:]]*[[:alpha:][:digit:]_]\+:"
|
4264
|
16 syntax match dtsNode /[[:alpha:][:digit:]-_]\+\(@[0-9a-fA-F]\+\|\)[[:space:]]*{/he=e-1
|
3854
|
17 syntax region dtsCellProperty start="<" end=">" contains=dtsReference,dtsBinaryProperty,dtsStringProperty,dtsComment
|
|
18 syntax region dtsCommentInner start="/\*" end="\*/"
|
|
19
|
|
20 hi def link dtsCellProperty Number
|
|
21 hi def link dtsBinaryProperty Number
|
|
22 hi def link dtsStringProperty String
|
|
23 hi def link dtsKeyword Include
|
|
24 hi def link dtsLabel Label
|
4229
|
25 hi def link dtsNode Structure
|
3854
|
26 hi def link dtsReference Macro
|
|
27 hi def link dtsComment Comment
|
|
28 hi def link dtsCommentInner Comment
|