From 1c5af7edbebea8b8ccb9305c0d319d1a60a21669 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 8 Feb 2023 21:50:49 -0800 Subject: [PATCH] Update 'autoload/arm/ft.vim' --- autoload/arm/ft.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/arm/ft.vim b/autoload/arm/ft.vim index 505414a..d5a71ba 100644 --- a/autoload/arm/ft.vim +++ b/autoload/arm/ft.vim @@ -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