From 48e07bc5014fecfdff24f75124a65634c216c9e2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 6 Sep 2019 15:54:31 +0200 Subject: Improve guard to support concatenated files --- compiler/eslint.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'compiler/eslint.vim') diff --git a/compiler/eslint.vim b/compiler/eslint.vim index 0aeb3a4c..1a10be93 100644 --- a/compiler/eslint.vim +++ b/compiler/eslint.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 " Vim compiler plugin " Language: JavaScript " Maintainer: vim-javascript community @@ -18,3 +15,4 @@ endif CompilerSet makeprg=eslint\ -f\ compact\ % CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m +endif -- cgit v1.2.3