annotate runtime/syntax/dts.vim @ 23529:049b1e867137 v8.2.2307

patch 8.2.2307: a shell command in the vimrc causes terminal output Commit: https://github.com/vim/vim/commit/ebbf11c1198b7aec8a1a55f7231ecb4f1a432fa0 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 7 14:45:03 2021 +0100 patch 8.2.2307: a shell command in the vimrc causes terminal output Problem: A shell command in the vimrc causes terminal output. Solution: Do not call starttermcap() after a shell command if the termcap wasn't active before.
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 Jan 2021 15:00:05 +0100
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