From 31fb815681a1bb64b7b53191cad26c1e913be67f Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 31 Oct 2023 20:50:36 -0400 Subject: [PATCH] Add a function for getting the post blank. --- src/types/standard_properties.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/types/standard_properties.rs b/src/types/standard_properties.rs index aa579621..4cd195af 100644 --- a/src/types/standard_properties.rs +++ b/src/types/standard_properties.rs @@ -9,6 +9,11 @@ pub trait StandardProperties<'s> { // // This corresponds to :contents-begin to :contents-end // fn get_contents(&'s self) -> &'s str; + + // Get the slice of the AST node's post-blank text. + // + // This is optional whitespace following the node. + // fn get_post_blank<'b>(&'b self) -> &'s str; } // TODO: Write some debugging code to alert when any of the unknown fields below are non-nil in our test data so we can see what these fields represent.