replace leading _ for private symbols with keyword hide

This commit is contained in:
2026-07-14 20:19:01 +02:00
parent 5157cf3bcc
commit 267947e79d
31 changed files with 125220 additions and 122709 deletions
+4
View File
@@ -51,6 +51,7 @@ module.exports = grammar({
),
function_declaration: $ => seq(
optional('hide'),
field('name', $.identifier),
field('kind', choice('func', 'c_func')),
field('parameters', $.parameter_list),
@@ -64,6 +65,7 @@ module.exports = grammar({
),
type_declaration: $ => prec(1, seq(
optional('hide'),
field('name', $.identifier),
'::',
repeat($._newline),
@@ -79,6 +81,7 @@ module.exports = grammar({
)),
global_constant_declaration: $ => seq(
optional('hide'),
field('name', $.identifier),
optional(field('type', $.type)),
'::',
@@ -87,6 +90,7 @@ module.exports = grammar({
),
global_variable_declaration: $ => seq(
optional('hide'),
field('name', $.identifier),
optional(field('type', $.type)),
'=',