annotate runtime/syntax/coco.vim @ 7064:5fc5c5bf2233 v7.4.844

commit https://github.com/vim/vim/commit/37a8de17d4dfd3d463960c38a204ce399c8e19d4 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 1 16:05:00 2015 +0200 patch 7.4.844 Problem: When '#' is in 'isident' the is# comparator doesn't work. Solution: Don't use vim_isIDc(). (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Tue, 01 Sep 2015 16:15:04 +0200
parents 18ee39301b82
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
2 " Language: Coco/R
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
3 " Maintainer: Ashish Shukla <wahjava@gmail.com>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
4 " Last Change: 2007 Aug 10
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
5 " Remark: Coco/R syntax partially implemented.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
6 " License: Vim license
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
7
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
8 if version < 600
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
9 syntax clear
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
11 finish
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
12 endif
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
13
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
14 syn keyword cocoKeywords ANY CHARACTERS COMMENTS COMPILER CONTEXT END FROM IF IGNORE IGNORECASE NESTED PRAGMAS PRODUCTIONS SYNC TO TOKENS WEAK
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
15 syn match cocoUnilineComment #//.*$#
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
16 syn match cocoIdentifier /[[:alpha:]][[:alnum:]]*/
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
17 syn region cocoMultilineComment start=#/[*]# end=#[*]/#
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
18 syn region cocoString start=/"/ skip=/\\"\|\\\\/ end=/"/
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
19 syn region cocoCharacter start=/'/ skip=/\\'\|\\\\/ end=/'/
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
20 syn match cocoOperator /+\||\|\.\.\|-\|(\|)\|{\|}\|\[\|\]\|=\|<\|>/
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
21 syn region cocoProductionCode start=/([.]/ end=/[.])/
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
22 syn match cocoPragma /[$][[:alnum:]]*/
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
23
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
24 hi def link cocoKeywords Keyword
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
25 hi def link cocoUnilineComment Comment
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
26 hi def link cocoMultilineComment Comment
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
27 hi def link cocoIdentifier Identifier
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
28 hi def link cocoString String
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
29 hi def link cocoCharacter Character
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
30 hi def link cocoOperator Operator
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
31 hi def link cocoProductionCode Statement
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
32 hi def link cocoPragma Special
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
33