annotate runtime/syntax/dts.vim @ 24458:1d126cb683c1 v8.2.2769

patch 8.2.2769: Modula-3 config files are not recognized Commit: https://github.com/vim/vim/commit/6bc00699c5049c40761d212bef1b490e2af7944c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 15 14:29:17 2021 +0200 patch 8.2.2769: Modula-3 config files are not recognized Problem: Modula-3 config files are not recognized. Solution: Add filetype patterns. (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Thu, 15 Apr 2021 14:30: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