-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathk7.vim
More file actions
41 lines (33 loc) · 1.15 KB
/
k7.vim
File metadata and controls
41 lines (33 loc) · 1.15 KB
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
40
41
" Vim syntax file
" Language: k7
" Maintainer: dougy147
syn keyword k7Keywords import
syn keyword k7Keywords for while do done break continue
syn keyword k7Keywords if then else elif end
syn keyword k7Keywords and or not mod
syn keyword k7Keywords alloc
syn keyword k7Keywords func return
syn keyword k7Keywords def
syn keyword k7Keywords in var array
syn keyword k7Keywords exit
syn match k7Keywords /unsafe-begin\|unsafe-end/
syn keyword k7Keywords type struct field
syn keyword k7Keywords enum
syn match k7MemOp /\(^\| \)@m\($\| \)\|\(^\| \)m>\($\| \)\|\(^\| \)>m\($\| \)/
syn match k7MemOp /(\(8\|16\|32\))>\|>(\(8\|16\|32\))/
syn keyword k7Types int u8 u16 u32 u64 char bool ptr
syn match k7Comment "#.*$"
syn match k7String "\"[^"]*\""
syn match k7CharLitt "'\\\?[^']'"
syn keyword k7Todo TODO FIXME XXX NOTE containedin=K7Comment
hi def link k7Keywords Statement
hi def link k7Comment Comment
hi def link k7String String
hi def link k7Todo Todo
hi def link k7Types Type
hi def k7MemOp ctermfg=darkgreen cterm=BOLD
hi def k7CharLitt ctermfg=blue
set nosmartindent
"set tabstop=2 softtabstop=2 shiftwidth=2
"set expandtab
let b:current_syntax = "k7"