annotate runtime/syntax/mmp.vim @ 22643:71b57779177d v8.2.1870

patch 8.2.1870: Vim9: no need to keep all script variables Commit: https://github.com/vim/vim/commit/39ca4127a094d8aca6f77c01be4f3fea506d5cb7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 20 14:25:07 2020 +0200 patch 8.2.1870: Vim9: no need to keep all script variables Problem: Vim9: no need to keep all script variables. Solution: Only keep script variables when a function was defined that could use them. Fix freeing static string on exit.
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Oct 2020 14:30:04 +0200
parents 43efa4f5a8ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
2 " Language: Symbian meta-makefile definition (MMP)
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
3 " Maintainer: Ron Aaron <ron@ronware.org>
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
4 " Last Change: 2007/11/07
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
5 " URL: http://ronware.org/wiki/vim/mmp
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
6 " Filetypes: *.mmp
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
7
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1620
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: 1620
diff changeset
9 if exists("b:current_syntax")
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
10 finish
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
11 endif
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
12
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
13 syn case ignore
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
14
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
15 syn match mmpComment "//.*"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
16 syn region mmpComment start="/\*" end="\*\/"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
17
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
18 syn keyword mmpKeyword aif asspabi assplibrary aaspexports baseaddress
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
19 syn keyword mmpKeyword debuglibrary deffile document epocheapsize
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
20 syn keyword mmpKeyword epocprocesspriority epocstacksize exportunfrozen
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
21 syn keyword mmpStorage lang library linkas macro nostrictdef option
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
22 syn keyword mmpStorage resource source sourcepath srcdbg startbitmap
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
23 syn keyword mmpStorage start end staticlibrary strictdepend systeminclude
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
24 syn keyword mmpStorage systemresource target targettype targetpath uid
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
25 syn keyword mmpStorage userinclude win32_library
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
26
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
27 syn match mmpIfdef "\#\(include\|ifdef\|ifndef\|if\|endif\|else\|elif\)"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
28
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
29 syn match mmpNumber "\d+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
30 syn match mmpNumber "0x\x\+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
31
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
32
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
33 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
34 " Only when an item doesn't have highlighting yet
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
35 if !exists("did_mmp_syntax_inits")
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
36 let did_mmp_syntax_inits=1
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
37
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
38 hi def link mmpComment Comment
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
39 hi def link mmpKeyword Keyword
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
40 hi def link mmpStorage StorageClass
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
41 hi def link mmpString String
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
42 hi def link mmpNumber Number
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
43 hi def link mmpOrdinal Operator
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
44 hi def link mmpIfdef PreCondit
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
45 endif
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
46
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
47 let b:current_syntax = "mmp"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
48
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
49 " vim: ts=8