Fix #642: Don't raise error in syntax file
This commit is contained in:
parent
eb1423d25c
commit
5e48e275cc
@ -4,12 +4,8 @@
|
|||||||
" Email: karl.yngve@gmail.com
|
" Email: karl.yngve@gmail.com
|
||||||
"
|
"
|
||||||
|
|
||||||
if !exists('b:current_syntax')
|
if exists('b:current_syntax') | finish | endif
|
||||||
let b:current_syntax = 'tex'
|
let b:current_syntax = 'tex'
|
||||||
elseif b:current_syntax !=# 'tex'
|
|
||||||
echoerr 'vimtex syntax error: please report issue!'
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Perform spell checking when there is no syntax
|
" Perform spell checking when there is no syntax
|
||||||
" - This will enable spell checking e.g. in toplevel of included files
|
" - This will enable spell checking e.g. in toplevel of included files
|
||||||
|
Loading…
Reference in New Issue
Block a user