annotate runtime/syntax/csc.vim @ 5239:11cd8d58372e

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Wed, 24 Jul 2013 19:53:36 +0200
parents 91e53bcb7946
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Essbase script
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Raul Segura Acevedo <raulseguraaceved@netscape.net>
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Last change: 2011 Dec 25 by Thilo Six
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
14 let s:cpo_save = &cpo
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
15 set cpo&vim
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " folds: fix/endfix and comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 sy region EssFold start="\<Fix" end="EndFix" transparent fold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 sy keyword cscTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " cscCommentGroup allows adding matches for special things in comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 sy cluster cscCommentGroup contains=cscTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Strings in quotes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 sy match cscError '"'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 sy match cscString '"[^"]*"'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 "when wanted, highlight trailing white space
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 if exists("csc_space_errors")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 if !exists("csc_no_trail_space_error")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 sy match cscSpaceE "\s\+$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 if !exists("csc_no_tab_space_error")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 sy match cscSpaceE " \+\t"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 "catch errors caused by wrong parenthesis and brackets
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 sy cluster cscParenGroup contains=cscParenE,@cscCommentGroup,cscUserCont,cscBitField,cscFormat,cscNumber,cscFloat,cscOctal,cscNumbers,cscIfError,cscComW,cscCom,cscFormula,cscBPMacro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 sy region cscParen transparent start='(' end=')' contains=ALLBUT,@cscParenGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 sy match cscParenE ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 "integer number, or floating point number without a dot and with "f".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 sy case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 sy match cscNumbers transparent "\<\d\|\.\d" contains=cscNumber,cscFloat,cscOctal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 sy match cscNumber contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 "hex number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 sy match cscNumber contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Flag the first zero of an octal number as something special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 sy match cscOctal contained "0\o\+\(u\=l\{0,2}\|ll\=u\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 sy match cscFloat contained "\d\+f"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 "floating point number, with dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 sy match cscFloat contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 "floating point number, starting with a dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 sy match cscFloat contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 "floating point number, without dot, with exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 sy match cscFloat contained "\d\+e[-+]\=\d\+[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 sy region cscComment start="/\*" end="\*/" contains=@cscCommentGroup,cscSpaceE fold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 sy match cscCommentE "\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 sy keyword cscIfError IF ELSE ENDIF ELSEIF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 sy keyword cscCondition contained IF ELSE ENDIF ELSEIF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 sy keyword cscFunction contained VARPER VAR UDA TRUNCATE SYD SUMRANGE SUM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 sy keyword cscFunction contained STDDEVRANGE STDDEV SPARENTVAL SLN SIBLINGS SHIFT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 sy keyword cscFunction contained SANCESTVAL RSIBLINGS ROUND REMAINDER RELATIVE PTD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 sy keyword cscFunction contained PRIOR POWER PARENTVAL NPV NEXT MOD MINRANGE MIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 sy keyword cscFunction contained MDSHIFT MDPARENTVAL MDANCESTVAL MAXRANGE MAX MATCH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 sy keyword cscFunction contained LSIBLINGS LEVMBRS LEV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 sy keyword cscFunction contained ISUDA ISSIBLING ISSAMELEV ISSAMEGEN ISPARENT ISMBR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 sy keyword cscFunction contained ISLEV ISISIBLING ISIPARENT ISIDESC ISICHILD ISIBLINGS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 sy keyword cscFunction contained ISIANCEST ISGEN ISDESC ISCHILD ISANCEST ISACCTYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 sy keyword cscFunction contained IRSIBLINGS IRR INTEREST INT ILSIBLINGS IDESCENDANTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 sy keyword cscFunction contained ICHILDREN IANCESTORS IALLANCESTORS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 sy keyword cscFunction contained GROWTH GENMBRS GEN FACTORIAL DISCOUNT DESCENDANTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 sy keyword cscFunction contained DECLINE CHILDREN CURRMBRRANGE CURLEV CURGEN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 sy keyword cscFunction contained COMPOUNDGROWTH COMPOUND AVGRANGE AVG ANCESTVAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 sy keyword cscFunction contained ANCESTORS ALLANCESTORS ACCUM ABS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 sy keyword cscFunction contained @VARPER @VAR @UDA @TRUNCATE @SYD @SUMRANGE @SUM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 sy keyword cscFunction contained @STDDEVRANGE @STDDEV @SPARENTVAL @SLN @SIBLINGS @SHIFT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 sy keyword cscFunction contained @SANCESTVAL @RSIBLINGS @ROUND @REMAINDER @RELATIVE @PTD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 sy keyword cscFunction contained @PRIOR @POWER @PARENTVAL @NPV @NEXT @MOD @MINRANGE @MIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 sy keyword cscFunction contained @MDSHIFT @MDPARENTVAL @MDANCESTVAL @MAXRANGE @MAX @MATCH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 sy keyword cscFunction contained @LSIBLINGS @LEVMBRS @LEV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 sy keyword cscFunction contained @ISUDA @ISSIBLING @ISSAMELEV @ISSAMEGEN @ISPARENT @ISMBR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 sy keyword cscFunction contained @ISLEV @ISISIBLING @ISIPARENT @ISIDESC @ISICHILD @ISIBLINGS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 sy keyword cscFunction contained @ISIANCEST @ISGEN @ISDESC @ISCHILD @ISANCEST @ISACCTYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 sy keyword cscFunction contained @IRSIBLINGS @IRR @INTEREST @INT @ILSIBLINGS @IDESCENDANTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 sy keyword cscFunction contained @ICHILDREN @IANCESTORS @IALLANCESTORS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 sy keyword cscFunction contained @GROWTH @GENMBRS @GEN @FACTORIAL @DISCOUNT @DESCENDANTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 sy keyword cscFunction contained @DECLINE @CHILDREN @CURRMBRRANGE @CURLEV @CURGEN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 sy keyword cscFunction contained @COMPOUNDGROWTH @COMPOUND @AVGRANGE @AVG @ANCESTVAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 sy keyword cscFunction contained @ANCESTORS @ALLANCESTORS @ACCUM @ABS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 sy match cscFunction contained "@"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 sy match cscError "@\s*\a*" contains=cscFunction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 sy match cscStatement "&"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 sy keyword cscStatement AGG ARRAY VAR CCONV CLEARDATA DATACOPY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 sy match cscComE contained "^\s*CALC.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 sy match cscComE contained "^\s*CLEARBLOCK.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 sy match cscComE contained "^\s*SET.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 sy match cscComE contained "^\s*FIX"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 sy match cscComE contained "^\s*ENDFIX"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 sy match cscComE contained "^\s*ENDLOOP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 sy match cscComE contained "^\s*LOOP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " sy keyword cscCom FIX ENDFIX LOOP ENDLOOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 sy match cscComW "^\s*CALC.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 sy match cscCom "^\s*CALC\s*ALL"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 sy match cscCom "^\s*CALC\s*AVERAGE"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 sy match cscCom "^\s*CALC\s*DIM"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 sy match cscCom "^\s*CALC\s*FIRST"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 sy match cscCom "^\s*CALC\s*LAST"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 sy match cscCom "^\s*CALC\s*TWOPASS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 sy match cscComW "^\s*CLEARBLOCK.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 sy match cscCom "^\s*CLEARBLOCK\s\+ALL"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 sy match cscCom "^\s*CLEARBLOCK\s\+UPPER"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 sy match cscCom "^\s*CLEARBLOCK\s\+NONINPUT"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 sy match cscComW "^\s*\<SET.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 sy match cscCom "^\s*\<SET\s\+Commands"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 sy match cscCom "^\s*\<SET\s\+AGGMISSG"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 sy match cscCom "^\s*\<SET\s\+CACHE"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 sy match cscCom "^\s*\<SET\s\+CALCHASHTBL"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 sy match cscCom "^\s*\<SET\s\+CLEARUPDATESTATUS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 sy match cscCom "^\s*\<SET\s\+FRMLBOTTOMUP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 sy match cscCom "^\s*\<SET\s\+LOCKBLOCK"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 sy match cscCom "^\s*\<SET\s\+MSG"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 sy match cscCom "^\s*\<SET\s\+NOTICE"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 sy match cscCom "^\s*\<SET\s\+UPDATECALC"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 sy match cscCom "^\s*\<SET\s\+UPTOLOCAL"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 sy keyword cscBPMacro contained !LoopOnAll !LoopOnLevel !LoopOnSelected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 sy keyword cscBPMacro contained !CurrentMember !LoopOnDimensions !CurrentDimension
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 sy keyword cscBPMacro contained !CurrentOtherLoopDimension !LoopOnOtherLoopDimensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 sy keyword cscBPMacro contained !EndLoop !AllMembers !SelectedMembers !If !Else !EndIf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 sy keyword cscBPMacro contained LoopOnAll LoopOnLevel LoopOnSelected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 sy keyword cscBPMacro contained CurrentMember LoopOnDimensions CurrentDimension
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 sy keyword cscBPMacro contained CurrentOtherLoopDimension LoopOnOtherLoopDimensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 sy keyword cscBPMacro contained EndLoop AllMembers SelectedMembers If Else EndIf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 sy match cscBPMacro contained "!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 sy match cscBPW "!\s*\a*" contains=cscBPmacro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 " when wanted, highlighting lhs members or erros in asignments (may lag the editing)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 if version >= 600 && exists("csc_asignment")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 sy match cscEqError '\("[^"]*"\s*\|[^][\t !%()*+,--/:;<=>{}~]\+\s*\|->\s*\)*=\([^=]\@=\|$\)'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 sy region cscFormula transparent matchgroup=cscVarName start='\("[^"]*"\|[^][\t !%()*+,--/:;<=>{}~]\+\)\s*=\([^=]\@=\|\n\)' skip='"[^"]*"' end=';' contains=ALLBUT,cscFormula,cscFormulaIn,cscBPMacro,cscCondition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 sy region cscFormulaIn matchgroup=cscVarName transparent start='\("[^"]*"\|[^][\t !%()*+,--/:;<=>{}~]\+\)\(->\("[^"]*"\|[^][\t !%()*+,--/:;<=>{}~]\+\)\)*\s*=\([^=]\@=\|$\)' skip='"[^"]*"' end=';' contains=ALLBUT,cscFormula,cscFormulaIn,cscBPMacro,cscCondition contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 sy match cscEq "=="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 if !exists("csc_minlines")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 let csc_minlines = 50 " mostly for () constructs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 exec "sy sync ccomment cscComment minlines=" . csc_minlines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 if version >= 508 || !exists("did_csc_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 let did_csc_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 hi cscVarName term=bold ctermfg=9 gui=bold guifg=blue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 HiLink cscNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 HiLink cscOctal Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 HiLink cscFloat Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 HiLink cscParenE Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 HiLink cscCommentE Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 HiLink cscSpaceE Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 HiLink cscError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 HiLink cscString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 HiLink cscComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 HiLink cscTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 HiLink cscStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 HiLink cscIfError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 HiLink cscEqError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 HiLink cscFunction Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 HiLink cscCondition Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 HiLink cscWarn WarningMsg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 HiLink cscComE Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 HiLink cscCom Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 HiLink cscComW WarningMsg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 HiLink cscBPMacro Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 HiLink cscBPW WarningMsg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 let b:current_syntax = "csc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
202 let &cpo = s:cpo_save
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
203 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 " vim: ts=8