annotate runtime/syntax/tpp.vim @ 17680:55704f587945 v8.1.1837

patch 8.1.1837: popup test fails if clipboard is supported but not working commit https://github.com/vim/vim/commit/4999a7fb6585915b53888c930067b33c01674678 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 10 22:21:48 2019 +0200 patch 8.1.1837: popup test fails if clipboard is supported but not working Problem: Popup test fails if clipboard is supported but not working. Solution: Add the "clipboard_working" feature. Also use Check commands instead of "if" and "throw". And remove stray ch_logfile().
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Aug 2019 22:30:05 +0200
parents 9d3d7b0f4861
children cc751d944b7e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
1 " Vim syntax file
15334
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
2 " Language: tpp - Text Presentation Program
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
3 " Maintainer: Debian Vim Maintainers
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
4 " Former Maintainer: Gerfried Fuchs <alfie@ist.org>
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " Last Change: 2018 Dec 27
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
6 " URL: https://salsa.debian.org/vim-team/vim-debian/master/syntax/tpp.vim
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
7 " Filenames: *.tpp
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
8 " License: BSD
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
9 "
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
10 " XXX This file is in need of a new maintainer, Debian VIM Maintainers maintain
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
11 " it only because patches have been submitted for it by Debian users and the
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
12 " former maintainer was MIA (Missing In Action), taking over its
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
13 " maintenance was thus the only way to include those patches.
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
14 " If you care about this file, and have time to maintain it please do so!
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
15 "
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
16 " Comments are very welcome - but please make sure that you are commenting on
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
17 " the latest version of this file.
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
18 " SPAM is _NOT_ welcome - be ready to be reported!
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
19
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1621
diff changeset
20 " quit when a syntax file was already loaded
15334
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
21 if exists('b:current_syntax')
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
22 finish
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
23 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
24
15334
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
25 if !exists('main_syntax')
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
26 let main_syntax = 'tpp'
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
27 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
28
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
29
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
30 "" list of the legal switches/options
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
31 syn match tppAbstractOptionKey contained "^--\%(author\|title\|date\|footer\) *" nextgroup=tppString
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
32 syn match tppPageLocalOptionKey contained "^--\%(heading\|center\|right\|huge\|sethugefont\|exec\) *" nextgroup=tppString
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
33 syn match tppPageLocalSwitchKey contained "^--\%(horline\|-\|\%(begin\|end\)\%(\%(shell\)\?output\|slide\%(left\|right\|top\|bottom\)\)\|\%(bold\|rev\|ul\)\%(on\|off\)\|withborder\)"
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
34 syn match tppNewPageOptionKey contained "^--newpage *" nextgroup=tppString
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
35 syn match tppColorOptionKey contained "^--\%(\%(bg\|fg\)\?color\) *"
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
36 syn match tppTimeOptionKey contained "^--sleep *"
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
37
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
38 syn match tppString contained ".*"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
39 syn match tppColor contained "\%(white\|yellow\|red\|green\|blue\|cyan\|magenta\|black\|default\)"
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
40 syn match tppTime contained "\d\+"
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
41
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
42 syn region tppPageLocalSwitch start="^--" end="$" contains=tppPageLocalSwitchKey oneline
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
43 syn region tppColorOption start="^--\%(\%(bg\|fg\)\?color\)" end="$" contains=tppColorOptionKey,tppColor oneline
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
44 syn region tppTimeOption start="^--sleep" end="$" contains=tppTimeOptionKey,tppTime oneline
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
45 syn region tppNewPageOption start="^--newpage" end="$" contains=tppNewPageOptionKey oneline
36
125e80798a85 updated for version 7.0021
vimboss
parents: 33
diff changeset
46 syn region tppPageLocalOption start="^--\%(heading\|center\|right\|huge\|sethugefont\|exec\)" end="$" contains=tppPageLocalOptionKey oneline
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
47 syn region tppAbstractOption start="^--\%(author\|title\|date\|footer\)" end="$" contains=tppAbstractOptionKey oneline
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
48
15334
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
49 if main_syntax !=# 'sh'
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
50 " shell command
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1621
diff changeset
51 syn include @tppShExec syntax/sh.vim
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
52 unlet b:current_syntax
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
53
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
54 syn region shExec matchgroup=tppPageLocalOptionKey start='^--exec *' keepend end='$' contains=@tppShExec
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
55
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
56 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
57
36
125e80798a85 updated for version 7.0021
vimboss
parents: 33
diff changeset
58 syn match tppComment "^--##.*$"
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
59
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
60 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1621
diff changeset
61 " Only when an item doesn't have highlighting yet
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
62
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
63 hi def link tppAbstractOptionKey Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
64 hi def link tppPageLocalOptionKey Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
65 hi def link tppPageLocalSwitchKey Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
66 hi def link tppColorOptionKey Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
67 hi def link tppTimeOptionKey Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
68 hi def link tppNewPageOptionKey PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
69 hi def link tppString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
70 hi def link tppColor String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
71 hi def link tppTime Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
72 hi def link tppComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
73 hi def link tppAbstractOption Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
74 hi def link tppPageLocalOption Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
75 hi def link tppPageLocalSwitch Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
76 hi def link tppColorOption Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
77 hi def link tppNewPageOption Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
78 hi def link tppTimeOption Error
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
79
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
80
15334
9d3d7b0f4861 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
81 let b:current_syntax = 'tpp'
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
82
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
83 " vim: ts=8 sw=2