preliminary vim support

I don't really know vim configuration
This commit is contained in:
2024-10-22 22:09:01 -07:00
parent fe323618e7
commit 0843ae93e1
5 changed files with 28 additions and 0 deletions

17
vim/syntax/newt.vim Normal file
View File

@@ -0,0 +1,17 @@
syn keyword newtInfix infix infixl infixr
syn keyword newtKW data where let in case of
syn keyword newtLet let in
syn match newtIdentifier "[a-zA-Z][a-zA-Z]*" contained
syn keyword newtStructure data import module where
syn region newtBlockComment start="/-" end="-/" contained
syn match newtLineComment "--.*$" contains=@Spell
" no idea why this works for idris but not here
"highlight dev link newtIdentifier Identifier
highlight def link newtInfix PreProc
highlight def link newtBlockComment Comment
highlight def link newtLineComment Comment
highlight def link newtLet Structure
highlight def link newtStructure Structure
let b:current_syntax = "newt"