fasto unzipped

This commit is contained in:
NikolajDanger
2022-05-04 10:40:19 +02:00
commit 642fcbd636
117 changed files with 11962 additions and 0 deletions

View 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
fasto/tools/vim/fasto.vim Normal file
View 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