From 5e08028fb36aa766957cba64c5c665edf9b96fb7 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 21 Mar 2021 17:46:09 +0100 Subject: =?UTF-8?q?Syntax=20functions=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds overridable functions that markup desugars into. Specifically: - \ desugars into linebreak - Two newlines desugar into parbreak - * desugars into strong - _ desugars into emph - = .. desugars into heading - `..` desugars into raw --- src/eval/ops.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/eval/ops.rs') diff --git a/src/eval/ops.rs b/src/eval/ops.rs index bef4dd58..da3432a2 100644 --- a/src/eval/ops.rs +++ b/src/eval/ops.rs @@ -1,5 +1,4 @@ use super::{ArrayValue, DictValue, TemplateNode, Value}; -use crate::syntax::Span; use Value::*; /// Apply the plus operator to a value. @@ -184,7 +183,6 @@ fn value_eq(lhs: &Value, rhs: &Value) -> bool { (&Linear(a), &Relative(b)) => a.rel == b && a.abs.is_zero(), (Array(a), Array(b)) => array_eq(a, b), (Dict(a), Dict(b)) => dict_eq(a, b), - (Template(a), Template(b)) => Span::without_cmp(|| a == b), (a, b) => a == b, } } -- cgit v1.2.3