Fix #310: Enable spell checking at toplevel
This commit is contained in:
parent
d802117c9c
commit
ec73e1661e
@ -11,6 +11,10 @@ elseif b:current_syntax !=# 'tex'
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Perform spell checking when there is no syntax
|
||||||
|
" - This will enable spell checking e.g. in toplevel of included files
|
||||||
|
syntax spell toplevel
|
||||||
|
|
||||||
" {{{1 Italic font, bold font and conceals
|
" {{{1 Italic font, bold font and conceals
|
||||||
|
|
||||||
let conceal = (has('conceal') && get(g:, 'tex_conceal', 'b') =~# 'b')
|
let conceal = (has('conceal') && get(g:, 'tex_conceal', 'b') =~# 'b')
|
||||||
|
5
test/issue/310/main.tex
Normal file
5
test/issue/310/main.tex
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
\documentclass{minimal}
|
||||||
|
\begin{document}
|
||||||
|
This is corrrectly spell cheked.
|
||||||
|
\input{subfile.tex}
|
||||||
|
\end{document}
|
2
test/issue/310/subfile.tex
Normal file
2
test/issue/310/subfile.tex
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
This ins't
|
||||||
|
% but coments are
|
Loading…
x
Reference in New Issue
Block a user