Mercurial > vim
comparison runtime/syntax/dts.vim @ 3854:aa51675adf7e
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 05 Oct 2012 22:26:30 +0200 |
parents | |
children | fa4089df54bc |
comparison
equal
deleted
inserted
replaced
3853:0769b84adf93 | 3854:aa51675adf7e |
---|---|
1 " Vim syntax file | |
2 " Language: dts/dtsi (device tree files) | |
3 " Maintainer: Daniel Mack <vim@zonque.org> | |
4 " Last Change: 2012 Oct 04 | |
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:]_]\+:" | |
16 syntax region dtsCellProperty start="<" end=">" contains=dtsReference,dtsBinaryProperty,dtsStringProperty,dtsComment | |
17 syntax region dtsCommentInner start="/\*" end="\*/" | |
18 | |
19 hi def link dtsCellProperty Number | |
20 hi def link dtsBinaryProperty Number | |
21 hi def link dtsStringProperty String | |
22 hi def link dtsKeyword Include | |
23 hi def link dtsLabel Label | |
24 hi def link dtsReference Macro | |
25 hi def link dtsComment Comment | |
26 hi def link dtsCommentInner Comment |