simple vim syntax highlighting

This commit is contained in:
Andrew Kelley 2015-11-24 23:44:08 -07:00
parent 505317a12f
commit afac1a0123
2 changed files with 15 additions and 0 deletions

1
doc/vim/ftdetect/zig.vim Normal file
View File

@ -0,0 +1 @@
au BufRead,BufNewFile *.zig set filetype=zig

14
doc/vim/syntax/zig.vim Normal file
View File

@ -0,0 +1,14 @@
" Vim syntax file
" Language: Zig
" Maintainer: Andrew Kelley
" Latest Revision: 24 November 2015
if exists("b:current_syntax")
finish
endif
syn keyword zigKeyword fn return mut const extern unreachable
let b:current_syntax = "zig"
hi def link zigKeyword Keyword