Mercurial > vim
annotate runtime/syntax/cheetah.vim @ 19868:a2fa2fc0f403 v8.2.0490
patch 8.2.0490: Win32: VTP doesn't respect 'restorescreen'
Commit: https://github.com/vim/vim/commit/0afdcf8601792ee751984265b49fc2ca6f8ea858
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 1 18:29:10 2020 +0200
patch 8.2.0490: Win32: VTP doesn't respect 'restorescreen'
Problem: Win32: VTP doesn't respect 'restorescreen'.
Solution: Use escape codes to switch to alternate screen. (Nobuhiro
Takasaki, closes #5872)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Apr 2020 18:30:03 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Cheetah template engine | |
3 " Maintainer: Max Ischenko <mfi@ukr.net> | |
4 " Last Change: 2003-05-11 | |
5 " | |
6 " Missing features: | |
7 " match invalid syntax, like bad variable ref. or unmatched closing tag | |
8 " PSP-style tags: <% .. %> (obsoleted feature) | |
9 " doc-strings and header comments (rarely used feature) | |
10 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
11 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
12 if exists("b:current_syntax") |
7 | 13 finish |
14 endif | |
15 | |
16 syntax case match | |
17 | |
18 syn keyword cheetahKeyword contained if else unless elif for in not | |
19 syn keyword cheetahKeyword contained while repeat break continue pass end | |
20 syn keyword cheetahKeyword contained set del attr def global include raw echo | |
21 syn keyword cheetahKeyword contained import from extends implements | |
22 syn keyword cheetahKeyword contained assert raise try catch finally | |
23 syn keyword cheetahKeyword contained errorCatcher breakpoint silent cache filter | |
24 syn match cheetahKeyword contained "\<compiler-settings\>" | |
25 | |
26 " Matches cached placeholders | |
27 syn match cheetahPlaceHolder "$\(\*[0-9.]\+[wdhms]\?\*\|\*\)\?\h\w*\(\.\h\w*\)*" display | |
28 syn match cheetahPlaceHolder "$\(\*[0-9.]\+[wdhms]\?\*\|\*\)\?{\h\w*\(\.\h\w*\)*}" display | |
29 syn match cheetahDirective "^\s*#[^#].*$" contains=cheetahPlaceHolder,cheetahKeyword,cheetahComment display | |
30 | |
31 syn match cheetahContinuation "\\$" | |
32 syn match cheetahComment "##.*$" display | |
33 syn region cheetahMultiLineComment start="#\*" end="\*#" | |
34 | |
35 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
36 " Only when an item doesn't have highlighting yet |
7 | 37 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link cheetahPlaceHolder Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link cheetahDirective PreCondit |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
40 hi def link cheetahKeyword Define |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link cheetahContinuation Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 hi def link cheetahComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
43 hi def link cheetahMultiLineComment Comment |
7 | 44 |
45 | |
46 let b:current_syntax = "cheetah" | |
47 |