Mercurial > vim
comparison runtime/syntax/tpp.vim @ 15334:9d3d7b0f4861
Update runtime files
commit https://github.com/vim/vim/commit/4c05fa08c9739e307ddc88ac91ba6d208f1fd68e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 1 15:32:17 2019 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 01 Jan 2019 15:45:06 +0100 |
parents | 46763b01cd9a |
children | cc751d944b7e |
comparison
equal
deleted
inserted
replaced
15333:37502e631202 | 15334:9d3d7b0f4861 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: tpp - Text Presentation Program | 2 " Language: tpp - Text Presentation Program |
3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org> | 3 " Maintainer: Debian Vim Maintainers |
4 " Former Maintainer: Gerfried Fuchs <alfie@ist.org> | 4 " Former Maintainer: Gerfried Fuchs <alfie@ist.org> |
5 " Last Change: 2007-10-14 | 5 " Last Change: 2018 Dec 27 |
6 " URL: http://git.debian.org/?p=pkg-vim/vim.git;a=blob_plain;f=runtime/syntax/tpp.vim;hb=debian | 6 " URL: https://salsa.debian.org/vim-team/vim-debian/master/syntax/tpp.vim |
7 " Filenames: *.tpp | 7 " Filenames: *.tpp |
8 " License: BSD | 8 " License: BSD |
9 " | 9 " |
10 " XXX This file is in need of a new maintainer, Debian VIM Maintainers maintain | 10 " XXX This file is in need of a new maintainer, Debian VIM Maintainers maintain |
11 " it only because patches have been submitted for it by Debian users and the | 11 " it only because patches have been submitted for it by Debian users and the |
12 " former maintainer was MIA (Missing In Action), taking over its | 12 " former maintainer was MIA (Missing In Action), taking over its |
13 " maintenance was thus the only way to include those patches. | 13 " maintenance was thus the only way to include those patches. |
16 " Comments are very welcome - but please make sure that you are commenting on | 16 " Comments are very welcome - but please make sure that you are commenting on |
17 " the latest version of this file. | 17 " the latest version of this file. |
18 " SPAM is _NOT_ welcome - be ready to be reported! | 18 " SPAM is _NOT_ welcome - be ready to be reported! |
19 | 19 |
20 " quit when a syntax file was already loaded | 20 " quit when a syntax file was already loaded |
21 if exists("b:current_syntax") | 21 if exists('b:current_syntax') |
22 finish | 22 finish |
23 endif | 23 endif |
24 | 24 |
25 if !exists("main_syntax") | 25 if !exists('main_syntax') |
26 let main_syntax = 'tpp' | 26 let main_syntax = 'tpp' |
27 endif | 27 endif |
28 | 28 |
29 | 29 |
30 "" list of the legal switches/options | 30 "" list of the legal switches/options |
44 syn region tppTimeOption start="^--sleep" end="$" contains=tppTimeOptionKey,tppTime oneline | 44 syn region tppTimeOption start="^--sleep" end="$" contains=tppTimeOptionKey,tppTime oneline |
45 syn region tppNewPageOption start="^--newpage" end="$" contains=tppNewPageOptionKey oneline | 45 syn region tppNewPageOption start="^--newpage" end="$" contains=tppNewPageOptionKey oneline |
46 syn region tppPageLocalOption start="^--\%(heading\|center\|right\|huge\|sethugefont\|exec\)" end="$" contains=tppPageLocalOptionKey oneline | 46 syn region tppPageLocalOption start="^--\%(heading\|center\|right\|huge\|sethugefont\|exec\)" end="$" contains=tppPageLocalOptionKey oneline |
47 syn region tppAbstractOption start="^--\%(author\|title\|date\|footer\)" end="$" contains=tppAbstractOptionKey oneline | 47 syn region tppAbstractOption start="^--\%(author\|title\|date\|footer\)" end="$" contains=tppAbstractOptionKey oneline |
48 | 48 |
49 if main_syntax != 'sh' | 49 if main_syntax !=# 'sh' |
50 " shell command | 50 " shell command |
51 syn include @tppShExec syntax/sh.vim | 51 syn include @tppShExec syntax/sh.vim |
52 unlet b:current_syntax | 52 unlet b:current_syntax |
53 | 53 |
54 syn region shExec matchgroup=tppPageLocalOptionKey start='^--exec *' keepend end='$' contains=@tppShExec | 54 syn region shExec matchgroup=tppPageLocalOptionKey start='^--exec *' keepend end='$' contains=@tppShExec |
76 hi def link tppColorOption Error | 76 hi def link tppColorOption Error |
77 hi def link tppNewPageOption Error | 77 hi def link tppNewPageOption Error |
78 hi def link tppTimeOption Error | 78 hi def link tppTimeOption Error |
79 | 79 |
80 | 80 |
81 let b:current_syntax = "tpp" | 81 let b:current_syntax = 'tpp' |
82 | 82 |
83 " vim: ts=8 sw=2 | 83 " vim: ts=8 sw=2 |