Mercurial > vim
annotate runtime/syntax/htmlcheetah.vim @ 15671:0a4dfbb312ce v8.1.0843
patch 8.1.0843: memory leak when running "make test_cd"
commit https://github.com/vim/vim/commit/e0de2164f62a1736cdc64dbf804b77db8af90c10
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 29 20:17:28 2019 +0100
patch 8.1.0843: memory leak when running "make test_cd"
Problem: Memory leak when running "make test_cd".
Solution: Free the stack element when failing. (Dominique Pelle,
closes #3877)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 29 Jan 2019 20:30:14 +0100 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: HTML with Cheetah tags | |
3 " Maintainer: Max Ischenko <mfi@ukr.net> | |
4 " Last Change: 2003-05-11 | |
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 if !exists("main_syntax") | |
12 let main_syntax = 'html' | |
13 endif | |
14 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
15 runtime! syntax/cheetah.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
16 runtime! syntax/html.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
17 unlet b:current_syntax |
7 | 18 |
19 syntax cluster htmlPreproc add=cheetahPlaceHolder | |
20 syntax cluster htmlString add=cheetahPlaceHolder | |
21 | |
22 let b:current_syntax = "htmlcheetah" | |
23 | |
24 |