codekingpro/portable-devtools
114k
1" Vim syntax file2" Copyright by Jan-Oliver Wagner3" Language: avenue4" Maintainer: Jan-Oliver Wagner <Jan-Oliver.Wagner@intevation.de>5" Last change: 2001 May 106 7" Avenue is the ArcView built-in language. ArcView is8" a desktop GIS by ESRI. Though it is a built-in language9" and a built-in editor is provided, the use of VIM increases10" development speed.11" I use some technologies to automatically load avenue scripts12" into ArcView.13 14" quit when a syntax file was already loaded15if exists("b:current_syntax")16 finish17endif18 19" Avenue is entirely case-insensitive.20syn case ignore21 22" The keywords23 24syn keyword aveStatement if then elseif else end break exit return25syn keyword aveStatement for each in continue while26 27" String28 29syn region aveString start=+"+ end=+"+30 31" Integer number32syn match aveNumber "[+-]\=\<[0-9]\+\>"33 34" Operator35 36syn keyword aveOperator or and max min xor mod by37" 'not' is a kind of a problem: It's an Operator as well as a method38" 'not' is only marked as an Operator if not applied as method39syn match aveOperator "[^\.]not[^a-zA-Z]"40 41" Variables42 43syn keyword aveFixVariables av nil self false true nl tab cr tab44syn match globalVariables "_[a-zA-Z][a-zA-Z0-9]*"45syn match aveVariables "[a-zA-Z][a-zA-Z0-9_]*"46syn match aveConst "#[A-Z][A-Z_]+"47 48" Comments49 50syn match aveComment "'.*"51 52" Typical Typos53 54" for C programmers:55syn match aveTypos "=="56syn match aveTypos "!="57 58" Define the default highlighting.59" Only when an item doesn't have highlighting+yet60 61hi def link aveStatement Statement62 63hi def link aveString String64hi def link aveNumber Number65 66hi def link aveFixVariables Special67hi def link aveVariables Identifier68hi def link globalVariables Special69hi def link aveConst Special70 71hi def link aveClassMethods Function72 73hi def link aveOperator Operator74hi def link aveComment Comment75 76hi def link aveTypos Error77 78 79let b:current_syntax = "ave"80 