diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-06-27 17:02:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-27 17:02:48 +0200 |
| commit | 974d9b236eea5cecf681d5d261915d6b1e9d2e21 (patch) | |
| tree | cf8ab5851e155de9aea0c81f3842c002ac525801 | |
| parent | 6209c11593a3ac175d058a1b12a884fa4d288620 (diff) | |
| parent | 10d9ea3836546d30c15d8ee9d842ee432e58fbab (diff) | |
Merge pull request #413 from Kelimion/fix_require
Fix @(require) import "core:fmt"
| -rw-r--r-- | src/odin/printer/visit.odin | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index cbf63ed..9407ec8 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -327,6 +327,13 @@ visit_decl :: proc( case ^Import_Decl: document := move_line(p, decl.pos) + if len(v.attributes) > 0 { + document = cons( + document, + visit_attributes(p, &v.attributes, v.pos), + ) + } + if v.name.text != "" { document = cons( document, |