mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
DEV: Handle comments embedded in not, import or include expressions
This commit is contained in:
parent
ff2aafeb98
commit
82d6ca9ecb
@ -437,6 +437,9 @@ where
|
||||
write!(self.w, ")")?;
|
||||
}
|
||||
Expression::Import(_def) => {
|
||||
if self.has_comment(_def.path.pos.line) {
|
||||
self.render_missed_comments(_def.path.pos.line)?;
|
||||
}
|
||||
write!(
|
||||
self.w,
|
||||
"import \"{}\"",
|
||||
@ -444,6 +447,9 @@ where
|
||||
)?;
|
||||
}
|
||||
Expression::Include(_def) => {
|
||||
if self.has_comment(_def.path.pos.line) {
|
||||
self.render_missed_comments(_def.path.pos.line)?;
|
||||
}
|
||||
write!(
|
||||
self.w,
|
||||
"include {} \"{}\"",
|
||||
|
Loading…
x
Reference in New Issue
Block a user