annotate runtime/syntax/dts.vim @ 4690:9d97a0c045ef v7.3.1092

updated for version 7.3.1092 Problem: Can't build with regexp debugging. NFA debug output shows wrong pattern. Solution: Fix debugging code for recent changes. Add the pattern to the program.
author Bram Moolenaar <bram@vim.org>
date Sun, 02 Jun 2013 15:55:55 +0200
parents 2d1383658bb4
children 9521463d4fc1
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>
4264
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4229
diff changeset
4 " Last Change: 2013 Apr 05
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 "\".*\""
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 syntax match dtsKeyword "/.*/"
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="\*/"
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 hi def link dtsCellProperty Number
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 hi def link dtsBinaryProperty Number
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 hi def link dtsStringProperty String
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 hi def link dtsKeyword Include
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 hi def link dtsLabel Label
4229
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3854
diff changeset
25 hi def link dtsNode Structure
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 hi def link dtsReference Macro
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 hi def link dtsComment Comment
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 hi def link dtsCommentInner Comment