Move everything out
This commit is contained in:
13
tools/vim/README.txt
Normal file
13
tools/vim/README.txt
Normal file
@ -0,0 +1,13 @@
|
||||
Vim syntax highlighting for Fasto.
|
||||
Created by Oleksandr Shturmov <oleks@oleks.info> on November 1, 2014.
|
||||
|
||||
To install:
|
||||
|
||||
1. Copy fasto.vim into your ~/.vim/syntax/ (create the directory if it doesn't
|
||||
already exist).
|
||||
|
||||
2. Add the following line to your ~/.vimrc. This will make sure that any .fo
|
||||
file is recognised as a fasto file. It is important that fasto.vim is present
|
||||
in ~/.vim/syntax/ for syntax highlighting to work.
|
||||
|
||||
au BufNewFile,BufRead *.fo setlocal ft=fasto
|
22
tools/vim/fasto.vim
Normal file
22
tools/vim/fasto.vim
Normal file
@ -0,0 +1,22 @@
|
||||
" Vim syntax file for Fasto.
|
||||
" Created by Oleksandr Shturmov <oleks@oleks.info> on November 1, 2014.
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
end
|
||||
|
||||
syn keyword fastoKeyword fun fn op if then else let in
|
||||
syn keyword fastoType int char bool
|
||||
syn keyword fastoFunction read write iota replicate map reduce scan
|
||||
|
||||
syn match fastoString "\"\([ -!#-&(-[\]-~]\|\\[\x0-\x7f]\)*\""
|
||||
|
||||
syn match fastoComment "//.*$"
|
||||
|
||||
highlight link fastoKeyword Keyword
|
||||
highlight link fastoType Type
|
||||
highlight link fastoFunction Function
|
||||
|
||||
highlight link fastoString String
|
||||
|
||||
highlight link fastoComment Comment
|
Reference in New Issue
Block a user