This commit is contained in:
NikolajDanger
2022-04-30 16:18:13 +02:00
parent 2465cf84b7
commit b9ef4bb00e
174 changed files with 20605 additions and 100 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

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