mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-29 19:07:33 +02:00
CGrammar: Fix case where intx
could be parsed as a declaration instead of an identifier
This commit is contained in:
parent
5eee740cd7
commit
7b42e9220e
@ -13,8 +13,8 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 692,
|
||||
BUILD_DATE => "2014-07-01",
|
||||
BUILD_REVISION => 693,
|
||||
BUILD_DATE => "2014-07-02",
|
||||
};
|
||||
|
||||
1;
|
||||
|
@ -1441,7 +1441,7 @@ type_qualifier:
|
||||
| 'volatile'
|
||||
|
||||
type_specifier:
|
||||
'void' | 'double' | 'float' | 'char' | 'short' | 'int' | 'long'
|
||||
<skip:''> /\s*/ ('void' | 'double' | 'float' | 'char' | 'short' | 'int' | 'long'
|
||||
| 'signed' | 'unsigned'
|
||||
| 'FILE' | 'fpos_t'
|
||||
| 'bool' | '_Bool'
|
||||
@ -1464,7 +1464,8 @@ type_specifier:
|
||||
| 'clock_t' | 'time_t'
|
||||
| struct_or_union_specifier
|
||||
| enum_specifier
|
||||
| typedef_name
|
||||
| typedef_name) .../\W/
|
||||
{ $return = $item[3]; }
|
||||
|
||||
typedef_name:
|
||||
identifier
|
||||
|
Loading…
x
Reference in New Issue
Block a user