diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-27 21:26:36 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-27 21:31:28 -0400 |
| commit | c287e734f10e074c70276fa74e8a938466018f4b (patch) | |
| tree | 50e7ae1c4da146a1c92d5c8dd3207766abdab8fe /runtime/syntax/jargon.vim | |
| parent | e7f6c520141c104960790d9bb2e52260ba959b76 (diff) | |
| download | rneovim-c287e734f10e074c70276fa74e8a938466018f4b.tar.gz rneovim-c287e734f10e074c70276fa74e8a938466018f4b.tar.bz2 rneovim-c287e734f10e074c70276fa74e8a938466018f4b.zip | |
vim-patch:ff78155aa175
Update runtime files
https://github.com/vim/vim/commit/ff78155aa1755aced96a3b343e81939c94aac721
Omit menu_info().
Diffstat (limited to 'runtime/syntax/jargon.vim')
| -rw-r--r-- | runtime/syntax/jargon.vim | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/runtime/syntax/jargon.vim b/runtime/syntax/jargon.vim index 05f45a2c9b..c4b017d9e6 100644 --- a/runtime/syntax/jargon.vim +++ b/runtime/syntax/jargon.vim @@ -1,23 +1,24 @@ " Vim syntax file " Language: Jargon File " Maintainer: Dan Church (https://github.com/h3xx) -" Last Change: 2019 Sep 27 +" 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 region jargonMark start="{" end="}" +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" |