annotate runtime/syntax/ld.vim @ 16413:4734d601ebdd v8.1.1211

patch 8.1.1211: not all user command code is tested commit https://github.com/vim/vim/commit/e61e548dd6a20471fd81160b1c2a16089505ec8c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 27 15:05:12 2019 +0200 patch 8.1.1211: not all user command code is tested Problem: Not all user command code is tested. Solution: Add more tests.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Apr 2019 15:15:07 +0200
parents 1218c5353e2b
children 03b854983b14
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: ld(1) script
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
4 " Latest Revision: 2006-04-19
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
5
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
7 finish
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
8 endif
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
9
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
11 set cpo&vim
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
12
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
13 syn keyword ldTodo contained TODO FIXME XXX NOTE
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
14
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
15 syn region ldComment start='/\*' end='\*/' contains=ldTodo,@Spell
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
16
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
17 syn region ldFileName start=+"+ end=+"+
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
18
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 372
diff changeset
19 syn keyword ldPreProc SECTIONS MEMORY OVERLAY PHDRS VERSION INCLUDE
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
20 syn match ldPreProc '\<VERS_\d\+\.\d\+'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
21
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
22 syn keyword ldFunction ABSOLUTE ADDR ALIGN BLOCK DATA_SEGMENT_ALIGN
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
23 \ DATA_SEGMENT_END DATA_SEGMENT_RELRO_END DEFINED
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
24 \ LOADADDR MAX MIN NEXT SIZEOF SIZEOF_HEADERS
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
25 \ sizeof_headers
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
26
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 372
diff changeset
27 syn keyword ldKeyword ENTRY INPUT GROUP OUTPUT
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
28 \ SEARCH_DIR STARTUP OUTPUT_FORMAT TARGET
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
29 \ ASSERT EXTERN FORCE_COMMON_ALLOCATION
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
30 \ INHIBIT_COMMON_ALLOCATION NOCROSSREFS OUTPUT_ARCH
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
31 \ PROVIDE EXCLUDE_FILE SORT KEEP FILL
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
32 \ CREATE_OBJECT_SYMBOLS CONSTRUCTORS SUBALIGN
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
33 \ FILEHDR AT __asm__ ABSOLUTE
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
34
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
35 syn keyword ldDataType BYTE SHORT LONG QUAD SQUAD
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
36 syn keyword ldOutputType NOLOAD DSECT COPY INFO OVERLAY
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
37 syn keyword ldPTType PT_NULL PT_LOAD PT_DYNAMIC PT_INTERP
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
38 \ PT_NOTE PT_SHLIB PT_PHDR
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
39
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
40 syn keyword ldSpecial COMMON
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
41 syn match ldSpecial '/DISCARD/'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
42
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
43 syn keyword ldIdentifier ORIGIN LENGTH
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
44
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
45 syn match ldSpecSections '\.'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
46 syn match ldSections '\.\S\+'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
47 syn match ldSpecSections '\.\%(text\|data\|bss\|symver\)\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
48
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
49 syn match ldNumber display '\<0[xX]\x\+\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
50 syn match ldNumber display '\d\+[KM]\>' contains=ldNumberMult
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
51 syn match ldNumberMult display '[KM]\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
52 syn match ldOctal contained display '\<0\o\+\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
53 \ contains=ldOctalZero
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
54 syn match ldOctalZero contained display '\<0'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
55 syn match ldOctalError contained display '\<0\o*[89]\d*\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
56
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
57
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
58 hi def link ldTodo Todo
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
59 hi def link ldComment Comment
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
60 hi def link ldFileName String
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
61 hi def link ldPreProc PreProc
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
62 hi def link ldFunction Identifier
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
63 hi def link ldKeyword Keyword
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
64 hi def link ldType Type
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
65 hi def link ldDataType ldType
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
66 hi def link ldOutputType ldType
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
67 hi def link ldPTType ldType
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
68 hi def link ldSpecial Special
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
69 hi def link ldIdentifier Identifier
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
70 hi def link ldSections Constant
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
71 hi def link ldSpecSections Special
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
72 hi def link ldNumber Number
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
73 hi def link ldNumberMult PreProc
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
74 hi def link ldOctal ldNumber
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
75 hi def link ldOctalZero PreProc
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
76 hi def link ldOctalError Error
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
77
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
78 let b:current_syntax = "ld"
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
79
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
80 let &cpo = s:cpo_save
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
81 unlet s:cpo_save