" Vim syntax file " Language: SML " Maintainers: Fabrizio Zeno Cornelli " Last change: 2000 May 18 " There are two sets of highlighting in here: " If the "sml_highlighting_clean" variable exists, it is rather sparse. " Otherwise you get more highlighting. " Remove any old syntax stuff hanging around. syn clear " Sml is case sensitive. syn case match " Very simple highlighting for comments, clause heads and " character codes. It respects sml strings and atoms. syn region smlComment start=+(\*+ end=+\*)+ syn keyword smlKeyword fun val let in end syn match smlCharCode +0'\\\=.+ syn region smlString start=+"+ skip=+\\"+ end=+"+ syn region smlAtom start=+'+ skip=+\\'+ end=+'+ if !exists("sml_highlighting_clean") " some keywords " some common predicates are also highlighted as keywords " is there a better solution? syn keyword smlKeyword Real Integer syn match smlOperator ">=\|=\|<\|>" syn match smlNumber "\<[0123456789]*\>" syn match smlCommentError "\*/" syn match smlSpecialCharacter ";" endif syn sync ccomment maxlines=50 if !exists("did_sml_syntax_inits") let did_sml_syntax_inits = 1 " The default methods for highlighting. Can be overridden later hi link smlComment Comment hi link smlCharCode Special if exists ("sml_highlighting_clean") hi link smlKeyword Statement else hi link smlKeyword Keyword hi link smlSpecialCharacter Special hi link smlNumber Number hi link smlAtom String hi link smlString String hi link smlOperator Operator endif endif let b:current_syntax = "sml" " vim: ts=28