@@ -58,7 +58,7 @@ module.exports = grammar({
58
58
choice (
59
59
$ . empty_statement ,
60
60
$ . variable_assignment ,
61
- $ . scoped_variable_declaration ,
61
+ $ . local_variable_declaration ,
62
62
// conflict: $.statement and $.prefix_expression
63
63
prec ( 1 , $ . function_call ) ,
64
64
$ . label_statement ,
@@ -71,10 +71,10 @@ module.exports = grammar({
71
71
$ . for_numeric_statement ,
72
72
$ . for_generic_statement ,
73
73
$ . function_definition_statement ,
74
- $ . scoped_function_definition_statement ,
74
+ $ . local_function_definition_statement ,
75
75
) ,
76
76
77
- scoped_function_definition_statement : ( $ ) =>
77
+ local_function_definition_statement : ( $ ) =>
78
78
seq ( "local" , "function" , field ( "name" , $ . identifier ) , $ . _function_body ) ,
79
79
80
80
function_definition_statement : ( $ ) =>
@@ -155,15 +155,15 @@ module.exports = grammar({
155
155
goto_statement : ( $ ) => seq ( "goto" , field ( "name" , $ . identifier ) ) ,
156
156
label_statement : ( $ ) => seq ( "::" , field ( "name" , $ . identifier ) , "::" ) ,
157
157
158
- scoped_variable_declaration : ( $ ) =>
158
+ local_variable_declaration : ( $ ) =>
159
159
seq (
160
160
"local" ,
161
- alias ( $ . _scoped_variable_list , $ . variable_list ) ,
161
+ alias ( $ . _local_variable_list , $ . variable_list ) ,
162
162
optional ( seq ( "=" , alias ( $ . _value_list , $ . expression_list ) ) ) ,
163
163
) ,
164
- _scoped_variable_list : ( $ ) =>
165
- _list ( alias ( $ . _scoped_variable , $ . variable ) , "," ) ,
166
- _scoped_variable : ( $ ) =>
164
+ _local_variable_list : ( $ ) =>
165
+ _list ( alias ( $ . _local_variable , $ . variable ) , "," ) ,
166
+ _local_variable : ( $ ) =>
167
167
seq ( field ( "name" , $ . identifier ) , optional ( $ . attribute ) ) ,
168
168
attribute : ( $ ) => seq ( "<" , field ( "name" , $ . identifier ) , ">" ) ,
169
169
0 commit comments