view runtime/syntax/jargon.vim @ 27527:92fe6aca4907 v8.2.4291

patch 8.2.4291: error number used twice Commit: https://github.com/vim/vim/commit/5658ca343f49a770ec068a858f52547ce822afa1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 3 20:09:19 2022 +0000 patch 8.2.4291: error number used twice Problem: Error number used twice. Solution: Renumber of of the errors.
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Feb 2022 21:15:03 +0100
parents bceeded72898
children
line wrap: on
line source

" Vim syntax file
" Language:	Jargon File
" 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 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

let b:current_syntax = "jargon"