On 18/04/16 00:51, Bradley Garagan (Vim Github Repository) wrote:

Integer character constants with more than one character are syntactically valid C, though their value is implementation defined. Thus, it makes sense to color them properly. Because |sizeof (int) == 4| is typical, I figured |\{1,4}| in the regex was appropriate, though perhaps simply a |*| would be better?


I think it would be better not to highlight multiple-character constants "correctly". Unless someone's writing a program to find out how a C compiler behaves it would always be a mistake, and it's an easy mistake to make for anyone who routinely writes in multiple languages. It's more helpful to have the mistake flagged up by unexpected syntax highlighting than to wait for the compiler - or worse, the program itself - to point out the problem.

--
Matthew Winn

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui