Skip to content

Commit 611b80c

Browse files
committed
Use "local" instead of "scoped"
1 parent 20501e5 commit 611b80c

File tree

5 files changed

+158
-158
lines changed

5 files changed

+158
-158
lines changed

grammar.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

src/grammar.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 58 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)