Minor simplification of in_comment function

This commit is contained in:
Karl Yngve Lervåg 2014-03-13 10:49:40 +01:00
parent 7de478be74
commit bb670948ac

View File

@ -227,9 +227,7 @@ endfunction
" {{{1 latex#util#in_comment
function! latex#util#in_comment(...)
let line = a:0 >= 1 ? a:1 : line('.')
let col = a:0 >= 2 ? a:2 : col('.')
return synIDattr(synID(line, col, 0), "name") =~# '^texComment'
return synIDattr(synID(line('.'), col('.'), 0), "name") =~# '^texComment'
endfunction
" {{{1 latex#util#kpsewhich