summaryrefslogtreecommitdiff
path: root/runtime/syntax/gdb.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-10-05 22:26:30 +0200
committerBram Moolenaar <Bram@vim.org>2012-10-05 22:26:30 +0200
commit0c5fa7d740bafefbf0b2ea48a2a660901d7d4f10 (patch)
tree3dd614cf04a6ec0c1e8148f6aec23d5010519f1a /runtime/syntax/gdb.vim
parentd1f13fd5978df5fd4b2e0fbc61e671edec958e15 (diff)
downloadvim-git-0c5fa7d740bafefbf0b2ea48a2a660901d7d4f10.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/syntax/gdb.vim')
-rw-r--r--runtime/syntax/gdb.vim13
1 files changed, 9 insertions, 4 deletions
diff --git a/runtime/syntax/gdb.vim b/runtime/syntax/gdb.vim
index aada70e54..64e89cce7 100644
--- a/runtime/syntax/gdb.vim
+++ b/runtime/syntax/gdb.vim
@@ -2,7 +2,7 @@
" Language: GDB command files
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
" URL: http://www.fleiner.com/vim/syntax/gdb.vim
-" Last Change: 2009 May 25
+" Last Change: 2012 Oct 05
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
@@ -12,6 +12,9 @@ elseif exists("b:current_syntax")
finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
syn keyword gdbInfo contained address architecture args breakpoints catch common copying dcache
syn keyword gdbInfo contained display files float frame functions handle line
syn keyword gdbInfo contained locals program registers scope set sharedlibrary signals
@@ -32,7 +35,7 @@ syn match gdbFuncDef "\<define\>.*"
syn match gdbStatmentContainer "^\s*\S\+" contains=gdbStatement,gdbFuncDef
syn match gdbStatement "^\s*info" nextgroup=gdbInfo skipwhite skipempty
-" some commonly used abreviations
+" some commonly used abbreviations
syn keyword gdbStatement c disp undisp disas p
syn region gdbDocument matchgroup=gdbFuncDef start="\<document\>.*$" matchgroup=gdbFuncDef end="^end\s*$"
@@ -65,12 +68,12 @@ syn match gdbSet "\<input-radix\>"
syn match gdbSet "\<demangle-style\>"
syn match gdbSet "\<output-radix\>"
-syn match gdbComment "^\s*#.*"
+syn match gdbComment "^\s*#.*" contains=@Spell
syn match gdbVariable "\$\K\k*"
" Strings and constants
-syn region gdbString start=+"+ skip=+\\\\\|\\"+ end=+"+
+syn region gdbString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
syn match gdbCharacter "'[^']*'" contains=gdbSpecialChar,gdbSpecialCharError
syn match gdbCharacter "'\\''" contains=gdbSpecialChar
syn match gdbCharacter "'[^\\]'"
@@ -108,4 +111,6 @@ endif
let b:current_syntax = "gdb"
+let &cpo = s:cpo_save
+unlet s:cpo_save
" vim: ts=8