codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Sather/pSather3" Maintainer: Claudio Fleiner <claudio@fleiner.com>4" URL: http://www.fleiner.com/vim/syntax/sather.vim5" Last Change: 2003 May 116 7" Sather is a OO-language developped at the International Computer Science8" Institute (ICSI) in Berkeley, CA. pSather is a parallel extension to Sather.9" Homepage: http://www.icsi.berkeley.edu/~sather10" Sather files use .sa as suffix11 12" quit when a syntax file was already loaded13if exists("b:current_syntax")14 finish15endif16 17" keyword definitions18syn keyword satherExternal extern19syn keyword satherBranch break continue20syn keyword satherLabel when then21syn keyword satherConditional if else elsif end case typecase assert with22syn match satherConditional "near$"23syn match satherConditional "far$"24syn match satherConditional "near *[^(]"he=e-125syn match satherConditional "far *[^(]"he=e-126syn keyword satherSynchronize lock guard sync27syn keyword satherRepeat loop parloop do28syn match satherRepeat "while!"29syn match satherRepeat "break!"30syn match satherRepeat "until!"31syn keyword satherBoolValue true false32syn keyword satherValue self here cluster33syn keyword satherOperator new "== != & ^ | && ||34syn keyword satherOperator and or not35syn match satherOperator "[#!]"36syn match satherOperator ":-"37syn keyword satherType void attr where38syn match satherType "near *("he=e-139syn match satherType "far *("he=e-140syn keyword satherStatement return41syn keyword satherStorageClass static const42syn keyword satherExceptions try raise catch43syn keyword satherMethodDecl is pre post44syn keyword satherClassDecl abstract value class include45syn keyword satherScopeDecl public private readonly46 47 48syn match satherSpecial contained "\\\d\d\d\|\\."49syn region satherString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=satherSpecial50syn match satherCharacter "'[^\\]'"51syn match satherSpecialCharacter "'\\.'"52syn match satherNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"53syn match satherCommentSkip contained "^\s*\*\($\|\s\+\)"54syn region satherComment2String contained start=+"+ skip=+\\\\\|\\"+ end=+$\|"+ contains=satherSpecial55syn match satherComment "--.*" contains=satherComment2String,satherCharacter,satherNumber56 57 58syn sync ccomment satherComment59 60" Define the default highlighting.61" Only when an item doesn't have highlighting yet62 63hi def link satherBranch satherStatement64hi def link satherLabel satherStatement65hi def link satherConditional satherStatement66hi def link satherSynchronize satherStatement67hi def link satherRepeat satherStatement68hi def link satherExceptions satherStatement69hi def link satherStorageClass satherDeclarative70hi def link satherMethodDecl satherDeclarative71hi def link satherClassDecl satherDeclarative72hi def link satherScopeDecl satherDeclarative73hi def link satherBoolValue satherValue74hi def link satherSpecial satherValue75hi def link satherString satherValue76hi def link satherCharacter satherValue77hi def link satherSpecialCharacter satherValue78hi def link satherNumber satherValue79hi def link satherStatement Statement80hi def link satherOperator Statement81hi def link satherComment Comment82hi def link satherType Type83hi def link satherValue String84hi def link satherString String85hi def link satherSpecial String86hi def link satherCharacter String87hi def link satherDeclarative Type88hi def link satherExternal PreCondit89 90let b:current_syntax = "sather"91 92" vim: ts=893 