Mercurial > vim
annotate runtime/syntax/dylanlid.vim @ 21077:794bf2be08be v8.2.1090
patch 8.2.1090: may use NULL pointer when skipping over name
Commit: https://github.com/vim/vim/commit/9b5384b97e832958573ffdcd3c1e230635b434e4
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 29 22:31:36 2020 +0200
patch 8.2.1090: may use NULL pointer when skipping over name
Problem: May use NULL pointer when skipping over name.
Solution: Always set ll_name_end.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Jun 2020 22:45:07 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Dylan Library Interface Files | |
3 " Authors: Justus Pendleton <justus@acm.org> | |
4 " Brent Fulgham <bfulgham@debian.org> | |
5 " Last Change: Fri Sep 29 13:50:20 PDT 2000 | |
6 " | |
7 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
8 " 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
|
9 if exists("b:current_syntax") |
7 | 10 finish |
11 endif | |
12 | |
13 syn case ignore | |
14 | |
15 syn region dylanlidInfo matchgroup=Statement start="^" end=":" oneline | |
16 syn region dylanlidEntry matchgroup=Statement start=":%" end="$" oneline | |
17 | |
18 syn sync lines=50 | |
19 | |
20 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
21 " Only when an item doesn't have highlighting yet |
7 | 22 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
23 hi def link dylanlidInfo Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
24 hi def link dylanlidEntry String |
7 | 25 |
26 | |
27 let b:current_syntax = "dylanlid" | |
28 | |
29 " vim:ts=8 |