Add Arduino to list of C-like languages

Add 'arduino' filetype to list of C-like languages. This is needed in
order to avoid mix-indent-file warnings when using hard tabs for
indentation in Arduino source files (*.ino, *.pde) containing top level
block comments with leading space before a '*'.

Similar to: 460ed02864
Original fix: 8fde76dd63
This commit is contained in:
Mangero
2018-06-17 22:50:36 +02:00
parent 45c9621157
commit a141918faa
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ endfunction
function! s:check_mixed_indent_file()
let c_like_langs = get(g:, 'airline#extensions#c_like_langs',
\ [ 'c', 'cpp', 'cuda', 'go', 'javascript', 'ld', 'php' ])
\ [ 'arduino', 'c', 'cpp', 'cuda', 'go', 'javascript', 'ld', 'php' ])
if index(c_like_langs, &ft) > -1
" for C-like languages: allow /** */ comment style with one space before the '*'
let head_spc = '\v(^ +\*@!)'