Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: issue with parsing division followed by encloused code #138

Merged
merged 1 commit into from
Oct 9, 2022

Conversation

DylanPiercey
Copy link
Contributor

Description

Fixes a parse error where division is immediately followed by enclosed code.

Specifically if an expression looked something like

x / (y[z])

When the parser encountered division it consumed the whitespace and went one character ahead. In the above example that'd cause it to skip over the ( which caused the enclosed expression tracking to be off.

Checklist:

  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2022

🦋 Changeset detected

Latest commit: a88d06a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
htmljs-parser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Oct 9, 2022

Codecov Report

Base: 92.13% // Head: 92.13% // No change to project coverage 👍

Coverage data is based on head (a88d06a) compared to base (6b7373f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #138   +/-   ##
=======================================
  Coverage   92.13%   92.13%           
=======================================
  Files          26       26           
  Lines         801      801           
  Branches      268      268           
=======================================
  Hits          738      738           
  Misses         48       48           
  Partials       15       15           
Impacted Files Coverage Δ
src/states/EXPRESSION.ts 91.93% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@DylanPiercey DylanPiercey merged commit 8c34227 into main Oct 9, 2022
@DylanPiercey DylanPiercey deleted the fix-division-expression-parsing branch October 9, 2022 03:35
@github-actions github-actions bot mentioned this pull request Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant