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