mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Rename global_var_declaration to external_declaration
This commit is contained in:
parent
730120be36
commit
8e818baa52
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 617,
|
||||
BUILD_REVISION => 618,
|
||||
BUILD_DATE => "2014-06-07",
|
||||
};
|
||||
|
||||
|
@ -25,7 +25,7 @@ startrule : translation_unit
|
||||
startrule(?)
|
||||
|
||||
translation_unit : (comment
|
||||
| global_var_declaration
|
||||
| external_declaration
|
||||
| function_definition
|
||||
| function_prototype
|
||||
| preproc[matchrule => 'translation_unit'])
|
||||
@ -145,7 +145,7 @@ token : <skip: '[ \t]*'> /\S+/
|
||||
$return =~ s/"/\\"/; # escaping all quotes.
|
||||
}
|
||||
|
||||
global_var_declaration : declaration
|
||||
external_declaration : declaration
|
||||
|
||||
function_definition : <skip: '\s*'> declaration_specifiers(?) declarator[context => 'function_definition']
|
||||
'(' parameter_type_list(?) ')' '{' declaration_list(?) statement_list(?) '}'
|
||||
|
Loading…
Reference in New Issue
Block a user