mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] Add syntax/ftdetect for dream files
This commit is contained in:
parent
4386c8c677
commit
2be37d4c4b
2 changed files with 12 additions and 0 deletions
|
@ -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
10
nvim/syntax/dream.vim
Normal 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
|
Loading…
Reference in a new issue