Mercurial > vim
annotate runtime/syntax/tpp.vim @ 12064:407a475c67fd v8.0.0912
patch 8.0.0912: cannot run a job in a hidden terminal
commit https://github.com/vim/vim/commit/8cad930a259a05a95c7d0c527a5881d5f9a59057
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 12 14:32:32 2017 +0200
patch 8.0.0912: cannot run a job in a hidden terminal
Problem: Cannot run a job in a hidden terminal.
Solution: Add option "hidden" and ++hidden.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 12 Aug 2017 14:45:04 +0200 |
parents | 46763b01cd9a |
children | 9d3d7b0f4861 |
rev | line source |
---|---|
33 | 1 " Vim syntax file |
2 " Language: tpp - Text Presentation Program | |
1621 | 3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org> |
835 | 4 " Former Maintainer: Gerfried Fuchs <alfie@ist.org> |
1621 | 5 " Last Change: 2007-10-14 |
6 " URL: http://git.debian.org/?p=pkg-vim/vim.git;a=blob_plain;f=runtime/syntax/tpp.vim;hb=debian | |
33 | 7 " Filenames: *.tpp |
8 " License: BSD | |
9 " | |
835 | 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 | |
12 " former maintainer was MIA (Missing In Action), taking over its | |
13 " maintenance was thus the only way to include those patches. | |
14 " If you care about this file, and have time to maintain it please do so! | |
15 " | |
33 | 16 " Comments are very welcome - but please make sure that you are commenting on |
17 " the latest version of this file. | |
18 " SPAM is _NOT_ welcome - be ready to be reported! | |
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 |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1621
diff
changeset
|
21 if exists("b:current_syntax") |
33 | 22 finish |
23 endif | |
24 | |
25 if !exists("main_syntax") | |
26 let main_syntax = 'tpp' | |
27 endif | |
28 | |
29 | |
30 "" list of the legal switches/options | |
835 | 31 syn match tppAbstractOptionKey contained "^--\%(author\|title\|date\|footer\) *" nextgroup=tppString |
32 syn match tppPageLocalOptionKey contained "^--\%(heading\|center\|right\|huge\|sethugefont\|exec\) *" nextgroup=tppString | |
33 | 33 syn match tppPageLocalSwitchKey contained "^--\%(horline\|-\|\%(begin\|end\)\%(\%(shell\)\?output\|slide\%(left\|right\|top\|bottom\)\)\|\%(bold\|rev\|ul\)\%(on\|off\)\|withborder\)" |
835 | 34 syn match tppNewPageOptionKey contained "^--newpage *" nextgroup=tppString |
33 | 35 syn match tppColorOptionKey contained "^--\%(\%(bg\|fg\)\?color\) *" |
36 syn match tppTimeOptionKey contained "^--sleep *" | |
37 | |
835 | 38 syn match tppString contained ".*" |
39 syn match tppColor contained "\%(white\|yellow\|red\|green\|blue\|cyan\|magenta\|black\|default\)" | |
33 | 40 syn match tppTime contained "\d\+" |
41 | |
42 syn region tppPageLocalSwitch start="^--" end="$" contains=tppPageLocalSwitchKey oneline | |
43 syn region tppColorOption start="^--\%(\%(bg\|fg\)\?color\)" end="$" contains=tppColorOptionKey,tppColor oneline | |
44 syn region tppTimeOption start="^--sleep" end="$" contains=tppTimeOptionKey,tppTime oneline | |
45 syn region tppNewPageOption start="^--newpage" end="$" contains=tppNewPageOptionKey oneline | |
36 | 46 syn region tppPageLocalOption start="^--\%(heading\|center\|right\|huge\|sethugefont\|exec\)" end="$" contains=tppPageLocalOptionKey oneline |
835 | 47 syn region tppAbstractOption start="^--\%(author\|title\|date\|footer\)" end="$" contains=tppAbstractOptionKey oneline |
33 | 48 |
49 if main_syntax != 'sh' | |
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 | 52 unlet b:current_syntax |
53 | |
54 syn region shExec matchgroup=tppPageLocalOptionKey start='^--exec *' keepend end='$' contains=@tppShExec | |
55 | |
56 endif | |
57 | |
36 | 58 syn match tppComment "^--##.*$" |
33 | 59 |
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 | 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 | 79 |
80 | |
81 let b:current_syntax = "tpp" | |
82 | |
83 " vim: ts=8 sw=2 |