Mercurial > vim
comparison runtime/syntax/jargon.vim @ 19721:bceeded72898
Update runtime files
Commit: https://github.com/vim/vim/commit/ff78155aa1755aced96a3b343e81939c94aac721
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 19 20:37:11 2020 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 19 Mar 2020 20:45:06 +0100 |
parents | 03b854983b14 |
children |
comparison
equal
deleted
inserted
replaced
19720:69b650ef768a | 19721:bceeded72898 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Jargon File | 2 " Language: Jargon File |
3 " Maintainer: Dan Church (https://github.com/h3xx) | 3 " Maintainer: Dan Church (https://github.com/h3xx) |
4 " Last Change: 2019 Sep 27 | 4 " Last Change: 2020 Mar 16 |
5 " | 5 " |
6 " quit when a syntax file was already loaded | 6 " quit when a syntax file was already loaded |
7 if exists("b:current_syntax") | 7 if exists("b:current_syntax") |
8 finish | 8 finish |
9 endif | 9 endif |
10 | 10 |
11 syn match jargonChaptTitle /:[^:]*:/ | 11 syn region jargonHeader start="^:" end="$" contains=jargonChaptTitle |
12 syn match jargonEmailAddr /[^<@ ^I]*@[^ ^I>]*/ | 12 syn match jargonChaptTitle /:[^:]*:/ contained |
13 syn match jargonUrl +\(http\|ftp\)://[^\t )"]*+ | 13 syn match jargonEmailAddr /[+._A-Za-z0-9-]\+@[+._A-Za-z0-9-]\+/ |
14 syn region jargonMark start="{" end="}" | 14 syn match jargonUrl +\(https\?\|ftp\)://[^\t )"]*+ |
15 syn region jargonMark start="{[^\t {}]" end="}" | |
15 | 16 |
16 " Define the default highlighting. | 17 " Define the default highlighting. |
17 " Only when an item doesn't have highlighting yet | 18 " Only when an item doesn't have highlighting yet |
18 hi def link jargonChaptTitle Title | 19 hi def link jargonChaptTitle Title |
19 hi def link jargonEmailAddr Comment | 20 hi def link jargonEmailAddr Comment |
20 hi def link jargonUrl Comment | 21 hi def link jargonUrl Comment |
21 hi def link jargonMark Label | 22 hi def link jargonMark Label |
22 | 23 |
23 let b:current_syntax = "jargon" | 24 let b:current_syntax = "jargon" |