Skip to content

Regenerate Lexer.hs with latest Alex (fix #8892) (backport #8896) - #8921

Merged
mergify[bot] merged 2 commits into
3.10from
mergify/bp/3.10/pr-8896
Apr 26, 2023
Merged

mergify[bot] merged 2 commits into
3.10from
mergify/bp/3.10/pr-8896

Conversation

@mergify

@mergify mergify Bot commented Apr 26, 2023

Copy link
Copy Markdown
Contributor

This is an automatic backport of pull request #8896 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

hsyl20 added 2 commits April 26, 2023 14:02
Regenerate Lexer.hs with Alex 3.2.7.2 to fix issue ##8892 (out-of-bound
access due to haskell/alex#223).

(cherry picked from commit ca7a8e2)
We use a Latin1 generated parser with Alex, but we also parses Unicode
BOM, unbreakable spaces, etc. In recent Alex, the reported column isn't
expressed in Unicode chars anymore but in bytes/ASCII chars (probably
due to
haskell/alex@ae525e3
but I haven't checked), which broke our tests (see
#8896).

To work around this we report indentation warnings at token start position,
instead of token end position (i.e. always 1). Otherwise position makes
no sense anymore for the user.

(cherry picked from commit 5f72880)
@mergify mergify Bot mentioned this pull request Apr 26, 2023
2 of 3 tasks
@mergify mergify Bot added the backport label Apr 26, 2023

@Mikolaj Mikolaj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems necessary to avoid crashes compiling JS at least.

@Mikolaj Mikolaj added the merge me Tell Mergify Bot to merge label Apr 26, 2023
@mergify
mergify Bot merged commit 4bfd6a0 into 3.10 Apr 26, 2023
@mergify
mergify Bot deleted the mergify/bp/3.10/pr-8896 branch April 26, 2023 16:38
@hsyl20
hsyl20 requested a review from andreasabel April 27, 2023 09:54
@hsyl20

hsyl20 commented Apr 27, 2023

Copy link
Copy Markdown
Collaborator

Oops page wasn't refreshed so I've asked for your review @andreasabel, but in fact it's already merged. Sorry for the noise. Thanks @Mikolaj for merging this :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport merge me Tell Mergify Bot to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants