mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Make not a soft keyword
Its grammatical usage is such that it's unambiguous with identifiers, and is needed for parsing the glsl functions (the not() function for boolean vectors).
This commit is contained in:
parent
13d38622f7
commit
c4c4b9f5b4
1 changed files with 6 additions and 0 deletions
|
@ -909,6 +909,11 @@ notype_declarator
|
|||
$$ = $<spec>0;
|
||||
$$.sym = new_symbol ($1->name);
|
||||
}
|
||||
| NOT
|
||||
{
|
||||
$$ = $<spec>0;
|
||||
$$.sym = new_symbol ("NOT");
|
||||
}
|
||||
;
|
||||
|
||||
initdecls
|
||||
|
@ -2101,6 +2106,7 @@ identifier
|
|||
| OBJECT_NAME { $$ = $1.sym; }
|
||||
| CLASS_NAME
|
||||
| TYPE_NAME { $$ = $1.sym; }
|
||||
| NOT { $$ = new_symbol ("not"); }
|
||||
;
|
||||
|
||||
// Objective-QC stuff
|
||||
|
|
Loading…
Reference in a new issue