Mercurial > vim
annotate runtime/syntax/elf.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 7bc41231fbc7 |
children | 46763b01cd9a |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: ELF | |
3 " Maintainer: Christian V. J. Brüssow <cvjb@cvjb.de> | |
4 " Last Change: Son 22 Jun 2003 20:43:14 CEST | |
5 " Filenames: *.ab,*.am | |
6 " URL: http://www.cvjb.de/comp/vim/elf.vim | |
2034 | 7 " $Id: elf.vim,v 1.1 2004/06/13 19:52:27 vimboss Exp $ |
7 | 8 " |
9 " ELF: Extensible Language Facility | |
10 " This is the Applix Inc., Macro and Builder programming language. | |
11 " It has nothing in common with the binary format called ELF. | |
12 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
13 " 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
|
14 if exists("b:current_syntax") |
7 | 15 finish |
16 endif | |
17 | |
18 " Case does not matter | |
19 syn case ignore | |
20 | |
21 " Environments | |
22 syn region elfEnvironment transparent matchgroup=Special start="{" matchgroup=Special end="}" contains=ALLBUT,elfBraceError | |
23 | |
24 " Unmatched braces | |
25 syn match elfBraceError "}" | |
26 | |
27 " All macros must have at least one of these definitions | |
28 syn keyword elfSpecial endmacro | |
29 syn region elfSpecial transparent matchgroup=Special start="^\(\(macro\)\|\(set\)\) \S\+$" matchgroup=Special end="^\(\(endmacro\)\|\(endset\)\)$" contains=ALLBUT,elfBraceError | |
30 | |
31 " Preprocessor Commands | |
32 syn keyword elfPPCom define include | |
33 | |
34 " Some keywords | |
35 syn keyword elfKeyword false true null | |
36 syn keyword elfKeyword var format object function endfunction | |
37 | |
38 " Conditionals and loops | |
39 syn keyword elfConditional if else case of endcase for to next while until return goto | |
40 | |
41 " All built-in elf macros end with an '@' | |
42 syn match elfMacro "[0-9_A-Za-z]\+@" | |
43 | |
44 " Strings and characters | |
45 syn region elfString start=+"+ skip=+\\\\\|\\"+ end=+"+ | |
46 | |
47 " Numbers | |
48 syn match elfNumber "-\=\<[0-9]*\.\=[0-9_]\>" | |
49 | |
50 " Comments | |
51 syn region elfComment start="/\*" end="\*/" | |
52 syn match elfComment "\'.*$" | |
53 | |
54 syn sync ccomment elfComment | |
55 | |
56 " Parenthesis | |
57 syn match elfParens "[\[\]()]" | |
58 | |
59 " Punctuation | |
60 syn match elfPunct "[,;]" | |
61 | |
62 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
63 " Only when an item doesn't have highlighting yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
64 command -nargs=+ HiLink hi def link <args> |
7 | 65 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
66 " The default methods for highlighting. Can be overridden later. |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
67 HiLink elfComment Comment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
68 HiLink elfPPCom Include |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
69 HiLink elfKeyword Keyword |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
70 HiLink elfSpecial Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
71 HiLink elfEnvironment Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
72 HiLink elfBraceError Error |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
73 HiLink elfConditional Conditional |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
74 HiLink elfMacro Function |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
75 HiLink elfNumber Number |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
76 HiLink elfString String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
77 HiLink elfParens Delimiter |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
78 HiLink elfPunct Delimiter |
7 | 79 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
80 delcommand HiLink |
7 | 81 |
82 let b:current_syntax = "elf" | |
83 | |
84 " vim:ts=8:sw=4:nocindent:smartindent: |