codekingpro/portable-devtools
115k
1" Vim syntax file2" Language: Coco/R3" Maintainer: Ashish Shukla <wahjava@gmail.com>4" Last Change: 2022 Jun 145" Remark: Coco/R syntax partially implemented.6" License: Vim license7 8" quit when a syntax file was already loaded9if exists("b:current_syntax")10 finish11endif12 13syn keyword cocoKeywords ANY CHARACTERS COMMENTS COMPILER CONTEXT END FROM IF IGNORE IGNORECASE NESTED PRAGMAS PRODUCTIONS SYNC TO TOKENS WEAK14syn match cocoUnilineComment #//.*$#15syn match cocoIdentifier /[[:alpha:]][[:alnum:]]*/16syn region cocoMultilineComment start=#/[*]# end=#[*]/#17syn region cocoString start=/"/ skip=/\\"\|\\\\/ end=/"/18syn region cocoCharacter start=/'/ skip=/\\'\|\\\\/ end=/'/19syn match cocoOperator /+\||\|\.\.\|-\|(\|)\|{\|}\|\[\|\]\|=\|<\|>/20syn region cocoProductionCode start=/([.]/ end=/[.])/21syn match cocoPragma /[$][[:alnum:]]*/22 23hi def link cocoKeywords Keyword24hi def link cocoUnilineComment Comment 25hi def link cocoMultilineComment Comment26hi def link cocoIdentifier Identifier27hi def link cocoString String28hi def link cocoCharacter Character29hi def link cocoOperator Operator30hi def link cocoProductionCode Statement31hi def link cocoPragma Special32 33let b:current_syntax = 'coco'34 