Updated parser

This commit is contained in:
2026-06-10 05:37:08 +02:00
parent 562bcd7f1e
commit 1619250ba5
6 changed files with 32 additions and 9 deletions
+3 -3
View File
@@ -220,8 +220,8 @@ import = {
visibility? ~ "use" ~ static_path ~ semicolon
}
mod_package = {
visibility? ~ "mod" ~ identifier ~ semicolon
declare_module = {
visibility? ~ "module" ~ identifier ~ semicolon
}
// ======================================================
@@ -334,7 +334,7 @@ function_decl = {
// ======================================================
top_level = {
(attributes ~ (import | impl_for_decl | impl_decl | trait_decl | struct_decl | enum_decl | class_decl | mod_package | function_decl))
(attributes ~ (import | impl_for_decl | impl_decl | trait_decl | struct_decl | enum_decl | class_decl | declare_module | function_decl))
| mod_attribute
}