22 lines
426 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,
&'orig organic::types::Code<'parse>,
original,
_intermediate_context,
{
Ok(ICode {
// TODO: Should this coalesce whitespace like PlainText?
contents: original.contents.to_owned(),
})
}
);