From 504d7decbdef55d58e62217a0a54cbee2a0944cc Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 15 Jun 2022 09:20:32 +0200 Subject: vim-patch:8c1b8cb2e0b5 (#18966) Update runtime files https://github.com/vim/vim/commit/8c1b8cb2e0b52d0853f85c2096a2f22dbc57a788 --- runtime/syntax/tt2.vim | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'runtime/syntax/tt2.vim') diff --git a/runtime/syntax/tt2.vim b/runtime/syntax/tt2.vim index 6432b85a05..6826fb1581 100644 --- a/runtime/syntax/tt2.vim +++ b/runtime/syntax/tt2.vim @@ -1,9 +1,11 @@ +" Vim syntax file " Language: TT2 (Perl Template Toolkit) " Maintainer: vim-perl " Author: Moriki, Atsushi <4woods+vim@gmail.com> -" Homepage: http://github.com/vim-perl/vim-perl -" Bugs/requests: http://github.com/vim-perl/vim-perl/issues -" Last Change: 2015-04-25 +" Homepage: https://github.com/vim-perl/vim-perl +" Bugs/requests: https://github.com/vim-perl/vim-perl/issues +" License: Vim License (see :help license) +" Last Change: 2018 Mar 28 " " Installation: " put tt2.vim and tt2html.vim in to your syntax directory. @@ -42,9 +44,6 @@ " Release " 0.1.0 " Internal -" -" License: follow Vim :help uganda -" if !exists("b:tt2_syn_tags") let b:tt2_syn_tags = '\[% %]' @@ -95,7 +94,7 @@ if exists("b:tt2_syn_tags") "Include Perl syntax when 'PERL' 'RAWPERL' block if b:tt2_syn_inc_perl - syn include @Perl $VIMRUNTIME/syntax/perl.vim + syn include @Perl syntax/perl.vim exec 'syn region tt2_perlcode '. \ 'start=+\(\(RAW\)\=PERL\s*[-]\=' . s:ed . '\(\n\)\=\)\@<=+ ' . \ 'end=+' . s:st . '[-]\=\s*END+me=s-1 contains=@Perl keepend' @@ -122,7 +121,7 @@ else "Include Perl syntax when 'PERL' 'RAWPERL' block if b:tt2_syn_inc_perl - syn include @Perl $VIMRUNTIME/syntax/perl.vim + syn include @Perl syntax/perl.vim syn region tt2_perlcode \ start=+\(\(RAW\)\=PERL\s*[-]\=%]\(\n\)\=\)\@<=+ \ end=+\[%[-]\=\s*END+me=s-1 @@ -155,7 +154,7 @@ syn match tt2_operator "[!=<>]=\=\|&&\|||" contained syn match tt2_operator "\(\s\)\@<=_\(\s\)\@=" contained syn match tt2_operator "=>\|," contained syn match tt2_deref "\([[:alnum:]_)\]}]\s*\)\@<=\." contained -syn match tt2_comment +#.*$+ contained extend +syn match tt2_comment +#.*$+ contained syn match tt2_func +\<\I\w*\(\s*(\)\@=+ contained nextgroup=tt2_bracket_r skipempty skipwhite " syn region tt2_bracket_r start=+(+ end=+)+ contained contains=@tt2_statement_cluster keepend extend -- cgit