From 5743434e82cb2cc7afd98e7850d5432bd2053b44 Mon Sep 17 00:00:00 2001 From: Carlo Angiuli Date: Mon, 6 Nov 2017 16:10:20 -0500 Subject: [PATCH] rudimentary vim syntax file --- cubicaltt.vim | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cubicaltt.vim diff --git a/cubicaltt.vim b/cubicaltt.vim new file mode 100644 index 0000000..7ff0f9a --- /dev/null +++ b/cubicaltt.vim @@ -0,0 +1,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" -- 2.34.1