Pub mod and pub use

This commit is contained in:
2026-05-13 05:52:57 +02:00
parent c1cb9bd7bf
commit 5bdcd40edb
5 changed files with 24 additions and 16 deletions
+5 -5
View File
@@ -48,9 +48,9 @@ program = {
// MODIFIERS
// ======================================================
visibility = { "pub" ~ ("(" ~ static_path ~ ")")? }
mutable = { "mut" }
var = { "var" }
visibility = { "pub" ~ ("(" ~ static_path ~ ")")? }
mutable = { "mut" }
var = { "var" }
// ======================================================
// GENERICS
@@ -170,11 +170,11 @@ param_list = {
// ======================================================
import = {
"use" ~ "<" ~ static_path ~ ">" ~ semicolon
visibility? ~ "use" ~ "<" ~ static_path ~ ">" ~ semicolon
}
mod_package = {
"mod" ~ identifier ~ semicolon
visibility? ~ "mod" ~ identifier ~ semicolon
}
// ======================================================