preliminary vim support
I don't really know vim configuration
This commit is contained in:
4
vim/compiler/newt.vim
Normal file
4
vim/compiler/newt.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
let current_compiler = 'newt'
|
||||
|
||||
" doesn't work
|
||||
CompilerSet errorformat='ERROR at (%l, %c)'
|
||||
1
vim/ftdetect/newt.vim
Normal file
1
vim/ftdetect/newt.vim
Normal file
@@ -0,0 +1 @@
|
||||
autocmd BufRead,BufNewFile *.newt set filetype=newt
|
||||
6
vim/ftplugin/newt.vim
Normal file
6
vim/ftplugin/newt.vim
Normal file
@@ -0,0 +1,6 @@
|
||||
setlocal syntax=newt
|
||||
setlocal commentstring=--\ %s
|
||||
setlocal expandtab
|
||||
setlocal tabstop=2
|
||||
|
||||
setlocal makeprg=build/exec/newt\ %
|
||||
0
vim/indent/newt.vim
Normal file
0
vim/indent/newt.vim
Normal file
17
vim/syntax/newt.vim
Normal file
17
vim/syntax/newt.vim
Normal 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"
|
||||
Reference in New Issue
Block a user