@@ -58,7 +58,7 @@ module.exports = grammar({
5858 choice (
5959 $ . empty_statement ,
6060 $ . variable_assignment ,
61- $ . scoped_variable_declaration ,
61+ $ . local_variable_declaration ,
6262 // conflict: $.statement and $.prefix_expression
6363 prec ( 1 , $ . function_call ) ,
6464 $ . label_statement ,
@@ -71,10 +71,10 @@ module.exports = grammar({
7171 $ . for_numeric_statement ,
7272 $ . for_generic_statement ,
7373 $ . function_definition_statement ,
74- $ . scoped_function_definition_statement ,
74+ $ . local_function_definition_statement ,
7575 ) ,
7676
77- scoped_function_definition_statement : ( $ ) =>
77+ local_function_definition_statement : ( $ ) =>
7878 seq ( "local" , "function" , field ( "name" , $ . identifier ) , $ . _function_body ) ,
7979
8080 function_definition_statement : ( $ ) =>
@@ -155,15 +155,15 @@ module.exports = grammar({
155155 goto_statement : ( $ ) => seq ( "goto" , field ( "name" , $ . identifier ) ) ,
156156 label_statement : ( $ ) => seq ( "::" , field ( "name" , $ . identifier ) , "::" ) ,
157157
158- scoped_variable_declaration : ( $ ) =>
158+ local_variable_declaration : ( $ ) =>
159159 seq (
160160 "local" ,
161- alias ( $ . _scoped_variable_list , $ . variable_list ) ,
161+ alias ( $ . _local_variable_list , $ . variable_list ) ,
162162 optional ( seq ( "=" , alias ( $ . _value_list , $ . expression_list ) ) ) ,
163163 ) ,
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 : ( $ ) =>
167167 seq ( field ( "name" , $ . identifier ) , optional ( $ . attribute ) ) ,
168168 attribute : ( $ ) => seq ( "<" , field ( "name" , $ . identifier ) , ">" ) ,
169169
0 commit comments