[nvim] Add syntax/ftdetect for dream files
This commit is contained in:
parent
4386c8c677
commit
2be37d4c4b
|
@ -4,4 +4,6 @@ endfunction
|
|||
|
||||
augroup dotfilesftdetect
|
||||
autocmd BufWritePost PKGBUILD :call s:genSrcInfo()
|
||||
|
||||
autocmd BufNewFile,BufRead *.dream setf dream
|
||||
augroup END
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
" Syntax highlighting for .dream files.
|
||||
syntax match dreamGrime '\v\d'
|
||||
syntax match dreamComments '\v^\^(.*)$'
|
||||
syntax match dreamCommands '\v^\^ (tags|title|secret|align|curtains|grimes|colour) \^ (.*) \^$'
|
||||
syntax match dreamIllegal '\v^\^ (justify|color) \^ (.*) \^$'
|
||||
|
||||
hi def link dreamGrime Identifier
|
||||
hi def link dreamComments Comment
|
||||
hi def link dreamCommands Statement
|
||||
hi def link dreamIllegal Error
|
Loading…
Reference in New Issue