aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/jargon.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-04 19:18:16 -0400
committerGitHub <noreply@github.com>2021-05-04 19:18:16 -0400
commit4ad30f775e5564c539324b4818886f067d2ecd99 (patch)
tree97a554379bda7e5fc77e58c690db3f5a72db8c74 /runtime/syntax/jargon.vim
parent63d8a8f4e8b02e524d85aed08aa16c5d9815598c (diff)
parentd5b063aec1db95704b37a77fdbd968cb6b48cc3b (diff)
downloadrneovim-4ad30f775e5564c539324b4818886f067d2ecd99.tar.gz
rneovim-4ad30f775e5564c539324b4818886f067d2ecd99.tar.bz2
rneovim-4ad30f775e5564c539324b4818886f067d2ecd99.zip
Merge pull request #14424 from janlazo/vim-8.1.1726
vim-patch:8.1.1726,8.2.{296,860,1827,2388,2788,2790,2801}
Diffstat (limited to 'runtime/syntax/jargon.vim')
-rw-r--r--runtime/syntax/jargon.vim21
1 files changed, 11 insertions, 10 deletions
diff --git a/runtime/syntax/jargon.vim b/runtime/syntax/jargon.vim
index 415f2bc972..c4b017d9e6 100644
--- a/runtime/syntax/jargon.vim
+++ b/runtime/syntax/jargon.vim
@@ -1,23 +1,24 @@
" Vim syntax file
" Language: Jargon File
-" Maintainer: <rms@poczta.onet.pl>
-" Last Change: 2001 May 26
+" Maintainer: Dan Church (https://github.com/h3xx)
+" Last Change: 2020 Mar 16
"
" quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
-syn match jargonChaptTitle /:[^:]*:/
-syn match jargonEmailAddr /[^<@ ^I]*@[^ ^I>]*/
-syn match jargonUrl +\(http\|ftp\)://[^\t )"]*+
-syn match jargonMark /{[^}]*}/
+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="}"
" Define the default highlighting.
" Only when an item doesn't have highlighting yet
-hi def link jargonChaptTitle Title
-hi def link jargonEmailAddr Comment
-hi def link jargonUrl Comment
-hi def link jargonMark Label
+hi def link jargonChaptTitle Title
+hi def link jargonEmailAddr Comment
+hi def link jargonUrl Comment
+hi def link jargonMark Label
let b:current_syntax = "jargon"