[nvim] Add syntax/ftdetect for dream files

This commit is contained in:
Alyxia Sother 2022-01-30 01:18:46 +01:00
parent 4386c8c677
commit 2be37d4c4b
No known key found for this signature in database
GPG Key ID: 355968D14144B739
2 changed files with 12 additions and 0 deletions

View File

@ -4,4 +4,6 @@ endfunction
augroup dotfilesftdetect
autocmd BufWritePost PKGBUILD :call s:genSrcInfo()
autocmd BufNewFile,BufRead *.dream setf dream
augroup END

10
nvim/syntax/dream.vim Normal file
View File

@ -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