Working parser for attributes
This commit is contained in:
@@ -31,7 +31,9 @@ meta_list = {
|
||||
meta ~ ("," ~ meta)* ~ ","?
|
||||
}
|
||||
|
||||
top_level = { attribute* ~ (import | function_decl | struct_decl) }
|
||||
attributes = { attribute* }
|
||||
|
||||
top_level = { attributes ~ (import | function_decl | struct_decl) }
|
||||
|
||||
import = { sharp ~ "include" ~ "<" ~ static_path ~ ">" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user