From 5e48e275cc062891bf2c1bf614c252a2cc5d5886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 20 Dec 2016 21:13:29 +0100 Subject: [PATCH] Fix #642: Don't raise error in syntax file --- after/syntax/tex.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim index a3f126c..f54f647 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -4,12 +4,8 @@ " Email: karl.yngve@gmail.com " -if !exists('b:current_syntax') - let b:current_syntax = 'tex' -elseif b:current_syntax !=# 'tex' - echoerr 'vimtex syntax error: please report issue!' - finish -endif +if exists('b:current_syntax') | finish | endif +let b:current_syntax = 'tex' " Perform spell checking when there is no syntax " - This will enable spell checking e.g. in toplevel of included files