Mercurial > vim
annotate runtime/syntax/jargon.vim @ 13756:c38f29387245 v8.0.1750
patch 8.0.1750: crash when clearing loccation list in autocommand
commit https://github.com/vim/vim/commit/3b9474b4ad4d85b5396f7f641b436f193dc9d486
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 23 21:29:48 2018 +0200
patch 8.0.1750: crash when clearing loccation list in autocommand
Problem: Crash when clearing loccation list in autocommand.
Solution: Check if "qi" equals "ql_info". (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 23 Apr 2018 21:30:06 +0200 |
parents | 46763b01cd9a |
children | 03b854983b14 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Jargon File | |
3 " Maintainer: <rms@poczta.onet.pl> | |
4 " Last Change: 2001 May 26 | |
5 " | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
11 syn match jargonChaptTitle /:[^:]*:/ | |
12 syn match jargonEmailAddr /[^<@ ^I]*@[^ ^I>]*/ | |
13 syn match jargonUrl +\(http\|ftp\)://[^\t )"]*+ | |
14 syn match jargonMark /{[^}]*}/ | |
15 | |
16 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
17 " Only when an item doesn't have highlighting yet |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
18 hi def link jargonChaptTitle Title |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
19 hi def link jargonEmailAddr Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
20 hi def link jargonUrl Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
21 hi def link jargonMark Label |
7 | 22 |
23 let b:current_syntax = "jargon" |