-
Notifications
You must be signed in to change notification settings - Fork 76
/
cubicaltt.vim
29 lines (24 loc) · 879 Bytes
/
cubicaltt.vim
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
" Vim syntax file
" Language: cubicaltt
" Author: Carlo Angiuli
" Last Change: 2017 November 6
"
" For https://github.com/mortberg/cubicaltt
"
" Move this file to ~/.vim/syntax/ and add the following line to your .vimrc:
" au BufNewFile,BufRead *.ctt setf cubicaltt
if exists("b:current_syntax")
finish
endif
syn keyword cttKeyword hdata data import mutual let in split with module where
syn keyword cttKeyword opaque transparent[] transparent_all
syn keyword cttOperator U PathP comp transport fill Glue glue unglue Id idC idJ
syn match cttOperator '[:=|*_<>\-@]\|->\|\\\|\\/\|/\\'
syn keyword cttUndef undefined
syn region cttComment start="--" end="$"
syn region cttComment start="{-" end="-}"
hi def link cttKeyword Structure
hi def link cttOperator Identifier
hi def link cttUndef Todo
hi def link cttComment Comment
let b:current_syntax = "cubicaltt"