]> gitweb.factorcode.org Git - factor.git/blob - misc/vim/syntax/factor.vim
misc/vim/syntax/factor.vim: update comments
[factor.git] / misc / vim / syntax / factor.vim
1 " Vim syntax file
2 " Language: Factor
3 " Maintainer: Alex Chapman <chapman.alex@gmail.com>
4 " Last Change: 2011 Apr 04
5 " To run: USING: html.templates html.templates.fhtml ; "resource:misc/factor.vim.fgen" <fhtml> call-template
6
7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded
9 if version < 600
10     syntax clear
11 elseif exists("b:current_syntax")
12     finish
13 endif
14
15 " Factor is case sensitive.
16 syn case match
17
18 " Make all of these characters part of a word (useful for skipping over words with w, e, and b)
19 if version >= 600
20     setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
21 else
22     set iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
23 endif
24
25 syn cluster factorCluster contains=factorComment,factorFrySpecifier,factorKeyword,factorRepeat,factorConditional,factorBoolean,factorBreakpoint,factorDeclaration,factorCallQuotation,factorExecute,factorCallNextMethod,factorString,factorTriString,factorSbuf,@factorNumber,@factorNumErr,factorDelimiter,factorChar,factorBackslash,factorMBackslash,factorLiteral,factorLiteralBlock,@factorWordOps,factorAlien,factorSlot,factorTuple,factorError,factorStruct
26
27 syn match factorTodo /\(TODO\|FIXME\|XXX\):\=/ contained
28 syn match factorComment /\<!\>\s.*/ contains=factorTodo,@Spell
29 syn match factorComment /\<#!\>\s.*/ contains=factorTodo,@Spell
30 syn match factorShebang /\%\^#!\s.*/ display
31 syn match factorShebangErr /\%\^#!\S\+/
32
33 syn cluster factorDefnContents contains=@factorCluster,factorStackEffect,factorLiteralStackEffect,factorArray0,factorQuotation0
34
35 syn region factorDefn matchgroup=factorDefnDelims start=/\<\(SYNTAX\|\(MACRO\|MEMO\)\?:\?\):\s\+\S\+\>/ end=/\<;\>/ contains=@factorDefnContents
36 syn region factorMethod matchgroup=factorMethodDelims start=/\<M::\?\s\+\S\+\s\+\S\+\>/ end=/\<;\>/ contains=@factorDefnContents
37 syn region factorGeneric matchgroup=factorGenericDelims start=/\<GENERIC:\s\+\S\+\>/ end=/$/ contains=factorStackEffect
38 syn region factorGenericN matchgroup=factorGenericNDelims start=/\<GENERIC#\s\+\S\+\s\+\d\+\>/ end=/$/ contains=factorStackEffect
39
40 syn region factorPrivateDefn matchgroup=factorPrivateDefnDelims start=/\<\(SYNTAX\|\(MACRO\|MEMO\)\?:\?\):\s\+\S\+\>/ end=/\<;\>/ contains=@factorDefnContents contained
41 syn region factorPrivateMethod matchgroup=factorPrivateMethodDelims start=/\<M::\?\s\+\S\+\s\+\S\+\>/ end=/\<;\>/ contains=@factorDefnContents contained
42 syn region factorPGeneric matchgroup=factorPGenericDelims start=/\<GENERIC:\s\+\S\+\>/ end=/$/ contains=factorStackEffect contained
43 syn region factorPGenericN matchgroup=factorPGenericNDelims start=/\<GENERIC#\s\+\S\+\s\+\d\+\>/ end=/$/ contains=factorStackEffect
44
45 syn region None matchgroup=factorPrivate start=/\<<PRIVATE\>/ end=/\<PRIVATE>\>/ contains=@factorDefnContents,factorPrivateDefn,factorPrivateMethod,factorPGeneric,factorPGenericN
46
47
48 syn keyword factorBoolean f t
49 syn keyword factorBreakpoint B
50 syn keyword factorFrySpecifier @ _ contained
51 syn keyword factorDeclaration delimiter deprecated final flushable foldable inline recursive
52 syn match factorCallQuotation /\<call(\s\(.*\s\)\?--\(\s.*\)\?\s)\>/
53 syn match factorExecute /\<execute(\s\(.*\s\)\?--\(\s.*\)\?\s)\>/
54 syn keyword factorCallNextMethod call-next-method
55
56 syn keyword factorKeyword or 2bi 2tri while wrapper nip 4dip wrapper? bi* callstack>array both? hashcode die dupd callstack callstack? 3dup tri@ pick curry build ?execute 3bi prepose >boolean ?if clone eq? tri* ? = swapd 2over 2keep 3keep clear 2dup when not tuple? dup 2bi* 2tri* call tri-curry object bi@ do unless* if* loop bi-curry* drop when* assert= retainstack assert? -rot execute 2bi@ 2tri@ boa with either? 3drop bi curry? datastack until 3dip over 3curry tri-curry* tri-curry@ swap and 2nip throw bi-curry (clone) hashcode* compose 2dip if 3tri unless compose? tuple keep 2curry equal? assert tri 2drop most <wrapper> boolean? identity-hashcode identity-tuple? null new dip bi-curry@ rot xor identity-tuple boolean
57 syn keyword factorKeyword ?at assoc? assoc-clone-like assoc= delete-at* assoc-partition extract-keys new-assoc value? assoc-size map>assoc push-at assoc-like key? assoc-intersect assoc-refine update assoc-union assoc-combine at* assoc-empty? at+ set-at assoc-all? assoc-subset? assoc-hashcode change-at assoc-each assoc-diff zip values value-at rename-at inc-at enum? at cache assoc>map <enum> assoc assoc-map enum value-at* assoc-map-as >alist assoc-filter-as clear-assoc assoc-stack maybe-set-at substitute assoc-filter 2cache delete-at assoc-find keys assoc-any? unzip
58 syn keyword factorKeyword case execute-effect no-cond no-case? 3cleave>quot 2cleave cond>quot wrong-values? no-cond? cleave>quot no-case case>quot 3cleave wrong-values to-fixed-point alist>quot case-find cond cleave call-effect 2cleave>quot recursive-hashcode linear-case-quot spread spread>quot
59 syn keyword factorKeyword number= if-zero next-power-of-2 each-integer ?1+ fp-special? imaginary-part unless-zero float>bits number? fp-infinity? bignum? fp-snan? denominator fp-bitwise= * + power-of-2? - u>= / >= bitand log2-expects-positive < log2 > integer? number bits>double 2/ zero? (find-integer) bits>float float? shift ratio? even? ratio fp-sign bitnot >fixnum complex? /i /f byte-array>bignum when-zero sgn >bignum next-float u< u> mod recip rational find-last-integer >float (all-integers?) 2^ times integer fixnum? neg fixnum sq bignum (each-integer) bit? fp-qnan? find-integer complex <fp-nan> real double>bits bitor rem fp-nan-payload all-integers? real-part log2-expects-positive? prev-float align unordered? float fp-nan? abs bitxor u<= odd? <= /mod rational? >integer real? numerator
60 syn keyword factorKeyword member-eq? append assert-sequence= find-last-from trim-head-slice clone-like 3sequence assert-sequence? map-as last-index-from reversed index-from cut* pad-tail remove-eq! concat-as but-last snip trim-tail nths nth 2selector sequence slice? <slice> partition remove-nth tail-slice empty? tail* if-empty find-from virtual-sequence? member? set-length drop-prefix unclip unclip-last-slice iota map-sum bounds-error? sequence-hashcode-step selector-for accumulate-as map start midpoint@ (accumulate) rest-slice prepend fourth sift accumulate! new-sequence follow map! like first4 1sequence reverse slice unless-empty padding virtual@ repetition? set-last index 4sequence max-length set-second immutable-sequence first2 first3 replicate-as reduce-index unclip-slice supremum suffix! insert-nth trim-tail-slice tail 3append short count suffix concat flip filter sum immutable? reverse! 2sequence map-integers delete-all start* indices snip-slice check-slice sequence? head map-find filter! append-as reduce sequence= halves collapse-slice interleave 2map filter-as binary-reduce slice-error? product bounds-check? bounds-check harvest immutable virtual-exemplar find produce remove pad-head last replicate set-fourth remove-eq shorten reversed? map-find-last 3map-as 2unclip-slice shorter? 3map find-last head-slice pop* 2map-as tail-slice* but-last-slice 2map-reduce iota? collector-for accumulate each selector append! new-resizable cut-slice each-index head-slice* 2reverse-each sequence-hashcode pop set-nth ?nth <flat-slice> second join when-empty collector immutable-sequence? <reversed> all? 3append-as virtual-sequence subseq? remove-nth! push-either new-like length last-index push-if 2all? lengthen assert-sequence copy map-reduce move third first 3each tail? set-first prefix bounds-error any? <repetition> trim-slice exchange surround 2reduce cut change-nth min-length set-third produce-as push-all head? delete-slice rest sum-lengths 2each head* infimum remove! glue slice-error subseq trim replace-slice push repetition map-index trim-head unclip-last mismatch
61 syn keyword factorKeyword global +@ change set-namestack change-global init-namespaces on off set-global namespace set with-scope bind with-variable inc dec counter initialize namestack get get-global make-assoc
62 syn keyword factorKeyword <array> 2array 3array pair >array 1array 4array pair? array resize-array array?
63 syn keyword factorKeyword +character+ bad-seek-type? readln each-morsel stream-seek read print with-output-stream contents write1 stream-write1 stream-copy stream-element-type with-input-stream stream-print stream-read stream-contents stream-tell tell-output bl seek-output bad-seek-type nl stream-nl write flush stream-lines +byte+ stream-flush read1 seek-absolute? stream-read1 lines stream-readln stream-read-until each-line seek-end with-output-stream* seek-absolute with-streams seek-input seek-relative? input-stream stream-write read-partial seek-end? seek-relative error-stream read-until with-input-stream* with-streams* tell-input each-block output-stream stream-read-partial each-stream-block each-stream-line
64 syn keyword factorKeyword resize-string >string <string> 1string string string?
65 syn keyword factorKeyword vector? <vector> ?push vector >vector 1vector
66 syn keyword factorKeyword with-return restarts return-continuation with-datastack recover rethrow-restarts <restart> ifcc set-catchstack >continuation< cleanup ignore-errors restart? compute-restarts attempt-all-error error-thread continue <continuation> attempt-all-error? condition? <condition> throw-restarts error catchstack continue-with thread-error-hook continuation rethrow callcc1 error-continuation callcc0 attempt-all condition continuation? restart return
67
68
69 syn cluster factorReal          contains=factorInt,factorFloat,factorRatio,factorBinary,factorHex,factorOctal
70 syn cluster factorNumber        contains=@factorReal,factorComplex
71 syn cluster factorNumErr        contains=factorBinErr,factorHexErr,factorOctErr
72 syn match   factorInt           /\<-\=[0-9]\([0-9,]*[0-9]\)\?\>/
73 syn match   factorFloat         /\<-\=[0-9]\([0-9,]*[0-9]\)\?\.[0-9,]*[0-9]\+\>/
74 syn match   factorRatio         /\<-\=[0-9]\([0-9,]*[0-9]\)\?\(+[0-9]\([0-9,]*[0-9]\+\)\?\)\?\/-\=[0-9]\([0-9,]*[0-9]\+\)\?\.\?\>/
75 syn region  factorComplex       start=/\<C{\>/ end=/\<}\>/ contains=@factorReal
76 syn match   factorBinErr        /\<BIN:\s\+-\=[01,]*[^01 ]\S*\>/
77 syn match   factorBinary        /\<BIN:\s\+-\=[01,]\+\>/
78 syn match   factorHexErr        /\<HEX:\s\+-\=\(,\S*\|\S*,\|[-0-9a-fA-Fp,]*[^-0-9a-fA-Fp, ]\S*\)\>/
79 syn match   factorHex           /\<HEX:\s\+-\=[0-9a-fA-F]\([0-9a-fA-F,]*[0-9a-fA-F]\)\?\(\.[0-9a-fA-F]\([0-9a-fA-F,]*[0-9a-fA-F]\)\?\)\?\(p-\=[0-9]\([0-9,]*[0-9]\)\?\)\?\>/
80 syn match   factorOctErr        /\<OCT:\s\+-\=\(,\S*\|\S*,\|[0-7,]*[^0-7, ]\S*\)\>/
81 syn match   factorOctal         /\<OCT:\s\+-\=[0-7,]\+\>/
82 syn match   factorNan           /\<NAN:\s\+[0-9a-fA-F]\([0-9a-fA-F,]*[0-9a-fA-F]\)\?\>/
83
84 syn match   factorIn            /\<IN:\s\+\S\+\>/
85 syn match   factorUse           /\<USE:\s\+\S\+\>/
86 syn match   factorUnuse         /\<UNUSE:\s\+\S\+\>/
87
88 syn match   factorChar          /\<CHAR:\s\+\S\+\>/
89
90 syn match   factorBackslash     /\<\\\>\s\+\S\+\>/
91 syn match   factorMBackslash    /\<M\\\>\s\+\S\+\s\+\S\+\>/
92 syn match   factorLiteral       /\<\$\>\s\+\S\+\>/
93 syn region  factorLiteralBlock  start=/\<\$\[\>/ end=/\<\]\>/
94
95 syn region  factorUsing         start=/\<USING:\>/       end=/;/
96 syn match   factorQualified     /\<QUALIFIED:\s\+\S\+\>/
97 syn match   factorQualifiedWith /\<QUALIFIED-WITH:\s\+\S\+\s\+\S\+\>/
98 syn region  factorExclude       start=/\<EXCLUDE:\>/     end=/;/
99 syn region  factorFrom          start=/\<FROM:\>/        end=/;/
100 syn match   factorRename        /\<RENAME:\s\+\S\+\s\+\S\+\s=>\s\+\S\+\>/
101 syn region  factorSingletons    start=/\<SINGLETONS:\>/  end=/;/
102 syn match   factorSymbol        /\<SYMBOL:\s\+\S\+\>/
103 syn region  factorSymbols       start=/\<SYMBOLS:\>/     end=/;/
104 syn region  factorConstructor2  start=/\<CONSTRUCTOR:\?/ end=/;/
105 syn region  factorIntersection  start=/\<INTERSECTION:\>/ end=/\<;\>/
106 syn region  factorTuple         start=/\<TUPLE:\>/ end=/\<;\>/
107 syn region  factorError         start=/\<ERROR:\>/ end=/\<;\>/
108 syn region  factorUnion         start=/\<UNION:\>/ end=/\<;\>/
109 syn region  factorStruct        start=/\<\(UNION-STRUCT:\|STRUCT:\)\>/ end=/\<;\>/
110
111 syn match   factorConstant      /\<CONSTANT:\s\+\S\+\>/
112 syn match   factorAlias         /\<ALIAS:\s\+\S\+\s\+\S\+\>/
113 syn match   factorSingleton     /\<SINGLETON:\s\+\S\+\>/
114 syn match   factorPostpone      /\<POSTPONE:\s\+\S\+\>/
115 syn match   factorDefer         /\<DEFER:\s\+\S\+\>/
116 syn match   factorForget        /\<FORGET:\s\+\S\+\>/
117 syn match   factorMixin         /\<MIXIN:\s\+\S\+\>/
118 syn match   factorInstance      /\<INSTANCE:\s\+\S\+\s\+\S\+\>/
119 syn match   factorHook          /\<HOOK:\s\+\S\+\s\+\S\+\>/ nextgroup=factorStackEffect skipwhite skipempty
120 syn match   factorMain          /\<MAIN:\s\+\S\+\>/
121 syn match   factorConstructor   /\<C:\s\+\S\+\s\+\S\+\>/
122 syn match   factorAlien         /\<ALIEN:\s\+[0-9a-fA-F]\([0-9a-fA-F,]*[0-9a-fA-F]\)\?\>/
123 syn match   factorSlot          /\<SLOT:\s\+\S\+\>/
124
125 syn cluster factorWordOps       contains=factorConstant,factorAlias,factorSingleton,factorSingletons,factorSymbol,factorSymbols,factorPostpone,factorDefer,factorForget,factorMixin,factorInstance,factorHook,factorMain,factorConstructor
126
127 "TODO:
128 "misc:
129 " HELP:
130 " ARTICLE:
131 "literals:
132 " PRIMITIVE:
133
134 "C interface:
135 " C-ENUM:
136 " FUNCTION:
137 " TYPEDEF:
138 " LIBRARY:
139 "#\ "
140
141 syn match factorEscape /\\\([\\stnr0e\"]\|u\x\{6}\|u{\S\+}\)/ contained display
142 syn region factorString start=/\<"/ skip=/\\"/ end=/"/ contains=factorEscape
143 syn region factorTriString start=/\<"""/ skip=/\\"/ end=/"""/ contains=factorEscape
144 syn region factorSbuf start=/\<[-a-zA-Z0-9]\+"\>/ skip=/\\"/ end=/"/
145
146 syn region factorMultiString matchgroup=factorMultiStringDelims start=/\<STRING:\s\+\S\+\>/ end=/^;$/ contains=factorMultiStringContents
147 syn match factorMultiStringContents /.*/ contained
148
149 "syn match factorStackEffectErr /\<)\>/
150 "syn region factorStackEffectErr start=/\<(\>/ end=/\<)\>/
151 "syn region factorStackEffect start=/\<(\>/ end=/\<)\>/ contained
152 syn match factorStackEffect /\<(\s\(\S*\s\)\?--\(\s\S*\)\?\s)\>/ contained
153 syn match factorLiteralStackEffect /\<((\s\(\S*\s\)\?--\(\s\S*\)\?\s))\>/
154
155 "adapted from lisp.vim
156 if exists("g:factor_norainbow")
157     syn region factorQuotation matchgroup=factorDelimiter start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/ matchgroup=factorDelimiter end=/\<\]\>/ contains=ALL
158 else
159     syn region factorQuotation0           matchgroup=hlLevel0 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation1,factorArray1
160     syn region factorQuotation1 contained matchgroup=hlLevel1 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation2,factorArray2
161     syn region factorQuotation2 contained matchgroup=hlLevel2 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation3,factorArray3
162     syn region factorQuotation3 contained matchgroup=hlLevel3 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation4,factorArray4
163     syn region factorQuotation4 contained matchgroup=hlLevel4 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation5,factorArray5
164     syn region factorQuotation5 contained matchgroup=hlLevel5 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation6,factorArray6
165     syn region factorQuotation6 contained matchgroup=hlLevel6 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation7,factorArray7
166     syn region factorQuotation7 contained matchgroup=hlLevel7 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation8,factorArray8
167     syn region factorQuotation8 contained matchgroup=hlLevel8 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation9,factorArray9
168     syn region factorQuotation9 contained matchgroup=hlLevel9 start=/\<\(\(\('\|\$\|\)\[\)\|\[\(let\||\)\)\>/  end=/\<\]\>/ contains=@factorCluster,factorQuotation0,factorArray0
169 endif
170
171 if exists("g:factor_norainbow")
172     syn region factorArray    matchgroup=factorDelimiter start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/  matchgroup=factorDelimiter end=/\<}\>/ contains=ALL
173 else
174     syn region factorArray0           matchgroup=hlLevel0 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray1,factorQuotation1
175     syn region factorArray1 contained matchgroup=hlLevel1 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray2,factorQuotation2
176     syn region factorArray2 contained matchgroup=hlLevel2 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray3,factorQuotation3
177     syn region factorArray3 contained matchgroup=hlLevel3 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray4,factorQuotation4
178     syn region factorArray4 contained matchgroup=hlLevel4 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray5,factorQuotation5
179     syn region factorArray5 contained matchgroup=hlLevel5 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray6,factorQuotation6
180     syn region factorArray6 contained matchgroup=hlLevel6 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray7,factorQuotation7
181     syn region factorArray7 contained matchgroup=hlLevel7 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray8,factorQuotation8
182     syn region factorArray8 contained matchgroup=hlLevel8 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray9,factorQuotation9
183     syn region factorArray9 contained matchgroup=hlLevel9 start=/\<\(\$\|[-a-zA-Z0-9]\+\)\?{\>/ end=/\<}\>/ contains=@factorCluster,factorArray0,factorQuotation0
184 endif
185
186 syn match factorBracketErr /\<\]\>/
187 syn match factorBracketErr /\<}\>/
188
189 syn sync lines=100
190
191 if version >= 508 || !exists("did_factor_syn_inits")
192     if version <= 508
193         let did_factor_syn_inits = 1
194         command -nargs=+ HiLink hi link <args>
195     else
196         command -nargs=+ HiLink hi def link <args>
197     endif
198
199     HiLink factorComment                Comment
200     HiLink factorShebang                PreProc
201     HiLink factorShebangErr             Error
202     HiLink factorStackEffect            Typedef
203     HiLink factorLiteralStackEffect     Typedef
204     HiLink factorTodo                   Todo
205     HiLink factorInclude                Include
206     HiLink factorRepeat                 Repeat
207     HiLink factorConditional            Conditional
208     HiLink factorKeyword                Keyword
209     HiLink factorCallQuotation          Keyword
210     HiLink factorExecute                Keyword
211     HiLink factorCallNextMethod         Keyword
212     HiLink factorOperator               Operator
213     HiLink factorFrySpecifier           Operator
214     HiLink factorBoolean                Boolean
215     HiLink factorBreakpoint             Debug
216     HiLink factorDefnDelims             Typedef
217     HiLink factorMethodDelims           Typedef
218     HiLink factorGenericDelims          Typedef
219     HiLink factorGenericNDelims         Typedef
220     HiLink factorConstructor            Typedef
221     HiLink factorConstructor2           Typedef
222     HiLink factorPrivate                Special
223     HiLink factorPrivateDefnDelims      Special
224     HiLink factorPrivateMethodDelims    Special
225     HiLink factorPGenericDelims         Special
226     HiLink factorPGenericNDelims        Special
227     HiLink factorEscape                 SpecialChar
228     HiLink factorString                 String
229     HiLink factorTriString              String
230     HiLink factorSbuf                   String
231     HiLink factorMultiStringContents    String
232     HiLink factorMultiStringDelims      Typedef
233     HiLink factorBracketErr             Error
234     HiLink factorComplex                Number
235     HiLink factorRatio                  Number
236     HiLink factorBinary                 Number
237     HiLink factorBinErr                 Error
238     HiLink factorHex                    Number
239     HiLink factorHexErr                 Error
240     HiLink factorNan                    Number
241     HiLink factorOctal                  Number
242     HiLink factorOctErr                 Error
243     HiLink factorFloat                  Float
244     HiLink factorInt                    Number
245     HiLink factorUsing                  Include
246     HiLink factorQualified              Include
247     HiLink factorQualifiedWith          Include
248     HiLink factorExclude                Include
249     HiLink factorFrom                   Include
250     HiLink factorRename                 Include
251     HiLink factorUse                    Include
252     HiLink factorUnuse                  Include
253     HiLink factorIn                     Define
254     HiLink factorChar                   Character
255     HiLink factorDelimiter              Delimiter
256     HiLink factorBackslash              Special
257     HiLink factorMBackslash             Special
258     HiLink factorLiteral                Special
259     HiLink factorLiteralBlock           Special
260     HiLink factorDeclaration            Typedef
261     HiLink factorSymbol                 Define
262     HiLink factorSymbols                Define
263     HiLink factorConstant               Define
264     HiLink factorAlias                  Define
265     HiLink factorSingleton              Define
266     HiLink factorSingletons             Define
267     HiLink factorMixin                  Typedef
268     HiLink factorInstance               Typedef
269     HiLink factorHook                   Typedef
270     HiLink factorMain                   Define
271     HiLink factorPostpone               Define
272     HiLink factorDefer                  Define
273     HiLink factorForget                 Define
274     HiLink factorAlien                  Define
275     HiLink factorSlot                   Define
276     HiLink factorIntersection           Typedef
277     HiLink factorTuple                  Typedef
278     HiLink factorError                  Typedef
279     HiLink factorUnion                  Typedef
280     HiLink factorStruct                 Typedef
281
282     if &bg == "dark"
283         hi   hlLevel0 ctermfg=red         guifg=red1
284         hi   hlLevel1 ctermfg=yellow      guifg=orange1
285         hi   hlLevel2 ctermfg=green       guifg=yellow1
286         hi   hlLevel3 ctermfg=cyan        guifg=greenyellow
287         hi   hlLevel4 ctermfg=magenta     guifg=green1
288         hi   hlLevel5 ctermfg=red         guifg=springgreen1
289         hi   hlLevel6 ctermfg=yellow      guifg=cyan1
290         hi   hlLevel7 ctermfg=green       guifg=slateblue1
291         hi   hlLevel8 ctermfg=cyan        guifg=magenta1
292         hi   hlLevel9 ctermfg=magenta     guifg=purple1
293     else
294         hi   hlLevel0 ctermfg=red         guifg=red3
295         hi   hlLevel1 ctermfg=darkyellow  guifg=orangered3
296         hi   hlLevel2 ctermfg=darkgreen   guifg=orange2
297         hi   hlLevel3 ctermfg=blue        guifg=yellow3
298         hi   hlLevel4 ctermfg=darkmagenta guifg=olivedrab4
299         hi   hlLevel5 ctermfg=red         guifg=green4
300         hi   hlLevel6 ctermfg=darkyellow  guifg=paleturquoise3
301         hi   hlLevel7 ctermfg=darkgreen   guifg=deepskyblue4
302         hi   hlLevel8 ctermfg=blue        guifg=darkslateblue
303         hi   hlLevel9 ctermfg=darkmagenta guifg=darkviolet
304     endif
305
306     delcommand HiLink
307 endif
308
309 let b:current_syntax = "factor"
310
311 " vim:set ft=vim sw=4: