compiler/libec: Fixed 'restrict' to be an extended declaration specifier, not a stora...
authorJerome St-Louis <jerome@ecere.com>
Tue, 1 Apr 2014 16:10:50 +0000 (12:10 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 1 Apr 2014 16:10:50 +0000 (12:10 -0400)
- Also added restrict variants to syntax highlighting

compiler/libec/src/lexer.ec
compiler/libec/src/lexer.l
ecere/src/gui/controls/EditBox.ec

index 2d2eea2..de138af 100644 (file)
@@ -1753,7 +1753,7 @@ YY_RULE_SETUP
 case 65:
 YY_RULE_SETUP
 #line 137 "lexer.l"
-{ return(RESTRICT); }
+{ return(EXT_DECL); }
        YY_BREAK
 /* "__attribute__".?"(("({D}|{L})*"))" { return(EXT_ATTRIB); } */
 /* DID I MEAN? "__attribute__"" "*"(("" "*({D}|{L})*" "*("("({D}|{L})*(" "*","" "*({D}|{L})*)*" "*")")?" "*"))" { return(EXT_ATTRIB); } */
index e7e32ad..cc62f02 100644 (file)
@@ -134,7 +134,7 @@ default:
 "_Bool"              { return(_BOOL); }
 "_Complex"           { return(_COMPLEX); }
 "_Imaginary"         { return(_IMAGINARY); }
-"restrict"           { return(RESTRICT); }
+"restrict"           { return(EXT_DECL); }
 
  /* "__attribute__".?"(("({D}|{L})*"))" { return(EXT_ATTRIB); } */
 
index d33e4ad..a2cb758 100644 (file)
@@ -669,6 +669,7 @@ static char * keyWords1[] =
    "__declspec", "goto",
     "inline", "__inline__", "_inline", "__inline", "__typeof","__extension__",
    "asm", "__asm", "_asm", "volatile", "#cpu", "__stdcall__",
+   "__restrict__", "__restrict", "restrict"
 
    // eC
    "class", "private", "public",