-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrain.vim
More file actions
40 lines (32 loc) · 794 Bytes
/
brain.vim
File metadata and controls
40 lines (32 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
if !exists("main_syntax")
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let main_syntax = 'brain'
endif
syn match bfMath "[-+*/%]"
syn match bfPointer "[<>^]"
syn match bfLoop "[[\]]"
syn match bfLoop2 "[{}]"
syn match bfIO "[.,$#]"
syn match bfComment "[^-+<>[\].,]\+"
if version >= 508 || !exists("did_brain_syn_inits")
if version < 508
let did_brain_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink bfMath Identifier
HiLink bfPointer Type
HiLink bfLoop Conditional
HiLink bfIO PreProc
HiLink bfComment Comment
delcommand HiLink
endif
let b:current_syntax = "brain"
if main_syntax == 'brain'
unlet main_syntax
endif