annotate runtime/syntax/virata.vim @ 5702:1ed6acdbfef5 v7.4.196

updated for version 7.4.196 Problem: Tests fail on Solaris 9 and 10. Solution: Use "test -f" instead of "test -e". (Laurent Blume)
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Mar 2014 15:50:22 +0100
parents 3fc0f57ecb91
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: Virata AConfig Configuration Script
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Manuel M.H. Stol <mmh.stol@gmx.net>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Vim URL: http://www.vim.org/lang.html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Virata URL: http://www.globespanvirata.com/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Virata AConfig Configuration Script syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Can be detected by: 1) Extension .hw, .sw, .pkg and .module
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " 2) The file name pattern "mk.*\.cfg"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " 3) The string "Virata" in the first 5 lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Setup Syntax:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Clear old syntax settings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Virata syntax is case insensitive (mostly)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Comments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Virata comments start with %, but % is not a keyword character
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region virataComment start="^%" start="\s%"lc=1 keepend end="$" contains=@virataGrpInComments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region virataSpclComment start="^%%" start="\s%%"lc=1 keepend end="$" contains=@virataGrpInComments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword virataInCommentTodo contained TODO FIXME XXX[XXXXX] REVIEW TBD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn cluster virataGrpInComments contains=virataInCommentTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn cluster virataGrpComments contains=@virataGrpInComments,virataComment,virataSpclComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Constants:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match virataStringError +["]+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn region virataString start=+"+ skip=+\(\\\\\|\\"\)+ end=+"+ oneline contains=virataSpclCharError,virataSpclChar,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match virataCharacter +'[^']\{-}'+ contains=virataSpclCharError,virataSpclChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match virataSpclChar contained +\\\(x\x\+\|\o\{1,3}\|['\"?\\abefnrtv]\)+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match virataNumberError "\<\d\{-1,}\I\{-1,}\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match virataNumberError "\<0x\x*\X\x*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match virataNumberError "\<\d\+\.\d*\(e[+-]\=\d\+\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match virataDecNumber "\<\d\+U\=L\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match virataHexNumber "\<0x\x\+U\=L\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match virataSizeNumber "\<\d\+[BKM]\>"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match virataSizeNumber "\<\d\+[KM]B\>"he=e-2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn cluster virataGrpNumbers contains=virataNumberError,virataDecNumber,virataHexNumber,virataSizeNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn cluster virataGrpConstants contains=@virataGrpNumbers,virataStringError,virataString,virataCharacter,virataSpclChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Identifiers:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match virataIdentError contained "\<\D\S*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match virataIdentifier contained "\<\I\i\{-}\(\-\i\{-1,}\)*\>" contains=@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match virataFileIdent contained "\F\f*" contains=@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn cluster virataGrpIdents contains=virataIdentifier,virataIdentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn cluster virataGrpFileIdents contains=virataFileIdent,virataIdentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " Statements:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match virataStatement "^\s*Config\(\(/Kernel\)\=\.\(hs\=\|s\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match virataStatement "^\s*Config\s\+\I\i\{-}\(\-\i\{-1,}\)*\.\(hs\=\|s\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match virataStatement "^\s*Make\.\I\i\{-}\(\-\i\{-1}\)*\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match virataStatement "^\s*Make\.c\(at\)\=++\s"me=e-1 skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match virataStatement "^\s*\(Architecture\|GetEnv\|Reserved\|\(Un\)\=Define\|Version\)\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match virataStatement "^\s*\(Hardware\|ModuleSource\|\(Release\)\=Path\|Software\)\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match virataStatement "^\s*\(DefaultPri\|Hydrogen\)\>" skipwhite nextgroup=virataDecNumber,virataNumberError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match virataStatement "^\s*\(NoInit\|PCI\|SysLink\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match virataStatement "^\s*Allow\s\+\(ModuleConfig\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match virataStatement "^\s*NoWarn\s\+\(Export\|Parse\=able\|Relative]\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match virataStatement "^\s*Debug\s\+O\(ff\|n\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " Import (Package <exec>|Module <name> from <dir>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn region virataImportDef transparent matchgroup=virataStatement start="^\s*Import\>" keepend end="$" contains=virataInImport,virataModuleDef,virataNumberError,virataStringError,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match virataInImport contained "\<\(Module\|Package\|from\)\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " Export (Header <header file>|SLibrary <obj file>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn region virataExportDef transparent matchgroup=virataStatement start="^\s*Export\>" keepend end="$" contains=virataInExport,virataNumberError,virataStringError,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match virataInExport contained "\<\(Header\|[SU]Library\)\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " Process <name> is <dir/exec>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn region virataProcessDef transparent matchgroup=virataStatement start="^\s*Process\>" keepend end="$" contains=virataInProcess,virataInExec,virataNumberError,virataStringError,@virataGrpDefSubsts,@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn match virataInProcess contained "\<is\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 " Instance <name> of <module>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn region virataInstanceDef transparent matchgroup=virataStatement start="^\s*Instance\>" keepend end="$" contains=virataInInstance,virataNumberError,virataStringError,@virataGrpDefSubsts,@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match virataInInstance contained "\<of\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 " Module <name> from <dir>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn region virataModuleDef transparent matchgroup=virataStatement start="^\s*\(Package\|Module\)\>" keepend end="$" contains=virataInModule,virataNumberError,virataStringError,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn match virataInModule contained "^\s*Package\>"hs=e-7 skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match virataInModule contained "^\s*Module\>"hs=e-6 skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn match virataInModule contained "\<from\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 " Colour <name> from <dir>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn region virataColourDef transparent matchgroup=virataStatement start="^\s*Colour\>" keepend end="$" contains=virataInColour,virataNumberError,virataStringError,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn match virataInColour contained "^\s*Colour\>"hs=e-6 skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn match virataInColour contained "\<from\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 " Link {<link cmds>}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 " Object {Executable [<ExecOptions>]}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn match virataStatement "^\s*\(Link\|Object\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 " Executable <name> [<ExecOptions>]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn region virataExecDef transparent matchgroup=virataStatement start="^\s*Executable\>" keepend end="$" contains=virataInExec,virataNumberError,virataStringError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn match virataInExec contained "^\s*Executable\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn match virataInExec contained "\<\(epilogue\|pro\(logue\|cess\)\|qhandler\)\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn match virataInExec contained "\<\(priority\|stack\)\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 " Message <name> {<msg format>}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 " MessageId <number>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn match virataStatement "^\s*Message\(Id\)\=\>" skipwhite nextgroup=@virataGrpNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 " MakeRule <make suffix=file> {<make cmds>}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn region virataMakeDef transparent matchgroup=virataStatement start="^\s*MakeRule\>" keepend end="$" contains=virataInMake,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn match virataInMake contained "\<N\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 " (Append|Edit|Copy)Rule <make suffix=file> <subst cmd>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn match virataStatement "^\s*\(Append\|Copy\|Edit\)Rule\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 " AlterRules in <file> <subst cmd>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn region virataAlterDef transparent matchgroup=virataStatement start="^\s*AlterRules\>" keepend end="$" contains=virataInAlter,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn match virataInAlter contained "\<in\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 " Clustering
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn cluster virataGrpInStatmnts contains=virataInImport,virataInExport,virataInExec,virataInProcess,virataInAlter,virataInInstance,virataInModule,virataInColour
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn cluster virataGrpStatements contains=@virataGrpInStatmnts,virataStatement,virataImportDef,virataExportDef,virataExecDef,virataProcessDef,virataAlterDef,virataInstanceDef,virataModuleDef,virataColourDef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 " MkFlash.Cfg File Statements:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn region virataCfgFileDef transparent matchgroup=virataCfgStatement start="^\s*Dir\>" start="^\s*\a\{-}File\>" start="^\s*OutputFile\d\d\=\>" start="^\s*\a\w\{-}[NP]PFile\>" keepend end="$" contains=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn region virataCfgSizeDef transparent matchgroup=virataCfgStatement start="^\s*\a\{-}Size\>" start="^\s*ConfigInfo\>" keepend end="$" contains=@virataGrpNumbers,@virataGrpDefSubsts,virataIdentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn region virataCfgNumberDef transparent matchgroup=virataCfgStatement start="^\s*FlashchipNum\(b\(er\=\)\=\)\=\>" start="^\s*Granularity\>" keepend end="$" contains=@virataGrpNumbers,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn region virataCfgMacAddrDef transparent matchgroup=virataCfgStatement start="^\s*MacAddress\>" keepend end="$" contains=virataNumberError,virataStringError,virataIdentError,virataInMacAddr,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn match virataInMacAddr contained "\x[:]\x\{1,2}\>"lc=2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn match virataInMacAddr contained "\s\x\{1,2}[:]\x"lc=1,me=e-1,he=e-2 nextgroup=virataInMacAddr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn match virataCfgStatement "^\s*Target\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn cluster virataGrpCfgs contains=virataCfgStatement,virataCfgFileDef,virataCfgSizeDef,virataCfgNumberDef,virataCfgMacAddrDef,virataInMacAddr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 " PreProcessor Instructions:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 " Defines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn match virataDefine "^\s*\(Un\)\=Set\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn match virataInclude "^\s*Include\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn match virataDefSubstError "[^$]\$"lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn match virataDefSubstError "\$\(\w\|{\(.\{-}}\)\=\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn match virataDefSubst "\$\(\d\|[DINORS]\|{\I\i\{-}\(\-\i\{-1,}\)*}\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 " Conditionals
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn cluster virataGrpCntnPreCon contains=ALLBUT,@virataGrpInComments,@virataGrpFileIdents,@virataGrpInStatmnts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn region virataPreConDef transparent matchgroup=virataPreCondit start="^\s*If\>" end="^\s*Endif\>" contains=@virataGrpCntnPreCon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn match virataPreCondit contained "^\s*Else\(\s\+If\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn region virataPreConDef transparent matchgroup=virataPreCondit start="^\s*ForEach\>" end="^\s*Done\>" contains=@virataGrpCntnPreCon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 " Pre-Processors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn region virataPreProc start="^\s*Error\>" start="^\s*Warning\>" oneline end="$" contains=@virataGrpConstants,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn cluster virataGrpDefSubsts contains=virataDefSubstError,virataDefSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn cluster virataGrpPreProcs contains=@virataGrpDefSubsts,virataDefine,virataInclude,virataPreConDef,virataPreCondit,virataPreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 " Synchronize Syntax:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn sync clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn sync minlines=50 "for multiple region nesting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 " 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
161 if version >= 508 || !exists("did_virata_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 let did_virata_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 " Sub Links:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 HiLink virataDefSubstError virataPreProcError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 HiLink virataDefSubst virataPreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 HiLink virataInAlter virataOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 HiLink virataInExec virataOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 HiLink virataInExport virataOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 HiLink virataInImport virataOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 HiLink virataInInstance virataOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 HiLink virataInMake virataOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 HiLink virataInModule virataOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 HiLink virataInProcess virataOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 HiLink virataInMacAddr virataHexNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 " Comment Group:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 HiLink virataComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 HiLink virataSpclComment SpecialComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 HiLink virataInCommentTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 " Constant Group:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 HiLink virataString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 HiLink virataStringError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 HiLink virataCharacter Character
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 HiLink virataSpclChar Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 HiLink virataDecNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 HiLink virataHexNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 HiLink virataSizeNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 HiLink virataNumberError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 " Identifier Group:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 HiLink virataIdentError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 " PreProc Group:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 HiLink virataPreProc PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 HiLink virataDefine Define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 HiLink virataInclude Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 HiLink virataPreCondit PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 HiLink virataPreProcError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 HiLink virataPreProcWarn Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 " Directive Group:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 HiLink virataStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 HiLink virataCfgStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 HiLink virataOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 HiLink virataDirective Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 let b:current_syntax = "virata"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 " vim:ts=8:sw=2:noet: