view runtime/syntax/jargon.vim @ 27138:1fc0421a448f v8.2.4098

patch 8.2.4098: typing "interrupt" at debug prompt may keep exception around Commit: https://github.com/vim/vim/commit/069613c9e8645acea3a128c15ebdbf56e2219d44 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 15 15:23:44 2022 +0000 patch 8.2.4098: typing "interrupt" at debug prompt may keep exception around Problem: Typing "interrupt" at debug prompt may keep exception around, causing function calls to fail. Solution: Discard any exception at the toplevel. (closes #9532)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Jan 2022 16:30:02 +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"