mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	vim-patch:9.1.0250: filetype: ldscripts cannot be recognized
Problem:  filetype: ldscripts cannot be recognized
Solution: Detect '*/ldscripts/*' as ld
          (Wu, Zhenyu)
closes: vim/vim#14371
4c7098b00a
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
			
			
This commit is contained in:
		@@ -1775,6 +1775,7 @@ local pattern = {
 | 
				
			|||||||
  ['.*%.[Ss][Uu][Bb]'] = 'krl',
 | 
					  ['.*%.[Ss][Uu][Bb]'] = 'krl',
 | 
				
			||||||
  ['lilo%.conf.*'] = starsetf('lilo'),
 | 
					  ['lilo%.conf.*'] = starsetf('lilo'),
 | 
				
			||||||
  ['.*/etc/logcheck/.*%.d.*/.*'] = starsetf('logcheck'),
 | 
					  ['.*/etc/logcheck/.*%.d.*/.*'] = starsetf('logcheck'),
 | 
				
			||||||
 | 
					  ['.*/ldscripts/.*'] = 'ld',
 | 
				
			||||||
  ['.*lftp/rc'] = 'lftp',
 | 
					  ['.*lftp/rc'] = 'lftp',
 | 
				
			||||||
  ['.*/%.libao'] = 'libao',
 | 
					  ['.*/%.libao'] = 'libao',
 | 
				
			||||||
  ['.*/etc/libao%.conf'] = 'libao',
 | 
					  ['.*/etc/libao%.conf'] = 'libao',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -358,7 +358,7 @@ func s:GetFilenameChecks() abort
 | 
				
			|||||||
    \ 'kwt': ['file.k'],
 | 
					    \ 'kwt': ['file.k'],
 | 
				
			||||||
    \ 'lace': ['file.ace', 'file.ACE'],
 | 
					    \ 'lace': ['file.ace', 'file.ACE'],
 | 
				
			||||||
    \ 'latte': ['file.latte', 'file.lte'],
 | 
					    \ 'latte': ['file.latte', 'file.lte'],
 | 
				
			||||||
    \ 'ld': ['file.ld'],
 | 
					    \ 'ld': ['file.ld', 'any/usr/lib/aarch64-xilinx-linux/ldscripts/aarch64elf32b.x'],
 | 
				
			||||||
    \ 'ldif': ['file.ldif'],
 | 
					    \ 'ldif': ['file.ldif'],
 | 
				
			||||||
    \ 'lean': ['file.lean'],
 | 
					    \ 'lean': ['file.lean'],
 | 
				
			||||||
    \ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],
 | 
					    \ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user