Browse Source

vim highlighting plugin

look i know the tools/languages i use make me look like a techbro but i
swear i mean this to be accessible. it's just that the tools that are
easiest for me to use are... usable for everyone else
main
cynthia 8 months ago
parent
commit
6c38c3121a
  1. 1
      detail.vim/ftdetect/detail.vim
  2. 14
      detail.vim/syntax/detail.vim

1
detail.vim/ftdetect/detail.vim

@ -0,0 +1 @@
au BufNewFile,BufRead *.detail set filetype=detail

14
detail.vim/syntax/detail.vim

@ -0,0 +1,14 @@
syntax clear
syn include @Markdown syntax/markdown.vim
syn match detailTitle "\~title.*$"
syn match detailPassage "\~detail.*$"
syn match detailLink "#[^#]*#"
syn match detailText "^[^~]" contains=@Markdown,detailLink
hi link detailTitle Title
hi link detailPassage Identifier
hi link detailLink Statement
let b:current_syntax = "detail"
Loading…
Cancel
Save