Hi David,

The attached patch adds highlighting for 2 digit octal escapes within
strings similar to the existing highlighting of 1 and 3 digit octal
escapes.  If this looks good, please forward an updated syntax file to
Bram.

Also, I note that the referenced source URL[0] in the syntax file
doesn't work anymore.  Is there a new one?

[0]: http://trific.ath.cx/Ftp/vim/syntax/strace.vim

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>
diff --git a/runtime/syntax/strace.vim b/runtime/syntax/strace.vim
--- a/runtime/syntax/strace.vim
+++ b/runtime/syntax/strace.vim
@@ -17,7 +17,7 @@
 syn case match
 
 " Parse the line
-syn match straceSpecialChar "\\\d\d\d\|\\." contained
+syn match straceSpecialChar "\\\d\{1,3}\|\\." contained
 syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline
 syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1
 syn match straceNumber "\W0x\x\+"lc=1

Attachment: signature.asc
Description: Digital signature

Reply via email to