annotate runtime/syntax/dts.vim @ 18387:2d4bed814a79

Added tag v8.1.2187 for changeset 105c6cf8b2669d8062c80d27f4acca8bac4f3dd0
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Oct 2019 21:15:04 +0200
parents 9521463d4fc1
children 840665e74421
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: dts/dtsi (device tree files)
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Maintainer: Daniel Mack <vim@zonque.org>
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4264
diff changeset
4 " Last Change: 2013 Oct 20
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 if exists("b:current_syntax")
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 finish
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 endif
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 syntax region dtsComment start="/\*" end="\*/"
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 syntax match dtsReference "&[[:alpha:][:digit:]_]\+"
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 syntax region dtsBinaryProperty start="\[" end="\]"
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 syntax match dtsStringProperty "\".*\""
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4264
diff changeset
14 syntax match dtsKeyword "/.\{-1,\}/"
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 syntax match dtsLabel "^[[:space:]]*[[:alpha:][:digit:]_]\+:"
4264
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4229
diff changeset
16 syntax match dtsNode /[[:alpha:][:digit:]-_]\+\(@[0-9a-fA-F]\+\|\)[[:space:]]*{/he=e-1
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 syntax region dtsCellProperty start="<" end=">" contains=dtsReference,dtsBinaryProperty,dtsStringProperty,dtsComment
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 syntax region dtsCommentInner start="/\*" end="\*/"
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4264
diff changeset
19 syntax match dtsCommentLine "//.*$"
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 hi def link dtsCellProperty Number
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 hi def link dtsBinaryProperty Number
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 hi def link dtsStringProperty String
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 hi def link dtsKeyword Include
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 hi def link dtsLabel Label
4229
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3854
diff changeset
26 hi def link dtsNode Structure
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 hi def link dtsReference Macro
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 hi def link dtsComment Comment
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 hi def link dtsCommentInner Comment
5425
9521463d4fc1 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4264
diff changeset
30 hi def link dtsCommentLine Comment