2014-07-10 21:05:51 -07:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: Jargon File
|
2021-04-22 20:08:48 -07:00
|
|
|
" Maintainer: Dan Church (https://github.com/h3xx)
|
2021-04-27 18:26:36 -07:00
|
|
|
" Last Change: 2020 Mar 16
|
2014-07-10 21:05:51 -07:00
|
|
|
"
|
2017-04-28 12:06:44 -07:00
|
|
|
" quit when a syntax file was already loaded
|
|
|
|
if exists("b:current_syntax")
|
2014-07-10 21:05:51 -07:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2021-04-27 18:26:36 -07:00
|
|
|
syn region jargonHeader start="^:" end="$" contains=jargonChaptTitle
|
|
|
|
syn match jargonChaptTitle /:[^:]*:/ contained
|
|
|
|
syn match jargonEmailAddr /[+._A-Za-z0-9-]\+@[+._A-Za-z0-9-]\+/
|
|
|
|
syn match jargonUrl +\(https\?\|ftp\)://[^\t )"]*+
|
|
|
|
syn region jargonMark start="{[^\t {}]" end="}"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Define the default highlighting.
|
2017-04-28 12:06:44 -07:00
|
|
|
" Only when an item doesn't have highlighting yet
|
2021-04-27 18:26:36 -07:00
|
|
|
hi def link jargonChaptTitle Title
|
|
|
|
hi def link jargonEmailAddr Comment
|
|
|
|
hi def link jargonUrl Comment
|
|
|
|
hi def link jargonMark Label
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
let b:current_syntax = "jargon"
|