3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

CGrammar: Fix case where intx could be parsed as a declaration instead of an identifier

This commit is contained in:
Pragmatic Software 2014-07-02 16:36:22 +00:00
parent 5eee740cd7
commit 7b42e9220e
2 changed files with 27 additions and 26 deletions

View File

@ -13,8 +13,8 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 692, BUILD_REVISION => 693,
BUILD_DATE => "2014-07-01", BUILD_DATE => "2014-07-02",
}; };
1; 1;

View File

@ -1441,7 +1441,7 @@ type_qualifier:
| 'volatile' | 'volatile'
type_specifier: type_specifier:
'void' | 'double' | 'float' | 'char' | 'short' | 'int' | 'long' <skip:''> /\s*/ ('void' | 'double' | 'float' | 'char' | 'short' | 'int' | 'long'
| 'signed' | 'unsigned' | 'signed' | 'unsigned'
| 'FILE' | 'fpos_t' | 'FILE' | 'fpos_t'
| 'bool' | '_Bool' | 'bool' | '_Bool'
@ -1464,7 +1464,8 @@ type_specifier:
| 'clock_t' | 'time_t' | 'clock_t' | 'time_t'
| struct_or_union_specifier | struct_or_union_specifier
| enum_specifier | enum_specifier
| typedef_name | typedef_name) .../\W/
{ $return = $item[3]; }
typedef_name: typedef_name:
identifier identifier