diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-16 22:42:49 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-16 23:06:47 +0200 |
| commit | 4494b443bb34fed2208ee3fc87e9a18e7d14b2ab (patch) | |
| tree | 25a655821b81d10659132fae26861a2aff2d5a95 /src/syntax/mod.rs | |
| parent | c5b3f8ee98203191d83d3cfca39bb0f35ee6efc2 (diff) | |
Ellipsis
Diffstat (limited to 'src/syntax/mod.rs')
| -rw-r--r-- | src/syntax/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 1f02217a..d18b6a3d 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -599,6 +599,8 @@ pub enum NodeKind { EnDash, /// An em-dash: `---`. EmDash, + /// An ellipsis: `...`. + Ellipsis, /// A smart quote: `'` (`false`) or `"` (true). Quote(bool), /// A slash and the letter "u" followed by a hexadecimal unicode entity @@ -774,6 +776,7 @@ impl NodeKind { | Self::NonBreakingSpace | Self::EnDash | Self::EmDash + | Self::Ellipsis | Self::Quote(_) | Self::Escape(_) | Self::Strong @@ -869,6 +872,7 @@ impl NodeKind { Self::Shy => "soft hyphen", Self::EnDash => "en dash", Self::EmDash => "em dash", + Self::Ellipsis => "ellipsis", Self::Quote(false) => "single quote", Self::Quote(true) => "double quote", Self::Escape(_) => "escape sequence", @@ -992,6 +996,7 @@ impl Hash for NodeKind { Self::Shy => {} Self::EnDash => {} Self::EmDash => {} + Self::Ellipsis => {} Self::Quote(d) => d.hash(state), Self::Escape(c) => c.hash(state), Self::Strong => {} |
