annotate runtime/syntax/ld.vim @ 33642:2d48081760a0 v9.0.2061

patch 9.0.2061: not able to detect xkb filetypes Commit: https://github.com/vim/vim/commit/ae9021a840db3253b0e0cb84186faae73368afd7 Author: Guido Cella <guido@guidocella.xyz> Date: Mon Oct 23 19:19:46 2023 +0200 patch 9.0.2061: not able to detect xkb filetypes Problem: not able to detect xkb filetypes Solution: Detect files below /u/s/X11/xkb as xkb files (without adding an extra filetype) Those files are used from the X11 xkb extension closes: #13401 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Guido Cella <guido@guidocella.xyz>
author Christian Brabandt <cb@256bit.org>
date Mon, 23 Oct 2023 19:30:06 +0200
parents b2e8663e6dcc
children
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
32294
b2e8663e6dcc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
5 " Last Change: 2023 Apr 19
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
6
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
8 finish
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
9 endif
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
10
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
11 let s:cpo_save = &cpo
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
12 set cpo&vim
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
13
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
14 syn keyword ldTodo contained TODO FIXME XXX NOTE
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
15
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
16 syn region ldComment start='/\*' end='\*/' contains=ldTodo,@Spell
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
17
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
18 syn region ldFileName start=+"+ end=+"+
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
19
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 372
diff changeset
20 syn keyword ldPreProc SECTIONS MEMORY OVERLAY PHDRS VERSION INCLUDE
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
21 syn match ldPreProc '\<VERS_\d\+\.\d\+'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
22
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
23 syn keyword ldFunction ABSOLUTE ADDR ALIGN BLOCK DATA_SEGMENT_ALIGN
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
24 \ DATA_SEGMENT_END DATA_SEGMENT_RELRO_END DEFINED
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
25 \ LOADADDR MAX MIN NEXT SIZEOF SIZEOF_HEADERS
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
26 \ sizeof_headers
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
27
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 372
diff changeset
28 syn keyword ldKeyword ENTRY INPUT GROUP OUTPUT
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
29 \ SEARCH_DIR STARTUP OUTPUT_FORMAT TARGET
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
30 \ ASSERT EXTERN FORCE_COMMON_ALLOCATION
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
31 \ INHIBIT_COMMON_ALLOCATION NOCROSSREFS OUTPUT_ARCH
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
32 \ PROVIDE EXCLUDE_FILE SORT KEEP FILL
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
33 \ CREATE_OBJECT_SYMBOLS CONSTRUCTORS SUBALIGN
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
34 \ FILEHDR AT __asm__ ABSOLUTE
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
35
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
36 syn keyword ldDataType BYTE SHORT LONG QUAD SQUAD
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
37 syn keyword ldOutputType NOLOAD DSECT COPY INFO OVERLAY
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
38 syn keyword ldPTType PT_NULL PT_LOAD PT_DYNAMIC PT_INTERP
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
39 \ PT_NOTE PT_SHLIB PT_PHDR
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
40
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
41 syn keyword ldSpecial COMMON
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
42 syn match ldSpecial '/DISCARD/'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
43
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
44 syn keyword ldIdentifier ORIGIN LENGTH
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
45
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
46 syn match ldSpecSections '\.'
32294
b2e8663e6dcc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
47 syn match ldSections '\.[^ \t)]\+'
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
48 syn match ldSpecSections '\.\%(text\|data\|bss\|symver\)\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
49
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
50 syn match ldNumber display '\<0[xX]\x\+\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
51 syn match ldNumber display '\d\+[KM]\>' contains=ldNumberMult
18186
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
52 syn match ldNumberMult display '\(\d\+\)\@<=[KM]\>'
372
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
53 syn match ldOctal contained display '\<0\o\+\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
54 \ contains=ldOctalZero
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
55 syn match ldOctalZero contained display '\<0'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
56 syn match ldOctalError contained display '\<0\o*[89]\d*\>'
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
57
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
58
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
59 hi def link ldTodo Todo
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
60 hi def link ldComment Comment
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
61 hi def link ldFileName String
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
62 hi def link ldPreProc PreProc
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
63 hi def link ldFunction Identifier
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
64 hi def link ldKeyword Keyword
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
65 hi def link ldType Type
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
66 hi def link ldDataType ldType
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
67 hi def link ldOutputType ldType
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
68 hi def link ldPTType ldType
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
69 hi def link ldSpecial Special
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
70 hi def link ldIdentifier Identifier
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
71 hi def link ldSections Constant
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
72 hi def link ldSpecSections Special
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
73 hi def link ldNumber Number
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
74 hi def link ldNumberMult PreProc
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
75 hi def link ldOctal ldNumber
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
76 hi def link ldOctalZero PreProc
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
77 hi def link ldOctalError Error
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
78
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
79 let b:current_syntax = "ld"
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
80
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
81 let &cpo = s:cpo_save
a698eb686ded updated for version 7.0096
vimboss
parents:
diff changeset
82 unlet s:cpo_save