annotate runtime/syntax/ppwiz.vim @ 27749:73293bbd1e5c

Added tag v8.2.4400 for changeset 49b667252942ca1af2c023067330e4b2f58ba79d
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Feb 2022 19:00:05 +0100
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: PPWizard (preprocessor by Dennis Bareis)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Stefan Schwarzer <s.schwarzer@ndh.net>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.ndh.net/home/sschwarzer/download/ppwiz.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Filename: ppwiz.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Remove old syntax stuff
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
9 " 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
10 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 if !exists("ppwiz_highlight_defs")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 let ppwiz_highlight_defs = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 if !exists("ppwiz_with_html")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 let ppwiz_with_html = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match ppwizComment "^;.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match ppwizComment ";;.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " HTML
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if ppwiz_with_html > 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region ppwizHTML start="<" end=">" contains=ppwizArg,ppwizMacro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match ppwizHTML "\&\w\+;"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " define, evaluate etc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 if ppwiz_highlight_defs == 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match ppwizDef "^\s*\#\S\+\s\+\S\+" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match ppwizDef "^\s*\#\(if\|else\|endif\)" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match ppwizDef "^\s*\#\({\|break\|continue\|}\)" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " elseif ppwiz_highlight_defs == 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " syn region ppwizDef start="^\s*\#" end="[^\\]$" end="^$" keepend contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn region ppwizDef start="^\s*\#" end="[^\\]$" end="^$" keepend contains=ppwizCont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match ppwizError "\s.\\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match ppwizCont "\s\([+\-%]\|\)\\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " macros to execute
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn region ppwizMacro start="<\$" end=">" contains=@ppwizArgVal,ppwizCont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " macro arguments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn region ppwizArg start="{" end="}" contains=ppwizEqual,ppwizString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match ppwizEqual "=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match ppwizOperator "<>\|=\|<\|>" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " standard variables (builtin)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn region ppwizStdVar start="<?[^?]" end=">" contains=@ppwizArgVal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Rexx variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn region ppwizRexxVar start="<??" end=">" contains=@ppwizArgVal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " Constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn region ppwizString start=+"+ end=+"+ contained contains=ppwizMacro,ppwizArg,ppwizHTML,ppwizCont,ppwizStdVar,ppwizRexxVar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn region ppwizString start=+'+ end=+'+ contained contains=ppwizMacro,ppwizArg,ppwizHTML,ppwizCont,ppwizStdVar,ppwizRexxVar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match ppwizInteger "\d\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " Clusters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn cluster ppwizArgVal add=ppwizString,ppwizInteger
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
63 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
65 hi def link ppwizSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
66 hi def link ppwizEqual ppwizSpecial
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
67 hi def link ppwizOperator ppwizSpecial
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
68 hi def link ppwizComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
69 hi def link ppwizDef PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
70 hi def link ppwizMacro Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
71 hi def link ppwizArg Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
72 hi def link ppwizStdVar Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
73 hi def link ppwizRexxVar Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
74 hi def link ppwizString Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
75 hi def link ppwizInteger Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
76 hi def link ppwizCont ppwizSpecial
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
77 hi def link ppwizError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
78 hi def link ppwizHTML Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 let b:current_syntax = "ppwiz"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 " vim: ts=4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84