forked from aniani/vim
patch 9.1.0290: filetype: xilinx files are not recognized
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: #14454
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
61ee833a50
commit
614691ceef
@@ -1588,8 +1588,16 @@ au BufNewFile,BufRead *.pas setf pascal
|
|||||||
" Pascal or Puppet manifest
|
" Pascal or Puppet manifest
|
||||||
au BufNewFile,BufRead *.pp call dist#ft#FTpp()
|
au BufNewFile,BufRead *.pp call dist#ft#FTpp()
|
||||||
|
|
||||||
" Delphi or Lazarus program file
|
" Delphi
|
||||||
au BufNewFile,BufRead *.dpr,*.lpr setf pascal
|
au BufNewFile,BufRead *.dpr setf pascal
|
||||||
|
|
||||||
|
" Xilinx labtools project file or Lazarus program file
|
||||||
|
au BufNewFile,BufRead *.lpr
|
||||||
|
\ if getline(1) =~# "<?xml" |
|
||||||
|
\ setf xml |
|
||||||
|
\ else |
|
||||||
|
\ setf pascal |
|
||||||
|
\ endif
|
||||||
|
|
||||||
" Free Pascal makefile definition file
|
" Free Pascal makefile definition file
|
||||||
au BufNewFile,BufRead *.fpc setf fpcmake
|
au BufNewFile,BufRead *.fpc setf fpcmake
|
||||||
@@ -2607,6 +2615,10 @@ au BufNewFile,BufRead xorg.conf,xorg.conf-4 let b:xf86conf_xfree86_version = 4 |
|
|||||||
" Xinetd conf
|
" Xinetd conf
|
||||||
au BufNewFile,BufRead */etc/xinetd.conf setf xinetd
|
au BufNewFile,BufRead */etc/xinetd.conf setf xinetd
|
||||||
|
|
||||||
|
" Xilinx Vivado/Vitis project files and block design files
|
||||||
|
au BufNewFile,BufRead *.xpr,*.xpfm,*.spfm,*.bxml setf xml
|
||||||
|
au BufNewFile,BufRead *.bd,*.bda,*.xci setf json
|
||||||
|
|
||||||
" XS Perl extension interface language
|
" XS Perl extension interface language
|
||||||
au BufNewFile,BufRead *.xs setf xs
|
au BufNewFile,BufRead *.xs setf xs
|
||||||
|
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
jq: ['file.jq'],
|
jq: ['file.jq'],
|
||||||
jovial: ['file.jov', 'file.j73', 'file.jovial'],
|
jovial: ['file.jov', 'file.j73', 'file.jovial'],
|
||||||
jproperties: ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
|
jproperties: ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
|
||||||
json: ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', 'file.jupyterlab-settings', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf', 'file.sublime-project', 'file.sublime-settings', 'file.sublime-workspace'],
|
json: ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', 'file.jupyterlab-settings', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf', 'file.sublime-project', 'file.sublime-settings', 'file.sublime-workspace', 'file.bd', 'file.bda', 'file.xci'],
|
||||||
json5: ['file.json5'],
|
json5: ['file.json5'],
|
||||||
jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc'],
|
jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc'],
|
||||||
jsonl: ['file.jsonl'],
|
jsonl: ['file.jsonl'],
|
||||||
@@ -815,7 +815,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
xinetd: ['/etc/xinetd.conf', '/etc/xinetd.d/file', 'any/etc/xinetd.conf', 'any/etc/xinetd.d/file'],
|
xinetd: ['/etc/xinetd.conf', '/etc/xinetd.d/file', 'any/etc/xinetd.conf', 'any/etc/xinetd.d/file'],
|
||||||
xkb: ['/usr/share/X11/xkb/compat/pc', '/usr/share/X11/xkb/geometry/pc', '/usr/share/X11/xkb/keycodes/evdev', '/usr/share/X11/xkb/symbols/pc', '/usr/share/X11/xkb/types/pc'],
|
xkb: ['/usr/share/X11/xkb/compat/pc', '/usr/share/X11/xkb/geometry/pc', '/usr/share/X11/xkb/keycodes/evdev', '/usr/share/X11/xkb/symbols/pc', '/usr/share/X11/xkb/types/pc'],
|
||||||
xmath: ['file.msc', 'file.msf'],
|
xmath: ['file.msc', 'file.msf'],
|
||||||
xml: ['/etc/blkid.tab', '/etc/blkid.tab.old', 'file.xmi', 'file.csproj', 'file.csproj.user', 'file.fsproj', 'file.fsproj.user', 'file.vbproj', 'file.vbproj.user', 'file.ui', 'file.tpm', '/etc/xdg/menus/file.menu', 'fglrxrc', 'file.xlf', 'file.xliff', 'file.xul', 'file.wsdl', 'file.wpl', 'any/etc/blkid.tab', 'any/etc/blkid.tab.old', 'any/etc/xdg/menus/file.menu', 'file.atom', 'file.rss', 'file.cdxml', 'file.psc1', 'file.mpd', 'fonts.conf'],
|
xml: ['/etc/blkid.tab', '/etc/blkid.tab.old', 'file.xmi', 'file.csproj', 'file.csproj.user', 'file.fsproj', 'file.fsproj.user', 'file.vbproj', 'file.vbproj.user', 'file.ui', 'file.tpm', '/etc/xdg/menus/file.menu', 'fglrxrc', 'file.xlf', 'file.xliff', 'file.xul', 'file.wsdl', 'file.wpl', 'any/etc/blkid.tab', 'any/etc/blkid.tab.old', 'any/etc/xdg/menus/file.menu', 'file.atom', 'file.rss', 'file.cdxml', 'file.psc1', 'file.mpd', 'fonts.conf', 'file.xpr', 'file.xpfm', 'file.spfm', 'file.bxml'],
|
||||||
xmodmap: ['anyXmodmap', 'Xmodmap', 'some-Xmodmap', 'some-xmodmap', 'some-xmodmap-file', 'xmodmap', 'xmodmap-file'],
|
xmodmap: ['anyXmodmap', 'Xmodmap', 'some-Xmodmap', 'some-xmodmap', 'some-xmodmap-file', 'xmodmap', 'xmodmap-file'],
|
||||||
xpm: ['file.xpm'],
|
xpm: ['file.xpm'],
|
||||||
xpm2: ['file.xpm2'],
|
xpm2: ['file.xpm2'],
|
||||||
|
|||||||
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
290,
|
||||||
/**/
|
/**/
|
||||||
289,
|
289,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user