Mercurial > vim
annotate runtime/syntax/gdb.vim @ 19162:d02825cf56e3
Added tag v8.2.0140 for changeset 27ff44268da5aa146e7ec6af73100624a131a06d
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Jan 2020 22:15:05 +0100 |
parents | 46763b01cd9a |
children | 624439a39432 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: GDB command files | |
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> | |
4 " URL: http://www.fleiner.com/vim/syntax/gdb.vim | |
3854 | 5 " Last Change: 2012 Oct 05 |
7 | 6 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
7 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
3854 | 12 let s:cpo_save = &cpo |
13 set cpo&vim | |
14 | |
7 | 15 syn keyword gdbInfo contained address architecture args breakpoints catch common copying dcache |
16 syn keyword gdbInfo contained display files float frame functions handle line | |
17 syn keyword gdbInfo contained locals program registers scope set sharedlibrary signals | |
18 syn keyword gdbInfo contained source sources stack symbol target terminal threads | |
19 syn keyword gdbInfo contained syn keyword tracepoints types udot variables warranty watchpoints | |
20 syn match gdbInfo contained "all-registers" | |
21 | |
22 | |
23 syn keyword gdbStatement contained actions apply attach awatch backtrace break bt call catch cd clear collect commands | |
24 syn keyword gdbStatement contained complete condition continue delete detach directory disable disassemble display down | |
25 syn keyword gdbStatement contained echo else enable end file finish frame handle hbreak help if ignore | |
26 syn keyword gdbStatement contained inspect jump kill list load maintenance make next nexti ni output overlay | |
27 syn keyword gdbStatement contained passcount path print printf ptype pwd quit rbreak remote return run rwatch | |
28 syn keyword gdbStatement contained search section set sharedlibrary shell show si signal source step stepi stepping | |
29 syn keyword gdbStatement contained stop target tbreak tdump tfind thbreak thread tp trace tstart tstatus tstop | |
30 syn keyword gdbStatement contained tty undisplay unset until up watch whatis where while ws x | |
31 syn match gdbFuncDef "\<define\>.*" | |
32 syn match gdbStatmentContainer "^\s*\S\+" contains=gdbStatement,gdbFuncDef | |
33 syn match gdbStatement "^\s*info" nextgroup=gdbInfo skipwhite skipempty | |
34 | |
3854 | 35 " some commonly used abbreviations |
7 | 36 syn keyword gdbStatement c disp undisp disas p |
37 | |
2034 | 38 syn region gdbDocument matchgroup=gdbFuncDef start="\<document\>.*$" matchgroup=gdbFuncDef end="^end\s*$" |
7 | 39 |
40 syn match gdbStatement "\<add-shared-symbol-files\>" | |
41 syn match gdbStatement "\<add-symbol-file\>" | |
42 syn match gdbStatement "\<core-file\>" | |
43 syn match gdbStatement "\<dont-repeat\>" | |
44 syn match gdbStatement "\<down-silently\>" | |
45 syn match gdbStatement "\<exec-file\>" | |
46 syn match gdbStatement "\<forward-search\>" | |
47 syn match gdbStatement "\<reverse-search\>" | |
48 syn match gdbStatement "\<save-tracepoints\>" | |
49 syn match gdbStatement "\<select-frame\>" | |
50 syn match gdbStatement "\<symbol-file\>" | |
51 syn match gdbStatement "\<up-silently\>" | |
52 syn match gdbStatement "\<while-stepping\>" | |
53 | |
54 syn keyword gdbSet annotate architecture args check complaints confirm editing endian | |
55 syn keyword gdbSet environment gnutarget height history language listsize print prompt | |
56 syn keyword gdbSet radix remotebaud remotebreak remotecache remotedebug remotedevice remotelogbase | |
57 syn keyword gdbSet remotelogfile remotetimeout remotewritesize targetdebug variable verbose | |
58 syn keyword gdbSet watchdog width write | |
59 syn match gdbSet "\<auto-solib-add\>" | |
60 syn match gdbSet "\<solib-absolute-prefix\>" | |
61 syn match gdbSet "\<solib-search-path\>" | |
62 syn match gdbSet "\<stop-on-solib-events\>" | |
63 syn match gdbSet "\<symbol-reloading\>" | |
64 syn match gdbSet "\<input-radix\>" | |
65 syn match gdbSet "\<demangle-style\>" | |
66 syn match gdbSet "\<output-radix\>" | |
67 | |
3854 | 68 syn match gdbComment "^\s*#.*" contains=@Spell |
7 | 69 |
70 syn match gdbVariable "\$\K\k*" | |
71 | |
72 " Strings and constants | |
3854 | 73 syn region gdbString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell |
7 | 74 syn match gdbCharacter "'[^']*'" contains=gdbSpecialChar,gdbSpecialCharError |
75 syn match gdbCharacter "'\\''" contains=gdbSpecialChar | |
76 syn match gdbCharacter "'[^\\]'" | |
77 syn match gdbNumber "\<[0-9_]\+\>" | |
78 syn match gdbNumber "\<0x[0-9a-fA-F_]\+\>" | |
79 | |
80 | |
81 if !exists("gdb_minlines") | |
82 let gdb_minlines = 10 | |
83 endif | |
84 exec "syn sync ccomment gdbComment minlines=" . gdb_minlines | |
85 | |
86 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
87 " Only when an item doesn't have highlighting yet |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
88 hi def link gdbFuncDef Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
89 hi def link gdbComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
90 hi def link gdbStatement Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
91 hi def link gdbString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
92 hi def link gdbCharacter Character |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
93 hi def link gdbVariable Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
94 hi def link gdbSet Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
95 hi def link gdbInfo Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
96 hi def link gdbDocument Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
97 hi def link gdbNumber Number |
7 | 98 |
99 let b:current_syntax = "gdb" | |
100 | |
3854 | 101 let &cpo = s:cpo_save |
102 unlet s:cpo_save | |
7 | 103 " vim: ts=8 |