Skip to content

non-orthodox numbers highlighting #103

Open

Description

@vors

Environment

  • Editor and Version (VS Code, Atom, Sublime): Sublime
  • Your primary theme: Default (Monokai??)

Issue Description

This is all valid numbers in ps

1.21e+3l
1.21E-3d
2.12e3lmb
3.1415e3lgb
3.1415e3lkb

Screenshots

image

Expected Behavior

Consistency (this is current ST grammar)
image

Activity

  1. changed the title [-]$_ is inconsistent with $a[/-] [+]non-orthodox numbers highlighting[/+] on May 26, 2018
  2. omniomi commented on May 26, 2018

    @omniomi
    Contributor

    Looks like I missed some cases when I looked at numeric constants. I'll take another pass.

  3. msftrncs commented on May 15, 2019

    @msftrncs
    Contributor

    Some more examples,

    1Dkb
    1.Dkb
    1.E12kb
    1.1Dkb
    1.1E12kb
    .1E+12Dkb
    1Lkb
    1.5Lpb
    1.E12Lkb
    1.14E12Lkb
    .14Ltb
    1E12Lkb

    I think there are a couple more scenario's included here, such as decimal numbers without a leading digit before the decimal point.

    I have these worked out in PR #156, I merged the regex in to 3 primary patterns, integer, hex, and decimal, but did not scope them by their final storage type. I have eliminated the patterns that are not allowed (they haven't implemented binary or allowing underscore separators). I could separate these changes out to a new PR.

    image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions