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 --- syntax/html.vim | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'syntax/html.vim') diff --git a/syntax/html.vim b/syntax/html.vim index a529b56b..61dacaa5 100644 --- a/syntax/html.vim +++ b/syntax/html.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Vim syntax file " Language: HTML (version 5.1) " SVG (SVG 1.1 Second Edition) @@ -192,10 +189,8 @@ syn keyword htmlArg contained scriptlevel scriptminsize scriptsize scriptsizemul syn keyword htmlArg contained stretchy subscriptshift superscriptshift symmetric thickmathspace thinmathspace type valign verythickmathspace verythinmathspace syn keyword htmlArg contained veryverythickmathspace veryverythinmathspace voffset width xref -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jinja') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jinja') == -1 " Vim syntax file " Language: HTML (version 5) " Maintainer: Rodrigo Machado @@ -286,3 +281,4 @@ syn match htmlArg contained "\" " Relationship Attributes syn match htmlArg contained "\" syn match htmlArg contained "\" +endif -- cgit v1.2.3