Mercurial > vim
annotate runtime/syntax/master.vim @ 33160:4ecf54d709b3 v9.0.1862
patch 9.0.1862: Vim9 Garbage Collection issues
Commit: https://github.com/vim/vim/commit/e651e110c17656a263dd017b14c85b332163a58d
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Sep 4 07:51:01 2023 +0200
patch 9.0.1862: Vim9 Garbage Collection issues
Problem: Vim9 Garbage Collection issues
Solution: Class members are garbage collected early leading to
use-after-free problems. Handle the garbage
collection of classes properly.
closes: #13019
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 04 Sep 2023 08:00:06 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Focus Master File | |
3 " Maintainer: Rob Brady <robb@datatone.com> | |
2034 | 4 " Last Change: $Date: 2004/06/13 15:54:03 $ |
7 | 5 " URL: http://www.datatone.com/~robb/vim/syntax/master.vim |
2034 | 6 " $Revision: 1.1 $ |
7 | 7 |
8 " this is a very simple syntax file - I will be improving it | |
9 " add entire DEFINE syntax | |
10 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
11 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
12 if exists("b:current_syntax") |
7 | 13 finish |
14 endif | |
15 | |
16 syn case match | |
17 | |
18 " A bunch of useful keywords | |
19 syn keyword masterKeyword FILENAME SUFFIX SEGNAME SEGTYPE PARENT FIELDNAME | |
20 syn keyword masterKeyword FIELD ALIAS USAGE INDEX MISSING ON | |
21 syn keyword masterKeyword FORMAT CRFILE CRKEY | |
22 syn keyword masterDefine DEFINE DECODE EDIT | |
23 syn region masterString start=+"+ end=+"+ | |
24 syn region masterString start=+'+ end=+'+ | |
25 syn match masterComment "\$.*" | |
26 | |
27 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
28 " Only when an item doesn't have highlighting yet |
7 | 29 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
30 hi def link masterKeyword Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
31 hi def link masterComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
32 hi def link masterString String |
7 | 33 |
34 | |
35 let b:current_syntax = "master" | |
36 | |
37 " vim: ts=8 |