annotate runtime/syntax/tpp.vim @ 9139:ddca37101ffb v7.4.1853

commit https://github.com/vim/vim/commit/28ae5773422c2cf61aaf8d9d2b9fae70642d6a33 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 28 14:16:10 2016 +0200 patch 7.4.1853 Problem: Crash when job and channel are in the same dict while using partials. (Luc Hermitte) Solution: Do not decrement the channel reference count too early.
author Christian Brabandt <cb@256bit.org>
date Sat, 28 May 2016 14:30:05 +0200
parents 82b5078be2dd
children 43efa4f5a8ea
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
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
2 " Language: tpp - Text Presentation Program
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 835
diff changeset
3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
4 " Former Maintainer: Gerfried Fuchs <alfie@ist.org>
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 835
diff changeset
5 " Last Change: 2007-10-14
82b5078be2dd updated for version 7.2a
vimboss
parents: 835
diff changeset
6 " URL: http://git.debian.org/?p=pkg-vim/vim.git;a=blob_plain;f=runtime/syntax/tpp.vim;hb=debian
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
7 " Filenames: *.tpp
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
8 " License: BSD
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
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
20 " For version 5.x: Clear all syntax items
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
21 " For version 6.x: Quit when a syntax file was already loaded
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
22 if version < 600
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
23 syntax clear
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
24 elseif exists("b:current_syntax")
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
25 finish
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
26 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
27
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
28 if !exists("main_syntax")
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
29 let main_syntax = 'tpp'
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
30 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
31
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
32
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
33 "" list of the legal switches/options
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
34 syn match tppAbstractOptionKey contained "^--\%(author\|title\|date\|footer\) *" nextgroup=tppString
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
35 syn match tppPageLocalOptionKey contained "^--\%(heading\|center\|right\|huge\|sethugefont\|exec\) *" nextgroup=tppString
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
36 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
37 syn match tppNewPageOptionKey contained "^--newpage *" nextgroup=tppString
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
38 syn match tppColorOptionKey contained "^--\%(\%(bg\|fg\)\?color\) *"
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
39 syn match tppTimeOptionKey contained "^--sleep *"
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
40
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
41 syn match tppString contained ".*"
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
42 syn match tppColor contained "\%(white\|yellow\|red\|green\|blue\|cyan\|magenta\|black\|default\)"
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
43 syn match tppTime contained "\d\+"
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
44
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
45 syn region tppPageLocalSwitch start="^--" end="$" contains=tppPageLocalSwitchKey oneline
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
46 syn region tppColorOption start="^--\%(\%(bg\|fg\)\?color\)" end="$" contains=tppColorOptionKey,tppColor oneline
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
47 syn region tppTimeOption start="^--sleep" end="$" contains=tppTimeOptionKey,tppTime oneline
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
48 syn region tppNewPageOption start="^--newpage" end="$" contains=tppNewPageOptionKey oneline
36
125e80798a85 updated for version 7.0021
vimboss
parents: 33
diff changeset
49 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
50 syn region tppAbstractOption start="^--\%(author\|title\|date\|footer\)" end="$" contains=tppAbstractOptionKey oneline
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
51
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
52 if main_syntax != 'sh'
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
53 " shell command
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
54 if version < 600
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
55 syn include @tppShExec <sfile>:p:h/sh.vim
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
56 else
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
57 syn include @tppShExec syntax/sh.vim
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
58 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
59 unlet b:current_syntax
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
60
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
61 syn region shExec matchgroup=tppPageLocalOptionKey start='^--exec *' keepend end='$' contains=@tppShExec
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
62
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
63 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
64
36
125e80798a85 updated for version 7.0021
vimboss
parents: 33
diff changeset
65 syn match tppComment "^--##.*$"
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
66
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
67 " Define the default highlighting.
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
68 " For version 5.7 and earlier: only when not done already
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
69 " For version 5.8 and later: only when an item doesn't have highlighting yet
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
70 if version >= 508 || !exists("did_tpp_syn_inits")
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
71 if version < 508
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
72 let did_tpp_syn_inits = 1
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
73 command -nargs=+ HiLink hi link <args>
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
74 else
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
75 command -nargs=+ HiLink hi def link <args>
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
76 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
77
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
78 HiLink tppAbstractOptionKey Special
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
79 HiLink tppPageLocalOptionKey Keyword
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
80 HiLink tppPageLocalSwitchKey Keyword
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
81 HiLink tppColorOptionKey Keyword
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
82 HiLink tppTimeOptionKey Comment
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
83 HiLink tppNewPageOptionKey PreProc
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 36
diff changeset
84 HiLink tppString String
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
85 HiLink tppColor String
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
86 HiLink tppTime Number
36
125e80798a85 updated for version 7.0021
vimboss
parents: 33
diff changeset
87 HiLink tppComment Comment
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
88 HiLink tppAbstractOption Error
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
89 HiLink tppPageLocalOption Error
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
90 HiLink tppPageLocalSwitch Error
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
91 HiLink tppColorOption Error
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
92 HiLink tppNewPageOption Error
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
93 HiLink tppTimeOption Error
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
94
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
95 delcommand HiLink
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
96 endif
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
97
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
98 let b:current_syntax = "tpp"
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
99
f6033dcbaf31 updated for version 7.0020
vimboss
parents:
diff changeset
100 " vim: ts=8 sw=2