File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments