Mercurial > vim
annotate runtime/syntax/jargon.vim @ 27076:ceff6a546748 v8.2.4067
patch 8.2.4067: Vim9: cannot call imported function with :call
Commit: https://github.com/vim/vim/commit/f111cdfae6edf697390e0d9a85082a6526b03da6
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 12 12:48:17 2022 +0000
patch 8.2.4067: Vim9: cannot call imported function with :call
Problem: Vim9: cannot call imported function with :call. (Drew Vogel)
Solution: Translate the function name. (closes https://github.com/vim/vim/issues/9510)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Jan 2022 14:00:06 +0100 |
parents | bceeded72898 |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Jargon File | |
18186 | 3 " Maintainer: Dan Church (https://github.com/h3xx) |
19721 | 4 " Last Change: 2020 Mar 16 |
7 | 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 | |
19721 | 11 syn region jargonHeader start="^:" end="$" contains=jargonChaptTitle |
12 syn match jargonChaptTitle /:[^:]*:/ contained | |
13 syn match jargonEmailAddr /[+._A-Za-z0-9-]\+@[+._A-Za-z0-9-]\+/ | |
14 syn match jargonUrl +\(https\?\|ftp\)://[^\t )"]*+ | |
15 syn region jargonMark start="{[^\t {}]" end="}" | |
7 | 16 |
17 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
18 " Only when an item doesn't have highlighting yet |
19721 | 19 hi def link jargonChaptTitle Title |
20 hi def link jargonEmailAddr Comment | |
21 hi def link jargonUrl Comment | |
22 hi def link jargonMark Label | |
7 | 23 |
24 let b:current_syntax = "jargon" |