Update 'autoload/arm/ft.vim'
This commit is contained in:
		@ -2,7 +2,9 @@ let s:cpo_save = &cpo
 | 
			
		||||
set cpo&vim
 | 
			
		||||
 | 
			
		||||
function! arm#ft#FTarm()
 | 
			
		||||
  let head = ' '.getline(1).' '.getline(2).' '.getline(3).' '.getline(4).
 | 
			
		||||
  let line1 = getline(1)
 | 
			
		||||
  let line2 = getline(2)
 | 
			
		||||
  let head = ' '.line1.' '.line2.' '.getline(3).' '.getline(4).
 | 
			
		||||
	\' '.getline(5).' '
 | 
			
		||||
  " Can't use setf, as we need to overrule the default filetype setting
 | 
			
		||||
  if matchstr(head, '\s\.arch\s\+armv4') != ''
 | 
			
		||||
@ -13,6 +15,8 @@ function! arm#ft#FTarm()
 | 
			
		||||
    set filetype=arm
 | 
			
		||||
  elseif matchstr(head, '\s\.cpu\s\+arm') != ''
 | 
			
		||||
    set filetype=arm
 | 
			
		||||
  elseif line1 ==# '@ armv7' || line2 ==# '@ armv7'
 | 
			
		||||
    set filetype=arm
 | 
			
		||||
  endif
 | 
			
		||||
endfunction
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user