Browse Source

fix vim syntax highlighting

main
cynthia 5 months ago
parent
commit
8ca697c24b
  1. 8
      detail.vim/syntax/detail.vim

8
detail.vim/syntax/detail.vim

@ -1,11 +1,13 @@
syntax clear
setlocal nonumber
syn include @Markdown syntax/markdown.vim
syn match detailTitle "\~title.*$"
syn match detailPassage "\~detail.*$"
syn match detailLink "|[^|]*|"
syn match detailText "^[^~]" contains=@Markdown,detailLink
syn match detailText "^[^~]*" contains=@Markdown,detailLink
syn match detailTitle "^\~title.*$"
syn match detailPassage "^\~detail.*$"
hi link detailTitle Title
hi link detailPassage Identifier

Loading…
Cancel
Save