18c8de839SBram Moolenaar" Vim syntax file 28c8de839SBram Moolenaar" Language: Coco/R 38c8de839SBram Moolenaar" Maintainer: Ashish Shukla <[email protected]> 48c8de839SBram Moolenaar" Last Change: 2007 Aug 10 58c8de839SBram Moolenaar" Remark: Coco/R syntax partially implemented. 68c8de839SBram Moolenaar" License: Vim license 78c8de839SBram Moolenaar 8*89bcfda6SBram Moolenaar" quit when a syntax file was already loaded 9*89bcfda6SBram Moolenaarif exists("b:current_syntax") 108c8de839SBram Moolenaar finish 118c8de839SBram Moolenaarendif 128c8de839SBram Moolenaar 138c8de839SBram Moolenaarsyn keyword cocoKeywords ANY CHARACTERS COMMENTS COMPILER CONTEXT END FROM IF IGNORE IGNORECASE NESTED PRAGMAS PRODUCTIONS SYNC TO TOKENS WEAK 148c8de839SBram Moolenaarsyn match cocoUnilineComment #//.*$# 158c8de839SBram Moolenaarsyn match cocoIdentifier /[[:alpha:]][[:alnum:]]*/ 168c8de839SBram Moolenaarsyn region cocoMultilineComment start=#/[*]# end=#[*]/# 178c8de839SBram Moolenaarsyn region cocoString start=/"/ skip=/\\"\|\\\\/ end=/"/ 188c8de839SBram Moolenaarsyn region cocoCharacter start=/'/ skip=/\\'\|\\\\/ end=/'/ 198c8de839SBram Moolenaarsyn match cocoOperator /+\||\|\.\.\|-\|(\|)\|{\|}\|\[\|\]\|=\|<\|>/ 208c8de839SBram Moolenaarsyn region cocoProductionCode start=/([.]/ end=/[.])/ 218c8de839SBram Moolenaarsyn match cocoPragma /[$][[:alnum:]]*/ 228c8de839SBram Moolenaar 238c8de839SBram Moolenaarhi def link cocoKeywords Keyword 248c8de839SBram Moolenaarhi def link cocoUnilineComment Comment 258c8de839SBram Moolenaarhi def link cocoMultilineComment Comment 268c8de839SBram Moolenaarhi def link cocoIdentifier Identifier 278c8de839SBram Moolenaarhi def link cocoString String 288c8de839SBram Moolenaarhi def link cocoCharacter Character 298c8de839SBram Moolenaarhi def link cocoOperator Operator 308c8de839SBram Moolenaarhi def link cocoProductionCode Statement 318c8de839SBram Moolenaarhi def link cocoPragma Special 328c8de839SBram Moolenaar 33