Mark Manning wrote:

> I saw in the c.vim that there was an error statement for octal numbers.  
> There isn't one for hex numbers so I made one really quickly.  If you 
> want, just put it into the c.vim file.  :-)
> 
> The test:
> 
> syn region    cHexError    start="0x\x*[g-zG-Z]" end="\W"
> 
> The highlight command:
> 
>     hi link   cHexError   cError
> 
> Of course, this needs to be approved by Bram first though.  :-)

I don't know what the rules are in all kinds of C, but at least things
like 0x0L, 0x0u, 0x0UL are valid.

Using a match instead of region would be simpler.

-- 
There are 10 kinds of people: Those who understand binary and those who don't.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to