Skip to content

Commit

Permalink
fix: closing parenthesis after function application was ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog committed Aug 28, 2023
1 parent 13b548a commit aaf6a46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## [Unreleased]

### Bugs Fixed

- A closing parenthesis following a function application would be ignored,
i.e. `(f(x))` would be parsed as `(f(x)`.

### Improvements

- Added support for additional commands from the `mathtools` , `actuarialangle`, `colonequals`, `statmath` and `amsopn` packages
Expand Down
1 change: 0 additions & 1 deletion src/core/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,6 @@ export class Parser {
if (nestLevel !== 0) this.parseExpression();
}

if (nestLevel === 0) this.match(')');
const result = new LeftRightAtom('', this.mathlist, {
leftDelim: '(',
rightDelim: nestLevel === 0 ? ')' : '?',
Expand Down

0 comments on commit aaf6a46

Please sign in to comment.