Minor simplification of in_comment function
This commit is contained in:
parent
7de478be74
commit
bb670948ac
@ -227,9 +227,7 @@ endfunction
|
|||||||
|
|
||||||
" {{{1 latex#util#in_comment
|
" {{{1 latex#util#in_comment
|
||||||
function! latex#util#in_comment(...)
|
function! latex#util#in_comment(...)
|
||||||
let line = a:0 >= 1 ? a:1 : line('.')
|
return synIDattr(synID(line('.'), col('.'), 0), "name") =~# '^texComment'
|
||||||
let col = a:0 >= 2 ? a:2 : col('.')
|
|
||||||
return synIDattr(synID(line, col, 0), "name") =~# '^texComment'
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" {{{1 latex#util#kpsewhich
|
" {{{1 latex#util#kpsewhich
|
||||||
|
Loading…
Reference in New Issue
Block a user