16 lines
341 B
Rust
Raw Normal View History

use super::macros::intermediate;
2023-10-29 22:31:29 -04:00
use crate::error::CustomError;
2023-10-27 17:48:19 -04:00
#[derive(Debug, Clone)]
pub(crate) struct ICode {
pub(crate) contents: String,
}
intermediate!(ICode, Code, original, _registry, {
Ok(ICode {
// TODO: Should this coalesce whitespace like PlainText?
contents: original.contents.to_owned(),
})
});