Clarify probably_punctuation

significant_whitespace
Wilfred Hughes 2023-11-11 11:14:49 +07:00
parent 7321f663dc
commit 27b14ae4c7
1 changed files with 3 additions and 0 deletions

@ -278,6 +278,9 @@ impl<'s, 'b> Vertex<'s, 'b> {
pub enum Edge {
UnchangedNode {
depth_difference: u32,
/// Is this node just punctuation? We penalise this case,
/// because it's more useful to match e.g. a variable name
/// than a comma.
probably_punctuation: bool,
},
EnterUnchangedDelimiter {