summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/syntax/parser.rs4
-rw-r--r--tests/ref/compiler/highlight.pngbin81677 -> 70314 bytes
-rw-r--r--tests/ref/math/attach.pngbin27297 -> 26810 bytes
-rw-r--r--tests/typ/math/attach.typ4
4 files changed, 4 insertions, 4 deletions
diff --git a/src/syntax/parser.rs b/src/syntax/parser.rs
index 3b82ce16..05db42e1 100644
--- a/src/syntax/parser.rs
+++ b/src/syntax/parser.rs
@@ -412,10 +412,10 @@ fn math_class(text: &str) -> Option<MathClass> {
fn math_op(kind: SyntaxKind) -> Option<(SyntaxKind, SyntaxKind, ast::Assoc, usize)> {
match kind {
SyntaxKind::Underscore => {
- Some((SyntaxKind::MathAttach, SyntaxKind::Hat, ast::Assoc::Right, 3))
+ Some((SyntaxKind::MathAttach, SyntaxKind::Hat, ast::Assoc::Right, 2))
}
SyntaxKind::Hat => {
- Some((SyntaxKind::MathAttach, SyntaxKind::Underscore, ast::Assoc::Right, 3))
+ Some((SyntaxKind::MathAttach, SyntaxKind::Underscore, ast::Assoc::Right, 2))
}
SyntaxKind::Slash => {
Some((SyntaxKind::MathFrac, SyntaxKind::Eof, ast::Assoc::Left, 1))
diff --git a/tests/ref/compiler/highlight.png b/tests/ref/compiler/highlight.png
index 7f69fd6b..ccbbc056 100644
--- a/tests/ref/compiler/highlight.png
+++ b/tests/ref/compiler/highlight.png
Binary files differ
diff --git a/tests/ref/math/attach.png b/tests/ref/math/attach.png
index 9a32b64c..ab93f25b 100644
--- a/tests/ref/math/attach.png
+++ b/tests/ref/math/attach.png
Binary files differ
diff --git a/tests/typ/math/attach.typ b/tests/typ/math/attach.typ
index 3a498686..f5f49627 100644
--- a/tests/typ/math/attach.typ
+++ b/tests/typ/math/attach.typ
@@ -43,8 +43,8 @@ $
---
// Test function call after subscript.
-$pi_1(Y), a_f(x), a^zeta(x) \
- a^subset.eq(x), a_(zeta(x)), pi_(1(Y))$
+$pi_1(Y), a_f(x), a^zeta (x), a^abs(b)_sqrt(c) \
+ a^subset.eq (x), a_(zeta(x)), pi_(1(Y)), a^(abs(b))_(sqrt(c))$
---
// Test associativity and scaling.