annotate runtime/syntax/virata.vim @ 13300:803294329951 v8.0.1524

patch 8.0.1524: compiler warnings for uninitialized variables commit https://github.com/vim/vim/commit/9c8816bd306a003c2ac3dce161be3fef481c9902 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 19 21:50:42 2018 +0100 patch 8.0.1524: compiler warnings for uninitialized variables Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck) Solution: Initialize variables.
author Christian Brabandt <cb@256bit.org>
date Mon, 19 Feb 2018 22:00:07 +0100
parents 46763b01cd9a
children
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:
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
16 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
17 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Virata syntax is case insensitive (mostly)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Comments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Virata comments start with %, but % is not a keyword character
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region virataComment start="^%" start="\s%"lc=1 keepend end="$" contains=@virataGrpInComments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region virataSpclComment start="^%%" start="\s%%"lc=1 keepend end="$" contains=@virataGrpInComments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword virataInCommentTodo contained TODO FIXME XXX[XXXXX] REVIEW TBD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn cluster virataGrpInComments contains=virataInCommentTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn cluster virataGrpComments contains=@virataGrpInComments,virataComment,virataSpclComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Constants:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match virataStringError +["]+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn region virataString start=+"+ skip=+\(\\\\\|\\"\)+ end=+"+ oneline contains=virataSpclCharError,virataSpclChar,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match virataCharacter +'[^']\{-}'+ contains=virataSpclCharError,virataSpclChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match virataSpclChar contained +\\\(x\x\+\|\o\{1,3}\|['\"?\\abefnrtv]\)+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match virataNumberError "\<\d\{-1,}\I\{-1,}\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match virataNumberError "\<0x\x*\X\x*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match virataNumberError "\<\d\+\.\d*\(e[+-]\=\d\+\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match virataDecNumber "\<\d\+U\=L\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match virataHexNumber "\<0x\x\+U\=L\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match virataSizeNumber "\<\d\+[BKM]\>"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match virataSizeNumber "\<\d\+[KM]B\>"he=e-2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn cluster virataGrpNumbers contains=virataNumberError,virataDecNumber,virataHexNumber,virataSizeNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn cluster virataGrpConstants contains=@virataGrpNumbers,virataStringError,virataString,virataCharacter,virataSpclChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Identifiers:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match virataIdentError contained "\<\D\S*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match virataIdentifier contained "\<\I\i\{-}\(\-\i\{-1,}\)*\>" contains=@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match virataFileIdent contained "\F\f*" contains=@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn cluster virataGrpIdents contains=virataIdentifier,virataIdentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn cluster virataGrpFileIdents contains=virataFileIdent,virataIdentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Statements:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match virataStatement "^\s*Config\(\(/Kernel\)\=\.\(hs\=\|s\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match virataStatement "^\s*Config\s\+\I\i\{-}\(\-\i\{-1,}\)*\.\(hs\=\|s\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match virataStatement "^\s*Make\.\I\i\{-}\(\-\i\{-1}\)*\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match virataStatement "^\s*Make\.c\(at\)\=++\s"me=e-1 skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match virataStatement "^\s*\(Architecture\|GetEnv\|Reserved\|\(Un\)\=Define\|Version\)\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match virataStatement "^\s*\(Hardware\|ModuleSource\|\(Release\)\=Path\|Software\)\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match virataStatement "^\s*\(DefaultPri\|Hydrogen\)\>" skipwhite nextgroup=virataDecNumber,virataNumberError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match virataStatement "^\s*\(NoInit\|PCI\|SysLink\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match virataStatement "^\s*Allow\s\+\(ModuleConfig\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match virataStatement "^\s*NoWarn\s\+\(Export\|Parse\=able\|Relative]\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match virataStatement "^\s*Debug\s\+O\(ff\|n\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " Import (Package <exec>|Module <name> from <dir>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 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
73 syn match virataInImport contained "\<\(Module\|Package\|from\)\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " Export (Header <header file>|SLibrary <obj file>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 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
76 syn match virataInExport contained "\<\(Header\|[SU]Library\)\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " Process <name> is <dir/exec>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 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
79 syn match virataInProcess contained "\<is\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 " Instance <name> of <module>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 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
82 syn match virataInInstance contained "\<of\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 " Module <name> from <dir>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 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
85 syn match virataInModule contained "^\s*Package\>"hs=e-7 skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn match virataInModule contained "^\s*Module\>"hs=e-6 skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn match virataInModule contained "\<from\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " Colour <name> from <dir>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 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
90 syn match virataInColour contained "^\s*Colour\>"hs=e-6 skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn match virataInColour contained "\<from\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " Link {<link cmds>}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 " Object {Executable [<ExecOptions>]}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn match virataStatement "^\s*\(Link\|Object\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 " Executable <name> [<ExecOptions>]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 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
97 syn match virataInExec contained "^\s*Executable\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn match virataInExec contained "\<\(epilogue\|pro\(logue\|cess\)\|qhandler\)\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn match virataInExec contained "\<\(priority\|stack\)\>" skipwhite nextgroup=@virataGrpDefSubsts,@virataGrpNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 " Message <name> {<msg format>}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 " MessageId <number>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn match virataStatement "^\s*Message\(Id\)\=\>" skipwhite nextgroup=@virataGrpNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 " MakeRule <make suffix=file> {<make cmds>}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn region virataMakeDef transparent matchgroup=virataStatement start="^\s*MakeRule\>" keepend end="$" contains=virataInMake,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn match virataInMake contained "\<N\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " (Append|Edit|Copy)Rule <make suffix=file> <subst cmd>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn match virataStatement "^\s*\(Append\|Copy\|Edit\)Rule\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 " AlterRules in <file> <subst cmd>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn region virataAlterDef transparent matchgroup=virataStatement start="^\s*AlterRules\>" keepend end="$" contains=virataInAlter,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn match virataInAlter contained "\<in\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 " Clustering
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn cluster virataGrpInStatmnts contains=virataInImport,virataInExport,virataInExec,virataInProcess,virataInAlter,virataInInstance,virataInModule,virataInColour
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn cluster virataGrpStatements contains=@virataGrpInStatmnts,virataStatement,virataImportDef,virataExportDef,virataExecDef,virataProcessDef,virataAlterDef,virataInstanceDef,virataModuleDef,virataColourDef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 " MkFlash.Cfg File Statements:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 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
120 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
121 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
122 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
123 syn match virataInMacAddr contained "\x[:]\x\{1,2}\>"lc=2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 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
125 syn match virataCfgStatement "^\s*Target\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn cluster virataGrpCfgs contains=virataCfgStatement,virataCfgFileDef,virataCfgSizeDef,virataCfgNumberDef,virataCfgMacAddrDef,virataInMacAddr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 " PreProcessor Instructions:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " Defines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn match virataDefine "^\s*\(Un\)\=Set\>" skipwhite nextgroup=@virataGrpIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn match virataInclude "^\s*Include\>" skipwhite nextgroup=@virataGrpFileIdents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn match virataDefSubstError "[^$]\$"lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn match virataDefSubstError "\$\(\w\|{\(.\{-}}\)\=\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn match virataDefSubst "\$\(\d\|[DINORS]\|{\I\i\{-}\(\-\i\{-1,}\)*}\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 " Conditionals
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn cluster virataGrpCntnPreCon contains=ALLBUT,@virataGrpInComments,@virataGrpFileIdents,@virataGrpInStatmnts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn region virataPreConDef transparent matchgroup=virataPreCondit start="^\s*If\>" end="^\s*Endif\>" contains=@virataGrpCntnPreCon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn match virataPreCondit contained "^\s*Else\(\s\+If\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn region virataPreConDef transparent matchgroup=virataPreCondit start="^\s*ForEach\>" end="^\s*Done\>" contains=@virataGrpCntnPreCon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 " Pre-Processors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn region virataPreProc start="^\s*Error\>" start="^\s*Warning\>" oneline end="$" contains=@virataGrpConstants,@virataGrpDefSubsts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn cluster virataGrpDefSubsts contains=virataDefSubstError,virataDefSubst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn cluster virataGrpPreProcs contains=@virataGrpDefSubsts,virataDefine,virataInclude,virataPreConDef,virataPreCondit,virataPreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 " Synchronize Syntax:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn sync clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn sync minlines=50 "for multiple region nesting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
157 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
159 " Sub Links:
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
160 hi def link virataDefSubstError virataPreProcError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
161 hi def link virataDefSubst virataPreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
162 hi def link virataInAlter virataOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
163 hi def link virataInExec virataOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
164 hi def link virataInExport virataOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
165 hi def link virataInImport virataOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
166 hi def link virataInInstance virataOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
167 hi def link virataInMake virataOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
168 hi def link virataInModule virataOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
169 hi def link virataInProcess virataOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
170 hi def link virataInMacAddr virataHexNumber
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
172 " Comment Group:
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
173 hi def link virataComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
174 hi def link virataSpclComment SpecialComment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
175 hi def link virataInCommentTodo Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
177 " Constant Group:
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
178 hi def link virataString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
179 hi def link virataStringError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
180 hi def link virataCharacter Character
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
181 hi def link virataSpclChar Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
182 hi def link virataDecNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
183 hi def link virataHexNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
184 hi def link virataSizeNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
185 hi def link virataNumberError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
187 " Identifier Group:
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
188 hi def link virataIdentError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
190 " PreProc Group:
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
191 hi def link virataPreProc PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
192 hi def link virataDefine Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
193 hi def link virataInclude Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
194 hi def link virataPreCondit PreCondit
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
195 hi def link virataPreProcError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
196 hi def link virataPreProcWarn Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
198 " Directive Group:
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
199 hi def link virataStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
200 hi def link virataCfgStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
201 hi def link virataOperator Operator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
202 hi def link virataDirective Keyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 let b:current_syntax = "virata"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 " vim:ts=8:sw=2:noet: