Skip to content

Commit 5743434

Browse files
cangiulimortberg
authored andcommitted
rudimentary vim syntax file
1 parent 386a6cb commit 5743434

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

cubicaltt.vim

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
" Vim syntax file
2+
" Language: cubicaltt
3+
" Author: Carlo Angiuli
4+
" Last Change: 2017 November 6
5+
"
6+
" For https://github.com/mortberg/cubicaltt
7+
"
8+
" Move this file to ~/.vim/syntax/ and add the following line to your .vimrc:
9+
" au BufNewFile,BufRead *.ctt setf cubicaltt
10+
11+
if exists("b:current_syntax")
12+
finish
13+
endif
14+
15+
syn keyword cttKeyword hdata data import mutual let in split with module where
16+
syn keyword cttKeyword opaque transparent[] transparent_all
17+
syn keyword cttOperator U PathP comp transport fill Glue glue unglue Id idC idJ
18+
syn match cttOperator '[:=|*_<>\-@]\|->\|\\\|\\/\|/\\'
19+
syn keyword cttUndef undefined
20+
21+
syn region cttComment start="--" end="$"
22+
syn region cttComment start="{-" end="-}"
23+
24+
hi def link cttKeyword Structure
25+
hi def link cttOperator Identifier
26+
hi def link cttUndef Todo
27+
hi def link cttComment Comment
28+
29+
let b:current_syntax = "cubicaltt"

0 commit comments

Comments
 (0)