Skip to content

Commit f749380

Browse files
committed
Change syntax
This avoids it visually colliding with the deprecation annotation from typst#19.
1 parent 17aa7f0 commit f749380

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ fn tokenize(line: &str) -> StrResult<Line> {
105105
}
106106
let c = decode_char(tail.ok_or("missing char")?)?;
107107
Line::Variant(rest, c)
108-
} else if let Some(alias) = head.strip_prefix('@') {
108+
} else if let Some(mut value) = tail.and_then(|tail| tail.strip_prefix("@= ")) {
109+
let alias = head;
109110
validate_ident(alias)?;
110-
let mut value = tail.ok_or("missing value")?;
111111
let mut deep = false;
112112
if let Some(v) = value.strip_suffix(".*") {
113113
deep = true;

src/modules/sym.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ breve ˘
193193
caret ‸
194194
caron ˇ
195195
hat ^
196-
@diaer dot.double
196+
diaer @= dot.double
197197
grave `
198198
macron ¯
199199
quote
@@ -359,7 +359,7 @@ succ ≻
359359
.not ⊁
360360
.ntilde ⋩
361361
.tilde ≿
362-
@equiv eq.triple.*
362+
equiv @= eq.triple.*
363363
smt ⪪
364364
.eq ⪬
365365
lat ⪫
@@ -377,7 +377,7 @@ emptyset ∅
377377
.bar ⦱
378378
.circle ⦲
379379
.rev ⦰
380-
@nothing emptyset.*
380+
nothing @= emptyset.*
381381
without ∖
382382
complement ∁
383383
in ∈
@@ -435,10 +435,10 @@ infinity ∞
435435
.bar ⧞
436436
.incomplete ⧜
437437
.tie ⧝
438-
@oo infinity
438+
oo @= infinity
439439
partial ∂
440440
gradient ∇
441-
@nabla gradient.*
441+
nabla @= gradient.*
442442
sum ∑
443443
.integral ⨋
444444
product ∏
@@ -468,8 +468,8 @@ laplace ∆
468468
forall ∀
469469
exists ∃
470470
.not ∄
471-
@top tack.b
472-
@bot tack.t
471+
top @= tack.b
472+
bot @= tack.t
473473
not ¬
474474
and ∧
475475
.big ⋀
@@ -481,7 +481,7 @@ or ∨
481481
.curly ⋎
482482
.dot ⟇
483483
.double ⩔
484-
@xor plus.circle.*
484+
xor @= plus.circle.*
485485
models ⊧
486486
forces ⊩
487487
.not ⊮
@@ -490,8 +490,8 @@ because ∵
490490
qed ∎
491491

492492
// Function and category theory.
493-
@compose circle.stroked.tiny
494-
@convolve ast.op
493+
compose @= circle.stroked.tiny
494+
convolve @= ast.op
495495
multimap ⊸
496496
.double ⧟
497497

@@ -980,13 +980,13 @@ Zeta Ζ
980980
// from Letterlike Symbols.
981981
// See https://github.com/typst/typst/pull/3375.
982982
aleph א
983-
@alef aleph
983+
alef @= aleph
984984
beth ב
985-
@bet beth
985+
bet @= beth
986986
gimmel ג
987-
@gimel gimmel
987+
gimel @= gimmel
988988
daleth ד
989-
@dalet daleth
989+
dalet @= daleth
990990
shin ש
991991

992992
// Double-struck.

0 commit comments

Comments
 (0)