vim-patch:9.1.0290: filetype: xilinx files are not recognized (#28295)

Problem:  filetype: xilinx files are not recognized
Solution: Add a few xilinx specific file patterns,
          inspect lpr files for being xml/pascal
          (Wu, Zhenyu)

closes: vim/vim#14454

614691ceef

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
zeertzjq
2024-04-12 17:03:45 +08:00
committed by GitHub
parent 5aee587970
commit da3059b00f
2 changed files with 10 additions and 3 deletions

View File

@@ -582,6 +582,9 @@ local extension = {
['sublime-settings'] = 'json',
['sublime-workspace'] = 'json',
['json-patch'] = 'json',
bd = 'json',
bda = 'json',
xci = 'json',
json5 = 'json5',
jsonc = 'jsonc',
jsonl = 'jsonl',
@@ -770,7 +773,7 @@ local extension = {
papp = 'papp',
pxml = 'papp',
pas = 'pascal',
lpr = 'pascal',
lpr = detect_line1('<%?xml', 'xml', 'pascal'),
dpr = 'pascal',
pbtxt = 'pbtxt',
g = 'pccts',
@@ -1156,6 +1159,10 @@ local extension = {
csproj = 'xml',
wpl = 'xml',
xmi = 'xml',
xpr = 'xml',
xpfm = 'xml',
spfm = 'xml',
bxml = 'xml',
xpm = detect_line1('XPM2', 'xpm2', 'xpm'),
xpm2 = 'xpm2',
xqy = 'xquery',