annotate runtime/syntax/ave.vim @ 980:e1efa991c2b6 v7.0.106

updated for version 7.0-106
author vimboss
date Thu, 14 Sep 2006 11:35:25 +0000
parents 3fc0f57ecb91
children 43efa4f5a8ea
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 " Copyright by Jan-Oliver Wagner
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Language: avenue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: Jan-Oliver Wagner <Jan-Oliver.Wagner@intevation.de>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last change: 2001 May 10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Avenue is the ArcView built-in language. ArcView is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " a desktop GIS by ESRI. Though it is a built-in language
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " and a built-in editor is provided, the use of VIM increases
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " development speed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " I use some technologies to automatically load avenue scripts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " into ArcView.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Avenue is entirely case-insensitive.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " The keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword aveStatement if then elseif else end break exit return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword aveStatement for each in continue while
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region aveString start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Integer number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match aveNumber "[+-]\=\<[0-9]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword aveOperator or and max min xor mod by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " 'not' is a kind of a problem: Its an Operator as well as a method
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " 'not' is only marked as an Operator if not applied as method
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match aveOperator "[^\.]not[^a-zA-Z]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword aveFixVariables av nil self false true nl tab cr tab
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match globalVariables "_[a-zA-Z][a-zA-Z0-9]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match aveVariables "[a-zA-Z][a-zA-Z0-9_]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match aveConst "#[A-Z][A-Z_]+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match aveComment "'.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " Typical Typos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " for C programmers:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match aveTypos "=="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match aveTypos "!="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " For version 5.8 and later: only when an item doesn't have highlighting+yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 if version >= 508 || !exists("did_ave_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 let did_ave_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink aveStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink aveString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink aveNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink aveFixVariables Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink aveVariables Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink globalVariables Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink aveConst Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink aveClassMethods Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink aveOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink aveComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink aveTypos Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 let b:current_syntax = "ave"