2004-06-13 20:20:40 +00:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: Jargon File
|
2019-09-27 19:34:08 +02:00
|
|
|
" Maintainer: Dan Church (https://github.com/h3xx)
|
2020-03-19 20:37:11 +01:00
|
|
|
" Last Change: 2020 Mar 16
|
2004-06-13 20:20:40 +00:00
|
|
|
"
|
2016-08-30 23:26:57 +02:00
|
|
|
" quit when a syntax file was already loaded
|
|
|
|
if exists("b:current_syntax")
|
2004-06-13 20:20:40 +00:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2020-03-19 20:37:11 +01: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="}"
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
" Define the default highlighting.
|
2016-08-30 23:26:57 +02:00
|
|
|
" Only when an item doesn't have highlighting yet
|
2020-03-19 20:37:11 +01:00
|
|
|
hi def link jargonChaptTitle Title
|
|
|
|
hi def link jargonEmailAddr Comment
|
|
|
|
hi def link jargonUrl Comment
|
|
|
|
hi def link jargonMark Label
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
let b:current_syntax = "jargon"
|