changeset 36330:5fba4cb39820 draft

runtime(jinja): Support jinja syntax as secondary filetype Commit: https://github.com/vim/vim/commit/5e53fca76fd991d64d83429d74b573cc73116d66 Author: Gregory Anders <greg@gpanders.com> Date: Wed Oct 16 21:30:01 2024 +0200 runtime(jinja): Support jinja syntax as secondary filetype fixes: #https://github.com/vim/vim/issues/15880 closes: https://github.com/vim/vim/issues/15885 Signed-off-by: Gregory Anders <greg@gpanders.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 16 Oct 2024 21:45:06 +0200
parents 88290f0c3e4b
children 9d6b78cf204c
files runtime/syntax/jinja.vim
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/syntax/jinja.vim
+++ b/runtime/syntax/jinja.vim
@@ -2,8 +2,9 @@
 " Language: Jinja
 " Maintainer: Gregory Anders
 " Upstream: https://gitlab.com/HiPhish/jinja.vim
+" Last Change: 2024 Oct 16
 
-if exists('b:current_syntax')
+if exists('b:current_syntax') && b:current_syntax =~? 'jinja'
     finish
 endif