Dominique Pellé wrote:

> Hi
>
> Attached is a patch to fix incorrect syntax highlighting
> when editing gdb command files with Vim.

[...snip...]

Sorry, attachment was missing in my previous email.
Here it is this time.

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

*** ../vim-runtime/syntax/gdb.vim	2007-10-27 18:27:33.000000000 +0200
--- runtime/syntax/gdb.vim	2009-05-19 06:29:59.000000000 +0200
***************
*** 32,41 ****
  syn match gdbStatmentContainer "^\s*\S\+" contains=gdbStatement,gdbFuncDef
  syn match gdbStatement "^\s*info" nextgroup=gdbInfo skipwhite skipempty
  
! " some commonly used abreviations
  syn keyword gdbStatement c disp undisp disas p
  
! syn region gdbDocument matchgroup=gdbFuncDef start="\<document\>.*$" matchgroup=gdbFuncDef end="^end$"
  
  syn match gdbStatement "\<add-shared-symbol-files\>"
  syn match gdbStatement "\<add-symbol-file\>"
--- 32,41 ----
  syn match gdbStatmentContainer "^\s*\S\+" contains=gdbStatement,gdbFuncDef
  syn match gdbStatement "^\s*info" nextgroup=gdbInfo skipwhite skipempty
  
! " some commonly used abbreviations
  syn keyword gdbStatement c disp undisp disas p
  
! syn region gdbDocument matchgroup=gdbFuncDef start="\<document\>.*$" matchgroup=gdbFuncDef end="^\s*end\s*$"
  
  syn match gdbStatement "\<add-shared-symbol-files\>"
  syn match gdbStatement "\<add-symbol-file\>"

Raspunde prin e-mail lui