diff options
| author | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2024-06-24 19:21:33 -0300 |
|---|---|---|
| committer | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2024-06-26 12:17:53 -0300 |
| commit | d35a563b3ce7185165b38581f6e93c8e1d1da3df (patch) | |
| tree | 25b8c3bd9186e03870b61fa97af88bb4b25329dc /crates/typst-syntax | |
| parent | c7d97a7248f54643863dcf27131e89082b2e62df (diff) | |
use proper name for paren tokens
Diffstat (limited to 'crates/typst-syntax')
| -rw-r--r-- | crates/typst-syntax/src/lexer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-syntax/src/lexer.rs b/crates/typst-syntax/src/lexer.rs index cd570367..f8e8bbc2 100644 --- a/crates/typst-syntax/src/lexer.rs +++ b/crates/typst-syntax/src/lexer.rs @@ -257,7 +257,7 @@ impl Lexer<'_> { let current_start = self.s.cursor(); if !self.s.eat_if('(') { self.s.eat_until(is_newline); - subtree.push(self.emit_error("expected left parenthesis", current_start)); + subtree.push(self.emit_error("expected opening paren", current_start)); // Return a single error node until the end of the decorator. return SyntaxNode::inner(SyntaxKind::Decorator, subtree); @@ -317,7 +317,7 @@ impl Lexer<'_> { // Right parenthesis (covered above) if !finished { - subtree.push(self.emit_error("expected right parenthesis", self.s.cursor())); + subtree.push(self.emit_error("expected closing paren", self.s.cursor())); } SyntaxNode::inner(SyntaxKind::Decorator, subtree) |
