From 1de53730bce0bd3f9de89db1da7c19b7889b9a75 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 27 Jan 2023 12:04:23 +0100 Subject: Symbol values and modules --- src/syntax/ast.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/syntax/ast.rs') diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index b9186787..3b573f7d 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -89,8 +89,6 @@ pub enum Expr { /// A shorthand for a unicode codepoint. For example, `~` for non-breaking /// space or `-?` for a soft hyphen. Shorthand(Shorthand), - /// Symbol notation: `:arrow:l:`. - Symbol(Symbol), /// A smart quote: `'` or `"`. SmartQuote(SmartQuote), /// Strong content: `*Strong*`. @@ -413,18 +411,6 @@ impl Shorthand { } } -node! { - /// Symbol notation: `:arrow:l:`. - Symbol -} - -impl Symbol { - /// Get the symbol's notation. - pub fn get(&self) -> &str { - self.0.text().trim_matches(':') - } -} - node! { /// A smart quote: `'` or `"`. SmartQuote -- cgit v1.2.3