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

Make scanner accept floating point literals in hex and binary #9106

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Nov 23, 2024

  1. Fix erl_scan testcase swallowing errors

    When the call to erl_scan succeeded returning more than one token,
    for example "123_", the unexpected success was not detected.
    richcarl committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    b92e961 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. Do not allow name characters immediately after a number

    In cases such as "123a45", the scanner did not report an error, instead
    returning two tokens '123' and 'a45'. The splitting point depends on the
    base, so e.g., "16#12fg34" was scanned as '16#12f' and 'g34'. This change
    makes the scanner reject numbers immediately followed by a name character.
    richcarl committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    429dc57 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    637b7fc View commit details
    Browse the repository at this point in the history