annotate runtime/syntax/gdb.vim @ 7210:08b50e436093 v7.4.914

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