codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: ELF3" Maintainer: Christian V. J. Brüssow <cvjb@cvjb.de>4" Last Change: Son 22 Jun 2003 20:43:14 CEST5" Filenames: *.ab,*.am6" URL: http://www.cvjb.de/comp/vim/elf.vim7" $Id: elf.vim,v 1.1 2004/06/13 19:52:27 vimboss Exp $8"9" ELF: Extensible Language Facility10" This is the Applix Inc., Macro and Builder programming language.11" It has nothing in common with the binary format called ELF.12 13" quit when a syntax file was already loaded14if exists("b:current_syntax")15 finish16endif17 18" Case does not matter19syn case ignore20 21" Environments22syn region elfEnvironment transparent matchgroup=Special start="{" matchgroup=Special end="}" contains=ALLBUT,elfBraceError23 24" Unmatched braces25syn match elfBraceError "}"26 27" All macros must have at least one of these definitions28syn keyword elfSpecial endmacro29syn region elfSpecial transparent matchgroup=Special start="^\(\(macro\)\|\(set\)\) \S\+$" matchgroup=Special end="^\(\(endmacro\)\|\(endset\)\)$" contains=ALLBUT,elfBraceError30 31" Preprocessor Commands32syn keyword elfPPCom define include33 34" Some keywords35syn keyword elfKeyword false true null36syn keyword elfKeyword var format object function endfunction37 38" Conditionals and loops39syn keyword elfConditional if else case of endcase for to next while until return goto40 41" All built-in elf macros end with an '@'42syn match elfMacro "[0-9_A-Za-z]\+@"43 44" Strings and characters45syn region elfString start=+"+ skip=+\\\\\|\\"+ end=+"+46 47" Numbers48syn match elfNumber "-\=\<[0-9]*\.\=[0-9_]\>"49 50" Comments51syn region elfComment start="/\*" end="\*/"52syn match elfComment "\'.*$"53 54syn sync ccomment elfComment55 56" Parenthesis57syn match elfParens "[\[\]()]"58 59" Punctuation60syn match elfPunct "[,;]"61 62" Define the default highlighting.63" Only when an item doesn't have highlighting yet64 65" The default methods for highlighting. Can be overridden later.66hi def link elfComment Comment67hi def link elfPPCom Include68hi def link elfKeyword Keyword69hi def link elfSpecial Special70hi def link elfEnvironment Special71hi def link elfBraceError Error72hi def link elfConditional Conditional73hi def link elfMacro Function74hi def link elfNumber Number75hi def link elfString String76hi def link elfParens Delimiter77hi def link elfPunct Delimiter78 79 80let b:current_syntax = "elf"81 82" vim:ts=8:sw=4:nocindent:smartindent:83 