From: Eric S. Raymond Date: Sat, 27 Sep 2003 09:44:55 +0000 (+0000) Subject: Complete C keyword list. X-Git-Tag: 2.3~3 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=ff3ba2725e93021439d11194b878686a609be623;p=comparator.git Complete C keyword list. --- diff --git a/linebyline.c b/linebyline.c index 86134f4..855c071 100644 --- a/linebyline.c +++ b/linebyline.c @@ -26,10 +26,12 @@ static char *c_patterns[] = { " NOTREACHED ", " FALL *THRO?UG?H? ", /* Bare C keywords */ - " auto ", " break ", " case "," continue ", " default ", " do ", " else ", - " enum ", " if ", " goto "," return ", " switch ", " while ", " int ", - " long ", " short ", " static ", " struct ", " typedef ", " union ", - " void ", + " auto ", " break ", " case ", "char", " const ", " continue ", + " default ", " do ", " double ", " else ", " enum ", " extern ", + " float ", " for ", " goto ", " if ", " int ", " long ", " register ", + " return ", " short ", " signed ", " sizeof ", " static ", " struct ", + " switch ", " typedef ", " union ", " unsigned ", " void ", + " volatile ", " while ", /* Preprocessor constructs (# has already been stripped) */ "^ define"," endif"," else", " ifdef "," ifndef ", /* Common preprocessor macros, not significant by themselves. */